Show/Hide a nested component from a dynamic component

Hello!

I am doing simple kitchen cabinets and I want to be able to show/hide the middle shelf.
I think I’m on the right direction but I can’t seem to find the right formula to do it! Could somebody please give me a pointer?

Here’s my model for more clarity:
base 1 door.skp (146.0 KB)

Thank you!

Hello @daniela1 ,

There is a Hidden attribute that you can use and can be set to 1 (or True) or 0 (or False). If it’s True than the element is hidden.

First, you should add this attribute to your nested component, it is in the Behaviors attribute group.
Then the formula for this attribute should use the value of the Shelf one in the parent component similar to something like this :
=IF(Parent!Shelf = "No", True, False)

That should solve your issue :slight_smile:

1 Like

@MetalFingerz has it exactly right.

Here is what it looks like.

The “trick” is the Toggle Formula View button in the upper right hand corner of the Component Attributes window … that is how you open the window to write the formula … in this case a simple IF statement.

230901B base 1 door.skp (149.5 KB)

2 Likes

Thanks so much for breaking it down for me! I really appreciate it!