Attribute text location moves with stretch

Attribute text location moves with stretch

DanMiddleton
Advocate Advocate
5,509 Views
4 Replies
Message 1 of 5

Attribute text location moves with stretch

DanMiddleton
Advocate
Advocate

Been working with AutoCAD for years, and have not really visited dynamic blocks.  I thought this would probably speed up a lot of the process, if I could get the blocks to do what I thought they could do.  And to my surprise, this seems to be working.  I know it is quite primitive block compared to what some of you are doing, but humor me for a bit.Smiley Happy

 

I have created a "door" block for insertion into my drawings.  It is attached.  I have it working pretty well, for our purposes.  I have the width and height changing with a stretch command and also the top of door elevation changes relative to an insertion point.

 

I would like to clean it up a bit and have the top of the door elevation text, the text inside the door to move depending on the size of the door.  So the top of door elevation would move up or down and be centered on the door width.  The text inside would be centered on the width and height of door?  I have tried a number of different things, but cannot seem to get this part to work.  Anyone have suggestions?

Dan Middleton
AutoCAD user since 1993
AutoCAD LT 2023
0 Likes
Accepted solutions (2)
5,510 Views
4 Replies
Replies (4)
Message 2 of 5

Libbya
Mentor
Mentor
Accepted solution

Add an additional stretch or move action to the Width_dr linear parameter and add to its selection set whatever text you would like moved.  Select the new action and go to properties.  Find "Distance Modifier" and if the text is centered in the middle of the parameter as drawn in block editor and you would like to keep it centered, then change the value to 0.5.  That will make the text move 1/2 of the distance that the parameter grip is moved.  

Message 3 of 5

DanMiddleton
Advocate
Advocate

When I select the text I am ok, but when I pick my ATTDEF variables it says "3 unlocked AttDefs filtered from selection".  I can center the text, but not the Attributes?

Dan Middleton
AutoCAD user since 1993
AutoCAD LT 2023
0 Likes
Message 4 of 5

Libbya
Mentor
Mentor
Accepted solution

All attributes within dynamic blocks should be locked as a matter of course.  Select the attributes, go to properties, set locked=yes.

Message 5 of 5

DanMiddleton
Advocate
Advocate

Thank you so much Libbya,

 

When it works, it is pretty slick.  What time I have been wasting over the years!!!

 

Have a great day!

Dan Middleton
AutoCAD user since 1993
AutoCAD LT 2023
0 Likes