motee-z Posted September 29, 2009 Posted September 29, 2009 any one can help to write a lisp to pick attribute and change it to text with same value thanks Quote
asos2000 Posted September 29, 2009 Posted September 29, 2009 its in express menu Express>Blocks>Explodes blocks to text. Command: Burst Quote
ReMark Posted September 29, 2009 Posted September 29, 2009 I believe the correct definition for the Burst command is that it explodes attributes to text and not blocks. I totally agree this appears to be the most logical approach. motee-z: What version of AutoCAD are you using? Quote
motee-z Posted September 29, 2009 Author Posted September 29, 2009 burst command is active when attribute attached with block but when attribute is not attached with block i mean single the command became not active also from express tools, i use autocad 2008 thanks Quote
MSasu Posted September 30, 2009 Posted September 30, 2009 I think this I you are looking for: (defun c:AtoT( / theAttributeEntity AttributeList TextList ) (if (not (setq theAttributeEntity (car (entsel "\nSelect attribute to convert to text: ")))) (exit)) (setq AttributeList (entget theAttributeEntity) TextList (list '(0 . "TEXT") '(100 . "AcDbEntity") '(100 . "AcDbText"))) (foreach DXFCode '(7 8 10 11 40 41 50 51 67 71 72 210 410) (setq TextList (append TextList (list (assoc DXFCode AttributeList)))) ) (setq TextList (append TextList (list (cons '1 (cdr (assoc 2 AttributeList)))) (list (cons '73 (cdr (assoc 74 AttributeList)))))) (entdel theAttributeEntity) (entmake TextList) (princ) ) Regards, Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.