MLEADER - Batch clear MTEXT formatting

MLEADER - Batch clear MTEXT formatting

awkeller88
Advocate Advocate
16,139 Views
25 Replies
Message 1 of 26

MLEADER - Batch clear MTEXT formatting

awkeller88
Advocate
Advocate

I'm looking for a way to batch remove the formatting on MTEXT that is within a MLEADER, so that the selected style takes over.

 

We have a bunch of leaders that were copied over and over that had the right style but someone went in and changed the mtext to bold.

 

So far the only solution I have found is to individually select the multi-leaders, get into the text editor, select all the text, and clear the formatting. I have also considered just changing the text style to be bold to hide the problem. Would prefer a better fix. Thanks.

 

~Andy

0 Likes
Accepted solutions (1)
16,140 Views
25 Replies
Replies (25)
Message 2 of 26

Cadologist
Advocate
Advocate
Accepted solution

STRIPMTEXT LISP (works awesome, just tested in AutoCAD 2017 and will remove bolding MTEXT from mleaders, etc.)

 

https://knowledge.autodesk.com/support/autocad/troubleshooting/caas/sfdcarticles/sfdcarticles/Text-i...


Chad Franklin
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

Message 3 of 26

awkeller88
Advocate
Advocate

Perfect. Thank you kindly 🙂

~Andy

0 Likes
Message 4 of 26

Cadologist
Advocate
Advocate

No problem Andy, glad I could assist. Having dealt with a similar issue in the past, this was a very useful 'fix'.... have a good afternoon and rest of your week, thanks for the kudos!


Chad Franklin
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

Message 5 of 26

Anonymous
Not applicable

YOU sIR  rocketh!

Message 6 of 26

Anonymous
Not applicable

I have this problem as well. Running AutoCAD 2020LT but cannot "appload" the lisp.

Any ideas?

Thanks in advance.

0 Likes
Message 7 of 26

pendean
Community Legend
Community Legend
No LISP in LT: part of the discount pricing that in AutoCADLT.
There is no workaround for LT users on this topic, you have to do it the hard way one MTEXT at a time, or EXPLODE and rebuild each MTEXT back.

0 Likes
Message 8 of 26

Anonymous
Not applicable

That's what I thought.

Thanks for your reply.

0 Likes
Message 9 of 26

The_Oak
Participant
Participant

Is it just me or does StripMText not work on Multileaders? Someone has modified the colour of the MText font of one then copied it multiple times. I'm using what I think is the latest version - StripMtext v5-0c

0 Likes
Message 10 of 26

cadffm
Consultant
Consultant

v5-0c should work with mleaders.

Try it with a new mleader and change the color of some characters only, run stripmtext, works?

 

Upload a copy of your original file (delete all except one mleader with the issue) and we will check the content on our side.

 
 

Sebastian

0 Likes
Message 11 of 26

The_Oak
Participant
Participant

A fresh example works fine but the attached is an example of the ones that don't.

0 Likes
Message 12 of 26

cadffm
Consultant
Consultant

okay,

SMT works as expected (removes the internal paragraph information)

Select your mleader, check out the text content in your properties palette

run SMT ALL oder just paragraph option

check it again -> No the Content-String is without any internal formattings.

 

BUT, MLeaders are not MTexts, Mleader stores the (M)Text color separat.

SMT is not build to change this, because it isn't a "internal Mtext format".

 

 

Sebastian

Message 13 of 26

pendean
Community Legend
Community Legend

@The_Oak Umm, there is no formatting to undo, is that the real problem? If I add custom formatting and in-editor overrides, STRIPMTEXT works just fine on your sample.

pendean_3-1643720808925.png

 

pendean_0-1643720741429.pngpendean_1-1643720787743.pngpendean_2-1643720801577.png

 

0 Likes
Message 14 of 26

The_Oak
Participant
Participant

As I noted in my original post, it's the colour of the text that has been changed within the MText that StripMtext doesn't reset.

0 Likes
Message 15 of 26

cadffm
Consultant
Consultant

@The_Oak  schrieb:

As I noted in my original post, it's the colour of the text that has been changed within the MText that StripMtext doesn't reset.


Why SMT dosn't reset it, i stated above.

My question to you: Can you reproduce it?

 

Create  a new Mleader with content "123",

check the property palette -> as content you will see just "123"

 

Now: Change the color this way that the color changed, but the content in properties palette still showing "123" and nothing else.

I have to ask for, because I don't know how to do that (what the data you uploaded shows as fact)

 

 

Attached your mleader with removed color information (now it is back - like "ByBlock")

 

 

Sebastian

0 Likes
Message 16 of 26

The_Oak
Participant
Participant

MESSAGE 11 OF 15: "A fresh example works fine"

MESSAGE 12 OF 15: "BUT, MLeaders are not MTexts, Mleader stores the (M)Text color separat.

SMT is not build to change this, because it isn't a "internal Mtext format".

 

I'm OK with that reply and hopefully, if anyone else is searching for the answer, they'll find it here.

Thanks everyone for your time.

0 Likes
Message 17 of 26

pendean
Community Legend
Community Legend

pendean_0-1643723427961.png

 

0 Likes
Message 18 of 26

cadffm
Consultant
Consultant

@cadffm  schrieb:

Attached your mleader with removed color information (now it is back - like "ByBlock")


oups, attached now.

 

 

@pendean (yes I know, you disabled the mention feature)

I am not sure what you tried to show, but i gues you oversaw that the current mleader color is also yellow,

what was the dumbest choice for an example..

Change the mleader color to another color than yellow to see the issue.

 

 

EDIT, Forgot the attachment again, lol.

 

Sebastian

0 Likes
Message 19 of 26

The_Oak
Participant
Participant

The Multileader is on layer TEXT which is white, it is also set to Color: ByLayer. The MText part of the Multileader stays Yellow as it has been changed within the Text Formatting dialog. As you noted, StripMtext is not built to change this.

Message 20 of 26

cadffm
Consultant
Consultant

" it is also set to Color: ByLayer."

No it isn't the mleaderobjekt is yellow (not a good choice as sample, set the mleader color to 1, then it is a better sample)

and the internal formatting is also yellow, instead of "bylayer" (what is a wrong wording in Acad, it should be "byBlock" , but this is another fight)

 

 

 

 

Sebastian