adding box around only partials of mtext

adding box around only partials of mtext

Anonymous
Not applicable
1,945 Views
6 Replies
Message 1 of 7

adding box around only partials of mtext

Anonymous
Not applicable

Good afternoon,

 

I have a customer trying to get a box around only certain letters/sections of an mtext object as shown here;

adamevangelista_0-1614892994860.jpeg

They've been manually drawing the box as I understand.  And I've since found a few methods to do frames around the whole text object (TCIRCLE and the Text Frame object property toggle). However, those methods draw the border around the whole object, where the customer really just wants it around certain portions, like the 6 picture above.  

 

Any recourse for this sort of thing?

 

Thanks,

 

0 Likes
1,946 Views
6 Replies
Replies (6)
Message 2 of 7

pendean
Community Legend
Community Legend

Not an option in AutoCAD/LT: its all or nothing.

Perhaps you can OLElink to an Excel Spreadsheet or "word" document that is doing all of that and is only referenced in your CAD file(s), if what you do now needs to go away.

0 Likes
Message 3 of 7

rkmcswain
Mentor
Mentor

What kind of criteria do you have regarding this box?

What determines where it goes?

In order to automate it, you'd have to have some rules to go by.

Like around a certain word, or so many units from the right side and bottom, or......?

 

If the location can be defined with something like that, it can probably be automated with autolisp or some other language.

R.K. McSwain     | CADpanacea | on twitter
0 Likes
Message 4 of 7

jeff.lentz
Enthusiast
Enthusiast

I was thinking background mask, but that likely impacts the whole object. Setting this as a block with attributes would incorporate the box. I don't know of any feature in AutoCAD that would allow a box drawn around just a portion of an mtext object. The box needs to be part of a block. How that's accomplished might vary - a text portion of the block with the box and the rest being an attribute, two attributes, an oversized box that works for any number and a single attribute that combines the number and the text.

0 Likes
Message 5 of 7

ВeekeeCZ
Consultant
Consultant

This is a format that you can have quite easily.

Z9E3zK5E_0-1614934016853.png

 

Message 6 of 7

Kent1Cooper
Consultant
Consultant

These:

Kent1Cooper_0-1614945721756.png

are available through the Other... item at the bottom of the list brought down by the @ Symbol icon in the Mtext-editing ribbon.  They're at the same nominal height -- the first two [smaller ones] are in the WINGDINGS font, and the last two [larger] in WINGDINGS 2.  But they have the rather severe limitations that they go only up to 10, and you have no choice of the font of the character part, and it's quite a bit more work to change the number.  There may well be other fonts out there that use a character style more like yours, and/or that have boxed numbers in a wider range.

 

I was hoping it would be possible to put in an empty square character from one of those symbol fonts, followed by a number:

Kent1Cooper_2-1614947040498.png

and kern them together with a reduced "tracking" value:

Kent1Cooper_1-1614946216726.png

but that won't go farther down than 75%, nowhere near overlapping them completely.

Kent Cooper, AIA
Message 7 of 7

ChicagoLooper
Mentor
Mentor

How about a block? The block would be a rectangle with two attributes.

 

The 'xxxxxx'  and the '-001' parts would be two separate block attributes. The xxxxxx portion would be inside the rectangle and the -001 portion would be outside and to the right of the rectangle.

 

 

10.png

 

You can make enhancements as needed, e.g. annotative block, hatch for the rectangle, text style, etc.

 

 

Chicagolooper

EESignature

0 Likes