I thought I saw a post on this in this NG, but of course it wasn't my problem then so I didn't pay attention - now I can't find it.... Can any one supply some thoughts on the fix for this, or point me to the original thread?
TIA
TIA
Jeff Mishler said:Was the block exploded leaving the resultant Attribute Definition w/ Tagstring? Attdef's won't display in an xref.... HTH, Jeff
pkirill said:That was it exactly - next question, anyone know of a routine to convert attdefs to text?
David Bethel said:;;;CONVERT An ATTDEF To A TEXT Entity
;;;ARG -> ATTDEF_ename
;;;RET -> nil
(defun attdef2text (en / ed)
(setq ed (entget en))
(entmake (list (cons 0 "TEXT")
(assoc 1 ed)
(assoc 7 ed)
(assoc 8 ed)
(assoc 10 ed)
(assoc 11 ed)
(assoc 40 ed)
(assoc 41 ed)
(assoc 50 ed)
(assoc 51 ed)
(assoc 71 ed)
(assoc 72 ed)
(cons 73 (cdr (assoc 74 ed)))
(assoc 210 ed)
(if (assoc 6 ed)
(assoc 6 ed)
(cons 6 "BYLAYER"))
(if (assoc 39 ed)
(assoc 39 ed)
(cons 39 0))
(if (assoc 62 ed)
(assoc 62 ed)
(cons 62 256))))
(entdel en)
(redraw (entlast)))
-David