MLEADER - Batch clear MTEXT formatting

MLEADER - Batch clear MTEXT formatting

awkeller88
Advocate Advocate
16,142 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,143 Views
25 Replies
Replies (25)
Message 21 of 26

The_Oak
Participant
Participant

I didn't create the sample, I sent one of the ones I found as an example as asked. Despite the Multileader being on layer TEXT (which is White), setting the Color to be ByLayer does not change the colour of the text, only the leader, as it has been edited to show as Yellow (not Bylayer).

As you note, StripMtext is not built to reset the colour of Mtext within a Multileader.

0 Likes
Message 22 of 26

cadffm
Consultant
Consultant

@The_Oak  schrieb:

I didn't create the sample,

Okay, but for other ones who not knows your problem, it would be better the mleader color is set to bylayer or to color red for example.

I saw the problem, also with the color yellow, but it's easy to overlook and draw the wrong conclusions.
Anyway, I was just trying to help Pendean, assuming he might not have seen it - that's how I interpret his answer.

 

setting the Color to be ByLayer does not change the colour of the text, only the leader,

Right

as it has been edited to show as Yellow (not Bylayer).

and not by object and not by everything you can controle now. right.

 

 

As you note, StripMtext is not built to reset the colour of Mtext within a Multileader.

A cautious yes.

Again, just to make clear for other readers:

I note that StripMtext IS built for reset internal color formattings of MText, also inside a Multileader!

And you confirmed it You can create a Mleader, you can change the color inside the Mtexteditor.

SMT will remove them as expected.

 

But Yes: There is a Mtext-color property on Mleaders, which is normaly set to "color from mleaderstyle",

and SMT is not designed to change this setting.

 

Note: I don't know a "usual user way" to create an mleader like you posted.

If someone found a "normal way" (means without "hacks"), let us know.

Perhaps the issue was created by a tool, what is possible - but i don't know.

 


 

 

Sebastian

Message 23 of 26

mian.ahmedSH9K6
Explorer
Explorer

Hello,

 

I have AutoCAD 2023. Your LSP is not working. Please see attached. The height of the text should go to 0.0938 from 0.0625. I have done some one at time by right clicking it.

 

Thanks a lot for your help.

Mian

0 Likes
Message 24 of 26

cadffm
Consultant
Consultant
Message 25 of 26

mian.ahmedSH9K6
Explorer
Explorer

Thank you so so much. It worked on AutoCAD 2023. May God bless you.

Mian

0 Likes
Message 26 of 26

awkeller88
Advocate
Advocate

@cadffm 

 

Hello Sebastian. Just a big fan here 🙂

Thanks for the update as well!!

 

Happy New Years.

 

~Andy

0 Likes