Block attribute field to attribute/text - Please help

Block attribute field to attribute/text - Please help

carl_swanGU3NV
Participant Participant
544 Views
7 Replies
Message 1 of 8

Block attribute field to attribute/text - Please help

carl_swanGU3NV
Participant
Participant

Hi all,

 

I could REALLY use some help. I've looked over every single post I can find regarding getting attribute field values into 'slave' attributes and/or text and for some reason I just cannot get it to work. I have previously managed to make it work in AutoCAD LT 2024, but now in AutoCAD 2025 (and LT) I can't replicate the functionality. All of the tests I have done have been using dynamic blocks, attsync has been ran, regen has been ran...everything sugested has been tried. Either I've missed something, or there is some bug or setting that's preventing this from working.

 

Basically, I have a block that gets 'named' via an attribute (Tag = "MASTER_ID). I need to duplicate/display the value of this attribute multiple times within the block on various components. The block is heavily parametrically constrained, and I need to place the 'names' onto each component and have it remain in place on each component as the block is adjusted. My attempts using 'slave' attributes have resulted in undesired alignment issues, so I believe that the best way to make it all work with the constraints is to have this value displayed as single line text. I've seen exactly this functionality in the posts I've linked to below, so I know it can be done, but I'm currently incapable of replicating it.

 

There are up to 20 components within each block, so basically I need the main attribute, and then (up to) 20 slaves of this field value. I've attached a file (Attributes_To_Text) with my attempt and what I'm trying to achieve. I'd be amazingly grateful if anyone could help me resolve this issue as it's driving me completely nuts!

 

Many thanks

 

(Some) posts I've used;

Solved: Repeated Block Attributes - Autodesk Community - AutoCAD LT

Single attribute repeated multiple times - AutoCAD LT - AutoCAD Forums (cadtutor.net)

Text field attribute value - Autodesk Community - AutoCAD

 

Files with this functionality that I've found have also been included (Field and Attributes1)

 

@Libbya @h_s_walker 

0 Likes
545 Views
7 Replies
Replies (7)
Message 2 of 8

MMcCall402
Mentor
Mentor

You can link the value of one, or more, attributes to another thru fields.  A dynamic action is needed in the block in order to kick-start them into updating.  Once they get started they'll keep updating.

 

Sometimes when editing these blocks I need to go further than just an ATTSYNC to get them updated.  If they don't work after a sync I delete the block and insert a new instance of it. Usually works.

 

Another option would be to store the info as a User Parameter and then use attributes with fields linked to the value of that user parameter.  They'll update without the need for a kick-start.  (see below)  The value of the User Parameter will show in the properties window and can be edited there for each instance of the block.

 

MMcCall402_0-1727987712117.png

 

Mark Mccall 
CAD Mangler


EESignature


VHB - Vanasse Hangen Brustlin, Inc.


Linkedin

0 Likes
Message 3 of 8

carl_swanGU3NV
Participant
Participant

Thanks for the response 🙂

 

I've been trying to go with the route you described and that's not working.

 

I like your suggestion with the user parameter, and I've just attempted to implement it. Unfortunately, it failed - everything is setup exactly as shown in your screenshot, but the field data is not being read. The attribute just shows the text and this is not contained within the light grey box which indicates that it is data from a field. It just defaults to "UserVariable" as text every time as shown below;

 

carl_swanGU3NV_0-1727990059553.png

 

 

 

I'm beginning to think that there is an software setting or issue in my system and that a reinstall is required.

 

Would you mind sending back your working file so I can see if it works on my system?

 

Thanks for taking the time to help out

0 Likes
Message 4 of 8

MMcCall402
Mentor
Mentor

Attached is the drawing I was playing with.

 

 

Mark Mccall 
CAD Mangler


EESignature


VHB - Vanasse Hangen Brustlin, Inc.


Linkedin

0 Likes
Message 5 of 8

carl_swanGU3NV
Participant
Participant

Thanks very much.

 

The functionality is working my end, which is great.

 

Would you mind trying to do it with an attribute controlling a slaved attribute, and a line of single text please? If you could post the file so that I can download it and test it on my system it would be amazing....If it works on my system then there is 100% some kind of issue with my installation, or a bug in AutoCAD 2025 that's preventing this functionality.

 

Many thanks

0 Likes
Message 6 of 8

h_s_walker
Mentor
Mentor

@carl_swanGU3NV Have a go with this simple block it was created in LT2025

To make the block work you need to stretch the line BEFORE you edit the first attribute. Do not edit the second attribute, just exit the dialog box and do a regen

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 7 of 8

carl_swanGU3NV
Participant
Participant

@h_s_walker 

 

Thanks for looking into it for me. It's working exactly as it should 🙂 Thank you so much for the help.

 

I was able to edit the block, duplicate the slave attribute, change the tag of the duplicated attribute to "slave1" and have it replicate the 'name' on both slave attributes exactly as I expected it to, which is fantastic! I've noticed that its built exactly the same way as I have been building it (including when I had it working in LT 2024), but for some reason I just cannot get it to work on my machine. I'm going to do a full reinstall of AutoCAD and downgrade to 2024 this weekend and see if the problem goes away.

 

I have a favour to ask if you don't mind. Well, actually 2 of them;

 

1. Would you mind posting a screencast showing how you did it so I can see if I missed a step or did something stupid?

2. Could you try to create (and upload if successful) exactly the same thing, but with the slave being single line text rather than an attribute?

 

Thank you so much for your help with this, I really appreciate it.

 

Carl

0 Likes
Message 8 of 8

h_s_walker
Mentor
Mentor

@carl_swanGU3NV Unfortunately I have no way of recording my work.

Also the slave HAS to be an attribute, it cannot be single line text.

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