Dynamic component - refering to attribute

Dear All,
I’m willing to refer to an attribute outside the active component but it doesn’t work.
I have three real components: component#1, component#2, component#3.
Component#4 and component#5 is just their parents in the following way:
Component#2 and component#3 is part of component#4.
Component#4 and component#1 are part of component#5.
Please check the picture.2020-10-28 (1)

I want the length of component#1 to depend to the length of component#3, therefore I entered into the field of LenX of component#1 -> =component#3!lenx
After hitting enter, the field starts with a red hastag and component#3! becomes red as well.

The reason of not putting these two components next to each other is that I want to resize component#4 with Sketchup’s resize tool, and I would like component#1 to automatically resize according to a function. (if I put component#1 into the same component where #2 and #3 are, then resizing will distort the original shape of component#1)

I hope you understand my problem! Any advise?

you need to pass #3 to the level of #1.
(eg. in #4 , you have an attribute ‘Value_comp#3’ with formula ‘=Component#3!Attribute’)
then, in #1 , refer to the attribute of #4, DC’s can only read components that are One level up (‘Parent!’), the one’s next of them and one generation of children of their own

1 Like

Thanks for the help MikeWayzovski!

2 Likes