Hello,
So I have two parameters at play here:
1. PalletsPerBay
Determines no. pallets on x-axis
2. No.Beams
Determines no. pallets on y-axis
I need the families two be dependent on both parameters. Please see image attached.
I used a couple of if(and()) statements but this seems tedious. Is there an easier way to do this? Maybe I could create visibility parameters dependent on two conditions?
(I forgot to add 01, 02, & 03 parameters to the list, but the idea remains the same)
Gelöst! Gehe zur Lösung
Gelöst von ToanDN. Gehe zur Lösung
Gelöst von barthbradley. Gehe zur Lösung
Gelöst von ToanDN. Gehe zur Lösung
Why don't you nest the pallet family in the beam family so that when you place a beam the pallet comes with it?
Are you Arraying in both the x and y directions simultaneously? If so, I've accomplished something similar by nesting a parametric array into another parametric array, which in turn, is nested into a host.
Thanks for the advice guys.
@barthbradley, I don't believe an array will work as there could be 1 pallet per bay, and you need at least 2 for an array, correct?
So I nested the pallets with the beams in a family: Beams&Pallets.
Please refer to image attached:
- Blue indicates hidden beams
- Red indicates hidden pallets
The nested families that are hidden are dependent only on the No.Beams visibility of host Beams&Pallets family, and therefore hide easily.
However:
Pallets 22, 23, 32, 33 are dependent on No.Beams in host family (Rack) and PalletsPerBeam in nested family (Beams&Pallets). Now they won't hide unless No.Beams & PalletsPerBeam yes/no is false.
How can I resolve this?
Thanks in advance,
Connor
So as a solution:
I created instance yes/no parameters for Pallet 2 & Pallet 3 in Beams&Pallets associated to their relevant pallets.
Then I associated these instance parameters to equivalent yes/no parameters in the host, which I made dependent on if statement formulas.
Let me know if you guys know of a better way to go about it please.
@Anonymous wrote:
I don't believe an array will work as there could be 1 pallet per bay, and you need at least 2 for an array, correct?
Actually, I have array families that have a single element state. This is easily accomplished through On/Off parameters. One On/Off parameter controls the visibility of the element Array and another On/Off parameter controls the visibility of a single element. So, if than number of elements is less the 2; the Array default to 2 elements and becomes invisible, and the single element becomes visible.
Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.