Is there a Lisp routine out there that will search through a series of drawings and detach one xreference? This would save us a ton of time. Otherwise we would have to open up each drawing one at a time. Thanks!
Printable View
Is there a Lisp routine out there that will search through a series of drawings and detach one xreference? This would save us a ton of time. Otherwise we would have to open up each drawing one at a time. Thanks!
Nope.
But you can use this link to make a script file and batch run everything.
: ) Happy Computing !
kennet
Hi.. try uploading the tool I provided in autocad and go for "xd" command. Hope it will reduce manual steps for detaching Xref's.
Thanks
Bireshwar Mallick
Actually, you can simply iterate a directory of drawings using an ObjectDBX wrapper which iterates the ModelSpace Block Object for blocks that IsXref = :vlax-true, and use the Delete Method on the ExternalReference Object:
http://entercad.ru/acadauto.en/index...nce_object.htm
** Edit - Just be sure to check for the ExternalReference's Layer Object being locked (= :vlax-true (vla-get-lock <oLayer>)), prior to invoking the Delete Method in order to avoid a potential error. Restore the lock prior to invoking the SaveAs Method on the DBX Document Object. :beer:
... Lemon squeezy.