wimal Posted September 20, 2019 Posted September 20, 2019 (assoc 1(entget entname)) From the entity list of a MTEXT , using the above code I can get (1 . "{\\fCalibri|b0|i0|c0;\\c0;2.25") How can I filter the content text of 2.25 from that or, some other way. Quote
dlanorh Posted September 20, 2019 Posted September 20, 2019 Use (cdr (assoc 1 (entget entname))) to get the text string only => "{\\fCalibri|b0|i0|c0;\\c0;2.25}" which was missing the final "}" Then send it through Lee Mac's unformat string routine => Download Here or Get yourself Strip MText which allows detailed control of what gets stripped => HERE 2 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.