Any idea how to bind all xrefs in 1 command.
Serge
Any idea how to bind all xrefs in 1 command.
Serge
Command: -XREF
Enter an option [?/Bind/Detach/Path/Unload/Reload/Overlay/Attach] <Attach>: _B
Enter xref name(s) to bind: *
Command:
Also, if you want the "insert" option (versus "bind" option) you'll need to set the "bindtype" variable to "1"
I didn't test it, but I would assume you would add to your routine:
(setvar "bindtype" 1)
Update.. I tested this one:
I tried this and it worked ok, but it tripped up if you have xrefs unloaded.Code:;;;BIND-INSERT ALL LOADED XREFS (defun c:bxr () (SETVAR "BINDTYPE" 1) (COMMAND "-xref" "reload" "*" "");;reload all xrefs (COMMAND "-xref" "bind" "*" "") )
So I added the reload xrefs command too.
(which may be a problem if you didn't want that one in the file)
Last edited by tedg; 2007-09-28 at 02:18 PM. Reason: added routine after testing
Ted
____________________________________________________________________________________
AutoCAD 2012 - REVIT Structure 2012 - MicroStation V8i - Windows 7 Professional - (dabble with Inventor 2012)