Changing Attribute Definition does not update "Field" within a Text Box

Changing Attribute Definition does not update "Field" within a Text Box

CColozza
Contributor Contributor
346 Views
2 Replies
Message 1 of 3

Changing Attribute Definition does not update "Field" within a Text Box

CColozza
Contributor
Contributor

I'm sure this has a simple answer, maybe my approach is wrong. My goal is to insert a dynamic block into a drawing, right click on the block and go to "properties", change a custom property to a specific number or phrase, and then have several text boxes within the block immediately reflect that change. Right now, even in block editor, changing the attribute definition value doesn't cause the field in the text box to update/change.

 

Below is a snapshot of what is occurring after I insert the block into a DWG. The attribute definition label updates to 50 no problem (I threw it there as a test), but the field inside the text box stays at the initial default value of 100. Ideally I'd like to have all of the "21.63" values update accordingly to whatever I update the attribute definition to. I also have different visibility layers depending upon the number of circuits there are, so that adds another layer of complexity; I cant just have one big attribute definition stretching across the whole block.

 

CColozza_0-1696955886062.png

Is there a better way I could be approaching this whole debacle? Can I have the block look for a reference within the DWG I insert it into, maybe an attribute definition (with the same name) within the DWG?

0 Likes
347 Views
2 Replies
Replies (2)
Message 2 of 3

cwr-pae
Mentor
Mentor

Its sorta clutsy, but there is a way to achieve that. See the attached block. Copy and paste the block in a new drawing and explode it. Then change the "Scale" attribute value and regenerate; you will see the other attributes change.

The way to achieve this to create the block with an attribute for each value you want to change, the default values don't matter.  After saving and existing the block manager, edit each attribute to a field reading an object which is the block. You will find the attribute name in the list of properties to read. You may have to exit the attribute editor and then reenter it to get it to show the attribute in properties list. Do this for each attribute. You can create a new block containing this block or use as drawing with just this block to insert it to other drawing and explode it. You have to have the block in a block to insert it and keep the fields in it.

 

0 Likes
Message 3 of 3

CColozza
Contributor
Contributor

cwr-pae,

 

This is definitely an unusual way of going about this but I think I understand most of what is going on. To summarize what I know: what you've done is created a block with separate attributes for each value that needs to be changed, including the overall reference . Then you nested that dynamic block into another block. It's clear where the fields are, however it's not clear how you got their equations inserted so that by changing one attribute, it changes all of the others; I can't seem to edit the fields themselves to explore what they're referencing. I've tried opening both blocks in the Block Editor (same as the block manager you mentioned?) but I can't seem to edit any of the "fields".

 

I'm still open to any other ideas or ways about doing this!

0 Likes