TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: diego65 on December 12, 2012, 12:54:15 PM

Title: Help uploading and reloading Xref in a directory
Post by: diego65 on December 12, 2012, 12:54:15 PM
I am looking for some help creating a LISP that will allow me to unload and or reload a specific xref in a bunch of drawings by using the xref file name.

Any help will be appreciated it…

Thank you…
Title: Re: Help uploading and reloading Xref in a directory
Post by: Lee Mac on December 12, 2012, 01:22:20 PM
You will need to use a Script to process the drawings, since XRefs are not loaded when interfacing with a drawing using ObjectDBX.
Title: Re: Help uploading and reloading Xref in a directory
Post by: CADDOG on December 12, 2012, 09:25:19 PM
Anybody ever try to add 32 to dxf 70.  Just thinkin...
Title: Re: Help uploading and reloading Xref in a directory
Post by: irneb on December 13, 2012, 12:51:57 AM
Anybody ever try to add 32 to dxf 70.  Just thinkin...
Doesn't work ... not through ObjectDBX. And if you can believe the help on that, the 32 & 64 bitcodes are "Ignored on input" anyway.

Nope, as Lee's stated use a script on multiple drawings. You need only use the XREF command's command-line arguments for this. E.g. say your xref's name is MyXREF.DWG, then your SCR file should look something like this:
Code: [Select]
-XREF Reload MyXREF
QSAVE
Then run that through something like ScriptPro / AutoScript.