Block Attribute with Border like MTEXT

Block Attribute with Border like MTEXT

odoshi
Collaborator Collaborator
2,725 Views
7 Replies
Message 1 of 8

Block Attribute with Border like MTEXT

odoshi
Collaborator
Collaborator

Hi,

 

I've got a general CAD question. (I usually spend my time in the Civil 3D group)

 

Is it possible to create a block attribute with a bounding box shown, as MTEXT does?

 

The attribute value will have different lengths at different times, and I need the box to "stretch" around the value, as MTEXT behaves.

 

Thanks!

 

 

 

Mike Caruso
Autodesk Certified Instructor 2014
AutoCAD/Civil 3D Autodesk Certified Professional 2014, 2015, 2018
www.whitemountaincad.com
2,726 Views
7 Replies
Replies (7)
Message 2 of 8

imadHabash
Mentor
Mentor

HI,

 

Yes you can... it's called Dynamic block.

Imad Habash

EESignature

0 Likes
Message 3 of 8

odoshi
Collaborator
Collaborator

Hi,

 

It will be part of a dynamic block, but I do not want to manually stretch the frame.

 

I believe I saw your example "dynamic block attribute.dwg" in another post.

 

So far, wipeouts are fixed size, MTEXT does not allow insertion of attributes, only fields, so I feel like I've hit the wall.

 

Thanks,

 

Mike Caruso
Autodesk Certified Instructor 2014
AutoCAD/Civil 3D Autodesk Certified Professional 2014, 2015, 2018
www.whitemountaincad.com
0 Likes
Message 4 of 8

steven-g
Mentor
Mentor

How will this be used, a field or a field inside mtext can be used to show the value of an attribute inside a block, unfortunately they don't update with the block, but it does if it is outside the block. This may not help you in this case but if you could post the block and describe what it needs to do, there may well be a similar sort of workaround, and just to be clear what exactly do you mean by a bounding box

0 Likes
Message 5 of 8

odoshi
Collaborator
Collaborator

Unfortunately, everything is inside the same block. I just want an attribute that has a rectangular text border, capable of expanding with the length of text.

 

Hope Autodesk is listening...

 

For now, I am going to use a fixed size border, since most values contain the same number of characters.

 

Thanks!

Mike

 

 

Mike Caruso
Autodesk Certified Instructor 2014
AutoCAD/Civil 3D Autodesk Certified Professional 2014, 2015, 2018
www.whitemountaincad.com
0 Likes
Message 6 of 8

scooberu
Enthusiast
Enthusiast

Thank you for this pursuit. Have you found a solution yet?
I need to do something similar. It will be possible to use a dimensional constraint (or 2) to manually stretch a bounding box. It’s not ideal, and I would like to mask the text too.

0 Likes
Message 7 of 8

adrian_cruz-pc
Contributor
Contributor

The solution I found in another thread was to make your attribute multiple lines. There are some drawbacks to using this method, like when editing attribute text you will need an additional click. But this does add mtext functionality. You can also add a background mask, just need to edit the attribute text, which pops up the mtext editor, and you can find the option for mask under text formatting pulldown.

 

 

attrib.png

.

0 Likes
Message 8 of 8

adrian_cruz-pc
Contributor
Contributor

I replied to the wrong person (noticed post was 2017 haha), just pinging you in case. Not sure if the solution I gave would help your scenario.