PDA

View Full Version : XREF dxf code


cadconcepts
2008-07-06, 11:04 PM
Hi All-

I took a quick look at the developers help file in an effort to find out how I could determine if an inserted block was an xref and whether it was clipped with no luck at all. If anyone knows how I can go about obtaining this information via LISP please let me know. Thanks.

Manuel A. Ayala
CAD Concepts

rkmcswain
2008-07-07, 02:22 PM
Try this...


(defun isXref (blkname)
(and (setq r (tblsearch "BLOCK" blkname))
(eq 4 (logand 4 (cdr (assoc 70 r))))
)
)


To tell if the xref is clipped, see this:
http://discussion.autodesk.com/thread.jspa?messageID=1219380