TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Sitra on April 23, 2004, 02:51:51 PM

Title: Xref Paths
Post by: Sitra on April 23, 2004, 02:51:51 PM
Looking for a lisp or vba routine to help go through my drawings and change multiple xref drawing paths to dot dot. Without having to open each drawing manually. Any help would be greatly appreciated thanks in advance.  

ex:
..\xref\border.dwg
..\xref\siteplan.dwg
..\xref\ductbanks.dwg
Title: Xref Paths
Post by: SMadsen on April 23, 2004, 03:05:58 PM
Conrad, try see this thread (http://theswamp.org/phpBB2/viewtopic.php?t=1170)

There are some more threads if you search for "xref path" or thereabout
Title: Xref Paths
Post by: Sitra on April 23, 2004, 03:23:15 PM
Thanks I will look more into it. :D
Title: Xref Paths
Post by: CAB on April 23, 2004, 03:42:22 PM
Here is another thread to look at.
xref repath (http://www.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=MPG.1ab6367cd7bba6d09896f3%40discussion.autodesk.com&rnum=6&prev=/groups%3Fq%3Dxref%2Brepath%2Bgroup:autodesk.autocad.customization%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26selm%3DMPG.1ab6367cd7bba6d09896f3%2540discussion.autodesk.com%26rnum%3D6)
Title: Xref Paths
Post by: VerticalMojo on May 21, 2004, 02:20:53 PM
Is there any way for the path to have a shortcut?????

..\shortcut\XREF.dwg

I tried this and it didnt read the shortcut.... but maybe someone knows something I dont....
Title: Xref Paths
Post by: VerticalMojo on May 21, 2004, 03:42:46 PM
guess not
Title: Xref Paths
Post by: Dommy2Hotty on May 21, 2004, 04:17:30 PM
What about a way to change the xref's from "full path" to "no path"...we keep all xrefs in the same folder as the drawing that it's xref'd into...but we used to use "full path"....now we found that we should be using "no path"
Title: Xref Paths
Post by: Slim© on May 21, 2004, 04:22:41 PM
This is one way:
Code: [Select]
(defun c:rx ()
(setq RLXR (getstring "\nName of External Reference to reload: "))
        (command "_xref" "r" RLXR)(princ)
)


Another would be to open the XREF dialog box, click on the XREF which has the path you want to change, then delete the path information in the "Xref found at:" box, and press "Save Path".

There may be other ways, always open for better and more elegant. :)

Sorry, you have to open each drawing separately tho.  :|
Title: Xref Paths
Post by: ronjonp on May 21, 2004, 05:51:27 PM
Xrepath is the only program I have found to change the paths without opening the drawing. You can manipulate them however your heart desires.  :D

http://theswamp.org/phpBB2/viewtopic.php?p=15132#15132