Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

awkeller88
12989 Vistas, 25 Respuestas

MLEADER - Batch clear MTEXT formatting

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

Cadologist
en respuesta a: awkeller88

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

awkeller88
en respuesta a: Cadologist

Perfect. Thank you kindly :cara_con_una_leve_sonrisa:

~Andy

Cadologist
en respuesta a: awkeller88

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

Anonymous
en respuesta a: Cadologist

YOU sIR  rocketh!

Anonymous
en respuesta a: Cadologist

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

Any ideas?

Thanks in advance.

pendean
en respuesta a: Anonymous

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.

Anonymous
en respuesta a: pendean

That's what I thought.

Thanks for your reply.

The_Oak
en respuesta a: awkeller88

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

cadffm
en respuesta a: awkeller88

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

The_Oak
en respuesta a: cadffm

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

cadffm
en respuesta a: The_Oak


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

pendean
en respuesta a: The_Oak

@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

 

The_Oak
en respuesta a: awkeller88

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.

cadffm
en respuesta a: The_Oak


@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

The_Oak
en respuesta a: cadffm

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.

pendean
en respuesta a: The_Oak

pendean_0-1643723427961.png

 

cadffm
en respuesta a: cadffm


@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

The_Oak
en respuesta a: awkeller88

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.

cadffm
en respuesta a: The_Oak

" 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