Revit Architecture Forum
Welcome to Autodesk’s Revit Architecture Forums. Share your knowledge, ask questions, and explore popular Revit Architecture topics.
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

How do I add more compartments to this locker family?

6 ANTWORTEN 6
Antworten
Nachricht 1 von 7
Marli_Swart
251 Aufrufe, 6 Antworten

How do I add more compartments to this locker family?

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?

Beschriftungen (4)
6 ANTWORTEN 6
Nachricht 2 von 7
David_W_Koch
als Antwort auf: Marli_Swart

@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

Nachricht 3 von 7
Marli_Swart
als Antwort auf: David_W_Koch

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

 

Nachricht 4 von 7
RC_RVT
als Antwort auf: Marli_Swart

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

If this works, please mark it as an accepted solution. This helps make the forum a better place.
Nachricht 5 von 7
azad.Nanva
als Antwort auf: Marli_Swart

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.
Nachricht 6 von 7
Marli_Swart
als Antwort auf: azad.Nanva

see attached

Nachricht 7 von 7
azad.Nanva
als Antwort auf: Marli_Swart

I change your family :

 

 

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

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report