create attribute in nested block to reference an attribute in its parent block

create attribute in nested block to reference an attribute in its parent block

steven.lloyd
Observer Observer
619 Views
2 Replies
Message 1 of 3

create attribute in nested block to reference an attribute in its parent block

steven.lloyd
Observer
Observer

Hi All,

 

I have created a series of dynamic block that allows the user to rotate, stretch and mirror an assortment of articulated steel braces, type A, Type B and Type C. You might use dozens of each these blocks in one drawing so there is also an attribute "brace mark". the user types into each "B1.1", "B2.1" "B2.2" etc. so that each block has a unique identifier.

 

each brace itself is made up of several standard components. for the sake of argument let's call them "Swivel Plate", "1m Beam", "2m Beam", "4m Beam" and "Adjuster Unit". each of these components is a block with attributes defining the name and weight of each and many of these component are common between the "type a" "type b" and "type c".

 

I want to create a third attribute within the component parts that will reference the "brace mark" attribute of the parent block that it lives within. (the reason I want to do this so that when I extract attribute information from my drawing I will be given a list that says not only the total quantities of each component, but will let me work out which brace each component was used on).

 

so far it has left me baffled - I have managed to get it to tell me the block name of the brace type, but can't find a way to get unique reference that are related only to it's own parent block.

 

Or would it be easier to do another way? I'd thought about a table within the parent block that sums up the numbers of each component enclosed... i'll be honest, I'm not sure how to do that either.

 

any help would be much appreciated.

thanks,

Steve

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

Libbya
Mentor
Mentor

Please back-save your block to 2013.  I have not yet 'upgraded' to 2017 (and won't until there's a service pack...).  I'd like to help but reading your description is just confusing without being able to reference the file.

0 Likes
Message 3 of 3

steven.lloyd
Observer
Observer

as requested, find attached a 2013 version.

 

and thanks for your help!

0 Likes