Jump to content

Content of MTEXT filtering from the lisp


wimal

Recommended Posts

(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.

Link to comment
Share on other sites

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

  • Like 2
Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...