Box changes depending on text width

Box changes depending on text width

Anonymous
Not applicable
955 Views
3 Replies
Message 1 of 4

Box changes depending on text width

Anonymous
Not applicable

Hi,

I want to create a dynamic block made by a text within a box. The box should change its width whenever the text changes. How can I make this? Does anyone know?

Thank you!

0 Likes
956 Views
3 Replies
Replies (3)
Message 2 of 4

Libbya
Mentor
Mentor

2016 and beyond allows you to add a text frame to mtext.  If that is the only function you are looking for there is no need to make it a block.  There is not any dynamic parameter/action/constraint that will automatically adjust the size of linework based on text string length.  

0 Likes
Message 3 of 4

imadHabash
Mentor
Mentor

Hi and Welcome to AutoCAD ( Dynamic Blocks ) Forum,

i suggest to try this associative textbox routine that will help you . >> Click <<

 

Regards,

Imad Habash

EESignature

Message 4 of 4

Libbya
Mentor
Mentor

Thanks for the suggestion.  That's a nifty lisp.  I would note that it won't work for attribute definitions so it's of fairly limited use within blocks but certainly a solution if no other dynamic features are needed.  

0 Likes