Text Format in Attributes - Multiple Styles in Single Attribute

Text Format in Attributes - Multiple Styles in Single Attribute

Anonymous
Not applicable
4,500 Views
14 Replies
Message 1 of 15

Text Format in Attributes - Multiple Styles in Single Attribute

Anonymous
Not applicable

Is it possible to have multiple text formats within a single block attribute? From what I can tell, this is impossible. But I wanted to check with the community to see if I'm missing something.

 

For example, if I have an attribute value of "ROOM 101", is there any way to make just the "101" a different font size?

 

I can see that %%B, %%U, etc work for bolding/underlining within the attribute value, but it seems like the other text formatting characters (like { and \) don't work.

 

 

0 Likes
Accepted solutions (2)
4,501 Views
14 Replies
Replies (14)
Message 2 of 15

jggerth
Advisor
Advisor
Accepted solution

That's easy enough to do -- just use Multiline attributes, and you can tweak to your heart's content 

0 Likes
Message 3 of 15

h_s_walker
Mentor
Mentor

I've attached a drawing which shows that it can be done quite easily with an attribute

Howard Walker
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


Left Handed and Proud

0 Likes
Message 4 of 15

Anonymous
Not applicable

Ah, thanks for the help! I didn't realize checking the "multiline" box gave the attribute the same editing options as mtext. 

0 Likes
Message 5 of 15

mark.electricaldesign
Advocate
Advocate

How can you directly manipulate the formatting string in Photo.dwg. It appears locked and only allows the text to be modified not the formatting?

 

Thanks

0 Likes
Message 6 of 15

jggerth
Advisor
Advisor

Just double click on the attirbute to open the Attribute Edit Dialog box, then pick the ellipsis to edit the multiline attribute.  You'll have essentially full control of the appearance, the same as you would with an MText object.

0 Likes
Message 7 of 15

Thanks for your response. I've done as you said and the problem persists. Please see my screencast.

I demonstrate I am able to format simple MTEXT but unable to format MTEXT as an attribute. 

I've used the sample photo.dwg from above.

 

Many thanks

 

Mark

 

0 Likes
Message 8 of 15

mark.electricaldesign
Advocate
Advocate

Thanks for the response.

When I edit MTEXT I have access to all the formatting features from the ribbon ie change colour, font for individual characters. 

However, on my version of ACAD 2021, when I try the same with an MTEXT attribute. It brings up the MTEXT as an editable modal object with a small toolbox and I do not have access to the Ribbon or Properties Panel (The Mouse turns to a no-entry symbol) when I hover it over anything useful. All I can do is change the text and add some simple formatting eg. Underline, Overline etc from a right click context menu.

 

Please see screencast https://autode.sk/3hvAHoP

 

0 Likes
Message 9 of 15

miodrag.jovanovic
Contributor
Contributor
Accepted solution

@mark.electricaldesign Hallo!

If You didnt solve the problem, try next:

***in Command-line type: "mtexted" then "OldEditor"

It doesnt look pretty, but it should "solve" it 🙂

 

https://knowledge.autodesk.com/support/autocad-lt/learn-explore/caas/CloudHelp/cloudhelp/2019/ENU/Au... 

0 Likes
Message 10 of 15

davidEEQPG
Participant
Participant

Hi @Anonymous !

 

Your trick to turn mtexted to oldeditor worked, but cause another problem when it comes to opening a mtext annotation. See the error below : - in that case, I have to switch back to internal all the time, and it's time consuming. 

 

davidEEQPG_0-1632407032166.png

 

I really need to make it works, guys. We have complex blocks and we need formatting to be working otherwise I'll have to separate the text from the block and it really would be a huge bummer.

 

Regards,

 

 

0 Likes
Message 11 of 15

davidEEQPG
Participant
Participant

Hi miodrag !

 

Your trick to turn mtexted to oldeditor worked, but cause another problem when it comes to opening a mtext annotation. See the error below : - in that case, I have to switch back to internal all the time, and it's time consuming. 

 

davidEEQPG_0-1632407032166.png

 

I really need to make it works, guys. We have complex blocks and we need formatting to be working otherwise I'll have to separate the text from the block and it really would be a huge bummer.

 

Regards,

 

 

0 Likes
Message 12 of 15

miodrag.jovanovic
Contributor
Contributor

Hi David!

Only thing I can think of is Strip Text formating LISP...

 

;;;; StripMtext Version 5.0c for AutoCAD 2000 and above
;;;; Removes embedded Mtext formatting
;;;; Please send comments, wish lists, or bug reports to:
;;;; cadabyss@gmail.com or lowercase@hawaii.rr.com
;;;; Look for new stable releases at:
;;;; http://cadabyss.wordpress.com/
;;;; More information may also be found at:
;;;; http://www.theswamp.org/
;;;; Subforum: "Show your stuff", Subject: "StripMtext v5"

 

Try it out, I didnt have the time to try it - maybe when lisp trips text from format, "oldeditor" will be able to "see" it...

Good luck!

0 Likes
Message 13 of 15

davidEEQPG
Participant
Participant

Hello again miodrag, 

 

The strip lisp is working fine, if I remove the column option from the mtext, it will let me open in mtexted "internal". Problem is, inside of my bloc, the multiline text is impossible to strip as it is an attribute in the first place. Any clue how I could do, or remove the properties from somewhere else ? Cause I need to be able to change text from block to block.

 

davidEEQPG_1-1632420197509.png

 

Regards, 

 

 

0 Likes
Message 14 of 15

pendean
Community Legend
Community Legend
@davidEEQPG that LISP tool is for MTEXT, as are all the METXT ribbon commands you keep wanting to use in your video.

Apples vs Oranges: sure they are both fruit, but different.

You might also be hitting limitations of the OldEditor: aka its old features. Perhaps it's not the utopia it was first believed to be that you are still hoding on to?

SO... is your me-too post more like "I don't like how m-line-attributes are edited and I want it to be more like MTEXT editor" topic? You'll have to find a 3rd party add-on for that, if one exists in the first place, if the tips here are not :good enough for now" in the core program https://forums.autodesk.com/t5/autocad-forum/need-quick-way-to-edit-multi-line-attributes/td-p/92743...

You can also ask Autodesk to consider this as a future add to the program here https://www.autodesk.com/company/contact-us/product-feedback

Good luck
0 Likes
Message 15 of 15

Nick.BurgerBLZ6W
Explorer
Explorer

If anyone is stumbling upon this now like I am. This may be the solution you're looking for:
Small text formatting toolbar for attributes in AutoCAD (autodesk.com)