How to remove unwanted formatting from AutoCAD Text with StripMtext Lisp.
Are you are having trouble editing Mtext in an AutoCAD drawing? is additional formatting causing the problem?
I came upon a problem today with Autocad that I had not come across before. Whilst working on a colleagues drawing I discovered that he had over written the Font inside some MTEXT so that It was no longer controlled by the text style.
Not only was this really annoying, but I knew that I was way to retentive to leave it so I set about finding a solution.
It didn’t take long to dig up this post by ‘Hedgehog’ on Changing Mtext Font style at the CAD Tutor Forums.
Hedgehog posted up a lisp routine called ‘StripMtext’ by Steve Doman and John Uhden that strips out errant formatting from MTEXT and Dimension text. It worked great and was exactly what I needed.
I was going to put a ‘How to’ together, but a quick web search lead me to this demo by CAD Tutor regular Lee Mac which says it all really!
You can download StripMtext Lisp from Steve and John’s ‘Cadabyss’ Blog.
Thanks Steve and John.
This is a brilliant routine. How can one modify it to it for text within blocks, without having to edit each block?
Hi Justin,
I recommend that you post your question on the Autodesk AutoCAD customisation forum here:
https://forums.autodesk.com/t5/autocad-customization/ct-p/AutoCADTopic1
There are plenty of good and kind people on the forum just poised to help you with exactly this kind of question!
If you do – please head back here and leave us a link to your post so that we can find out the solution?
Thanks :)
Paul
Thank you for this great “lisp”, what a time saver. im working on a very large project and it will save lots of time. i even made it into a button and put it on my favorite custom tool bar
That’s great!
Currently trying to find lisp that will allow change character width on multiple mtext. I found it before but now can’t locate. Client changed standard so had to change font and the width on new font won’t fit. Thanks, Penny
Hi Penny,
Can you change it in the Style? – Like this:
http://forums.autodesk.com/t5/autocad-2010-2011-2012/changing-mtext-width-of-multiple-objects/td-p/3066426
If not, you may be able to make use of the Lisp routine on this page:
http://www.theswamp.org/index.php?topic=4354.0
Paul
Thanks for your sharing. It works well.
I would like to translate your post into Chinese to make it known by Chinese users. Do you mind it?
Not at all – Thanks :)
Please could you maintain any links in the post – and link back to the CadSetterOut.
Leave a comment here when it’s done and I’ll put a tweet out.
Paul
Couldnt download it but it seems exactly what i need :(
Thanks for this lisp routine! Works very well in Autocad Mechanical 2009.
No problem Agalfa – I’m glad you found it helpful!
That is pretty fantastic! Thanks for the info.
– KFD –
Glad you liked it Curt! I hope that you find it useful :)