Help! This 24-compartment family needs to have 30, so just another row of 6. I'm okay at editing families, but not necessarily ones with formulas. How should I edit this family to add another row of 6 compartments to make it 30 instead of 24?
It is hard to be absolutely certain without having access to the family, but based on what I see in the Family types dialog, the 3 compartment and 4 compartment parameters are related to the number of rows (height), and the number of compartments parameter is related to the number of columns (width). I am guessing that there are two items, each with a fixed number of rows (three or four), that are arrayed, with the number of elements in the array set by the number of compartments parameter.
If so, then as the family stands, there is no option to add a fifth row, without creating a new element with five rows, arraying that horizontally (driven by number of compartments), with a new visibility parameter (5 compartment) to turn it on or off. The formula for the Height parameter would have to be modified to have a nested test for 4 compartment, with 2' 5 5/8" being the height if 4 compartment is true, and the height of a 5 compartment unit if 4 compartment is false.
if([3compartment], 1' 10 1/2", if([4 compartment], 2' 5 5/8", <5 compartment height here>))
Okay, i went in and edited the comparent family to have 5 and reloaded. Added another 5 comparment visibility parameter and added height. Revit doesn't like my formula statement.
This is because your formula is wrong. As Revit says, your IF formula needs to be:
if(<boolean>, <result-if-true>, <result-if-false>
Your formula has an additional comma in it as I've underlined:
if([3 compartment], 1' 10 1/2", 2' 5 5/8", 3' 3/4)
If you are wanting your Height to adjust based on compartments and you have multiple compartment options, you will need to create a longer IF formula.
Example (not accurate):
if([3 compartment], 500mm, if([4 compartment], 750mm, if([5 compartment], 930mm, 500mm)))
I've done it in mm as I don't work in inches sorry, but I hope this helps.
You can then extend this IF statement if you want Height to increase based on another compartment, e.g. 6 compartment would be the below:
if([3 compartment], 500mm, if([4 compartment], 750mm, if([5 compartment], 930mm, if([6 compartment], 1100mm,500mm))))
Did you change the Number of Compartments to 10 or something else?or you can use the two fimily side by side?
or post your family so i can look it closer
I change your family :
Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.