PDA

View Full Version : Where is the Xref name?


MAGAMA
2004-12-17, 07:47 PM
Does anyone Knows what is the Variable in AutoCAD that stores the Xref Names?
I need it for a LISP rutine that I'm working on, Thanks.

miff
2004-12-17, 09:01 PM
There is no "variable". Xrefs are stored in the Block Table. Using standard lisp examine the Block's group 70 code. Using Vlisp examine the IsXref property.

rkmcswain
2004-12-18, 02:27 PM
Does anyone Knows what is the Variable in AutoCAD that stores the Xref Names?
I need it for a LISP rutine that I'm working on, Thanks.


(setq lst '())
(while (setq x (tblnext "block" (not x)))
(if (= (logand (cdr (assoc 70 x)) 4) 4)
(setq lst (cons (cdr (assoc 2 x))
lst
)
)
)
)
(mapcar 'print lst)