jay-d Posted November 7, 2007 Posted November 7, 2007 Hello, is there a way to change MTEXT properties of various texts on a drawing quickly? For example. I have entered a bunch of MTEXT numbers that are scattered all over a drawing.. but I messed up on the font that I used. I need to change it to match another drawing.. instead of selecting each and every MTEXT, then right click > properties and changing the "contents" to a different font face and size.. is there a quicker way to do this so it affects all the MTEXT without having to select them one by one? Do I make any sense?! Quote
Tiger Posted November 7, 2007 Posted November 7, 2007 to select them all you can use Filter or QSelect - think you then can change the properties of all in one go Quote
dumfatnhappy Posted November 7, 2007 Posted November 7, 2007 you can enter "style", change the font which will effect all free text and mtext globally. that what you're trying to do? Quote
SLW210 Posted November 7, 2007 Posted November 7, 2007 Just hit properties and at the upper right you have a button for qselect. Quote
jay-d Posted November 8, 2007 Author Posted November 8, 2007 Just trying to change the font face for all of the MTEXT objects.. QSELECT worked, thank you very much guys! Quote
Hedgehog Posted November 8, 2007 Posted November 8, 2007 It depends how the MTEXT properties were set... unfortunately many people set them in the MTEXT creation box in which it is possible to change font, text style, colour, etc. but this is generally seen as bad practice because of the very problem you're highlighting here. Rather than selecting each MTEXT entity, there's a lisp routine that removes all of this format data across all of the entities you select called STRIPMTEXT... you can then alter it in a more conventional way as described in the other posts /edit Ah good, you got it sorted. stripmtext[308].zip Quote
Pablo Ferral Posted July 28, 2010 Posted July 28, 2010 Sweet! Thanks very much for posting that routine, it works great :-) Quote
Pablo Ferral Posted July 28, 2010 Posted July 28, 2010 (edited) The original was written by Steve Doman and John Uhden - More here: http://cadabyss.wordpress.com/ Featuring some great demos by Lee Mac Thanks very much Steve and John. I put a little post together here: How to remove unwanted formatting from AutoCAD Text with StripMtext Lisp/ Edited April 9, 2011 by Pablo Ferral Updated Links Quote
Rana Elhakim Posted January 25, 2021 Posted January 25, 2021 I have Autodesk Civil 3D 2019 and unfortunately the stripmtext command wouldn't work even thought I followed all the instructions. I am assuming it's because of the autocad latter version. Please let me know if you have an updated version, thank you!! Quote
RobDraw Posted January 26, 2021 Posted January 26, 2021 It should work. Which one are you using? Did you load it? What is happening when you try to run it? Quote
Rana Elhakim Posted January 26, 2021 Posted January 26, 2021 3 hours ago, RobDraw said: This is the one I am using attached below. Yes, I loaded it first. When I use it, it just doesn't do anything at all. in the command space, it says "StripmText Completed, objects processed" But nothing is changed . Also I uploaded a picture below showing what I was hoping to use the command for. i have so many mleaders whose colors are all already set "by layers", however they do not reflect the layer color. Then I find out the actual text in the text editor were all set individually to different colors. So I was hoping to use the stripmtext command to reset all the mleaders colors and properties. Please let me know what I am doing wrong or how can I make it work. StripMtext%20v5-0b[1].lsp Quote
BIGAL Posted January 27, 2021 Posted January 27, 2021 Lee-mac has a stripmtext try that or start with his string subst.lsp Quote
RobDraw Posted January 27, 2021 Posted January 27, 2021 19 hours ago, Rana Elhakim said: This is the one I am using attached below. Yes, I loaded it first. When I use it, it just doesn't do anything at all. The LISP works. It's already in my toolbox. It must be doing something if you are getting the message. Do you get the dialog box with the settings? Do you have color checked? Quote
tombu Posted January 27, 2021 Posted January 27, 2021 On 1/25/2021 at 11:04 AM, Rana Elhakim said: I have Autodesk Civil 3D 2019 and unfortunately the stripmtext command wouldn't work even thought I followed all the instructions. I am assuming it's because of the autocad latter version. Please let me know if you have an updated version, thank you!! Newest version I know of was from 2010 https://www.theswamp.org/index.php?topic=31584.0 Hadn't used it in a while. After testing neither versions 5.0b or 5.0c would work in 2021. Version 3.08 removed font and color changes but not strikethrough or leaders. Quote
RobDraw Posted January 27, 2021 Posted January 27, 2021 The screenshot in my post is from 2021. It does work. Quote
Rana Elhakim Posted January 27, 2021 Posted January 27, 2021 BIGAL, could you explain more what you mean? RobDraw, yes I get this toolbox and I do keep all the boxes checked, but nothing happens. Here is what I have in the command box. Quote
BIGAL Posted January 28, 2021 Posted January 28, 2021 Lee-mac.com is the site for lee Mac who contributes here all the time and is the best solution provider. If others are saying code is working then post a dwg for testing. Worked for me CIV3d 2020 and Bricscad V19 Quote
Steve Doman Posted January 28, 2021 Posted January 28, 2021 Hello If you are having trouble running StripMtext in AutoCAD 2021, please verify you have installed the AutoCAD 2021.1 update that was released in August 2020. This update fixes a bug in AutoLisp that broke the Vbscript RegEx object which StripMtext (and similar routines) use to find and remove formatting codes in a mtext. if after verifying you still are having trouble, then let me know and I’ll look into it. HTH, Steve Doman 1 1 Quote
tombu Posted January 28, 2021 Posted January 28, 2021 (edited) Thanks Steve! Gotta wait on MIS to install the update for my 2021.1 but tried With the 2021.1 update both 2019 and 2021.1 are working perfect. Edited January 29, 2021 by tombu Got the 2021.1 update Quote
Steve Doman Posted January 28, 2021 Posted January 28, 2021 You’re welcome Tom. I forgot to say that if you are unable to install the 2021.1 update, then second choice is to set the AutoCAD system variable LISPSYS to zero and restart AutoCAD. The caveat is AutoCAD will then use the old VLAIDE rather than new Visual Studio. Steve Doman 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.