#Xref List
Gary and ALL –
I have completed a routine that writes out a batch file that copies all
xrefs to a drive or directory. It uses ssget to make a list of the blocks.
Then I get the block names one-by-one and do a tblsearch on it which
returns an association list. If the insert is an xref, then (cdr (assoc 1
block_list)) will return the directory path. (block_list a variable
containing the result of tblsearch.)
Finally I write that out to a file called xref.bat. The idea was to aide in
archiving a drawing.
One problem! If you xref/attach a block without the full path, allowing the
DOS ACAD=dir1;dir2 environment to find it, there will be no path – only the
block name. So the first advice is to always use the complete path to
externally referenced symbols.
To all: any other ways to do this better??
– Ted Schaefer
I'd like to write a