Binding under 2004

Discussion in 'AutoCAD' started by mr_nick, Feb 11, 2004.

  1. mr_nick

    mr_nick Guest

    I have a routine I wrote under AutoCAD 2000 that amongst other things, binds xrefs into my drawings before archiving them. This has worked without fault for nearly 2 years.

    We have recently started to move across to the 2004 platform and so all my routines are having to be tweaked to suit. The binding seemed to work without problems until it was run a machine that was using the "Save as 2000" option for all output - because not all our machines are running 2004 yet.

    Now when the routine gets to the bind part, I get a cryptic error that just says :

    Yes or No, please.

    Error: Function cancelledA drawing with this name already exists.
    Do you want to replace it? <N>

    As the bind process is not supposed to be overwriting anything, I'm at a bit of a loss as to why this should happen. If I switch the machine to save as 2004, the routine works again. If I run the bind command from the command line and pass it the same options as my routine, then again there is no problem, so why should it fail as a simple line of lisp? The line is simple enough: (command "_xref" "b" xr_name ). Is there another way of binding that will not encounter this problem?
     
    mr_nick, Feb 11, 2004
    #1
  2. mr_nick

    mr_nick Guest

    I have now found that the problem is caused by a save command that is issued prior to binding.
     
    mr_nick, Feb 11, 2004
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.