PDA

View Full Version : External Reference / Bind


t2arun
13-02-2004, 12:06 PM
I am having a problem in the following code while using autocad2000
see the following code(adoc is the app object of autocad)

"

Set insertedxref = adoc.ActiveDocument.ModelSpace.AttachExternalRefer ence (gstrAppPath & "\drawings\" & SomeDrawing & ".dwg", SomeBlockName, NewPtLocation, 1#, 1#, 1#, 0#, False)
Set objblock = adoc.Application.ActiveDocument.Blocks.Item(insert edxref.Name)
objblock.Bind False

"
On the above line i get an error saying that object was open for read and it works fine in autocad2002, i need to work in 2000 as well

pdf
17-02-2004, 10:12 PM
I am just guessing; I think you need to bind the referenced file to the file you are manipulating.
Type xref (enter). The xref manager box appears. Highlight the file you want to bind. Click on the bind button on the lower right side of the xref mgr. window.

architech
30-03-2004, 12:02 PM
I might be late on this ....
But I'm wondering if under options ..... :|

Do you have "enable" on or "enable w/ copy"?
"Enable w/ copy" is what you want. :mrgreen:

Sorry in advance if this doesn't work. :?