How do I add more compartments to this locker family?

How do I add more compartments to this locker family?

Marli_Swart
Participant Participant
947 Views
6 Replies
Message 1 of 7

How do I add more compartments to this locker family?

Marli_Swart
Participant
Participant

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?

0 Likes
948 Views
6 Replies
Replies (6)
Message 2 of 7

David_W_Koch
Mentor
Mentor

@Marli_Swart 

 

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>))

 

Snag_522d1cf.png


David Koch
AutoCAD Architecture and Revit User
Blog | LinkedIn
EESignature

0 Likes
Message 3 of 7

Marli_Swart
Participant
Participant

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. 

Marli_Swart_0-1732298493898.png

 

0 Likes
Message 4 of 7

RC_RVT
Advocate
Advocate

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))))

0 Likes
Message 5 of 7

azad.Nanva
Advisor
Advisor

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

If it solves your problem, please click Accept to enhance the Forum.
0 Likes
Message 6 of 7

Marli_Swart
Participant
Participant

see attached

0 Likes
Message 7 of 7

azad.Nanva
Advisor
Advisor

I change your family :

 

(view in My Videos)

 

If it solves your problem, please click Accept to enhance the Forum.
0 Likes