View Full Version : Script for Xrefs.... Attach/Detach
jlord.108497
2008-02-19, 11:24 PM
Does anyone have a script that can Attach or Detach one or more xref(s)? I would like to run this for multiple sheets.
Thanks,
lordj
rkmcswain
2008-02-20, 02:13 PM
To Detach all xrefs:
(command "._xref" "_D" "*")
To attach a single xref:
(command "._xref" "_A" "C:\\drawing7.dwg" "_S" "1.0" "_R" "0.0" (list 0 0 0))
To attach multiple xrefs:
(foreach item (list "C:\\mydrawing7.dwg" "C:\\anotherdwg.dwg" "C:\\lastdwg.dwg")
(command "._xref" "_A" item "_S" "1.0" "_R" "0.0" (list 0 0 0))
)
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.