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: 

Conditional Statement - Parking family

9 ANTWORTEN 9
GELÖST
Antworten
Nachricht 1 von 10
Anonymous
1100 Aufrufe, 9 Antworten

Conditional Statement - Parking family

I have created a line based parking family that has a nested parking family within it. There are two parameters that when checked, either add a second row or mirror the parking spaces. I am trying to adjust the count of spaces for scheduling and cannot figure out how to write a parameter that checks if both second row and mirror parameters are checked and then add them to the original count. I attached the Revit families used for reference. 

 

 

Beschriftungen (2)
9 ANTWORTEN 9
Nachricht 2 von 10
barthbradley
als Antwort auf: Anonymous

if(and(YesNo Parameter 1, YesNo Parameter 2), true, false)  

 

https://revitforum.org/showthread.php/1046-Revit-Formulas-for-quot-everyday-quot-usage

 


Using logical AND
IF ( AND (x = 1 , y = 2), <true>, <false>)
Returns <true> if both x=1 and y=2, else <false>

Nachricht 3 von 10
barthbradley
als Antwort auf: Anonymous

Can you do me a favor and just Post the formula written in layman's terms using the actual Parameter Names in your family?   

Nachricht 4 von 10
Anonymous
als Antwort auf: barthbradley

The way it needs to be set up is as follows:

If the number of spaces counted in the lined based family equals 10 based on the length of the line. The checkbox "Double" refers to a double parking option and will add a 2nd row, effectively doubling the number of spaces to 20. If the checkbox "Mirror" is checked, it will mirror the row of parking effectively doubling it to 20. The max number you could have if you originally drew 10 spaces would be 30 if both boxes were checked. 

Nachricht 5 von 10
barthbradley
als Antwort auf: Anonymous

If this is all about Scheduling, why not report the count of single spaces in the Project Schedule by nesting a single SHARED space into the first Host Family and then that Host Family nested into the main Host Family?  3-tiered instead of 2-tiered.  Know what I mean?  

 

...anyways, it sounds like the logical "AND" will work here. No?  

Nachricht 6 von 10
Anonymous
als Antwort auf: barthbradley

Okay I understand what you mean. Instead of editing the parking family to include the double and mirror options, create another family that hosts 3 parking families controlled by the double and mirror shared parameters. Then host that in the line based family. I will give that a try. Thank you!

Nachricht 7 von 10
barthbradley
als Antwort auf: Anonymous

Your welcome. Fun thread. 

 

Cheers!

 

 

Nachricht 8 von 10
nmarcelis
als Antwort auf: Anonymous

@Anonymous 
Glad to see you got is solved.
It's nice to see that people use line based families with a practical use case.

Revit Certified Professional Architecture, Structure and MEP.
Nachricht 9 von 10
Anonymous
als Antwort auf: barthbradley

Got it to work! This way gives me so much more functionality with the individual parking spaces themselves as well. Thank you again. 

Nachricht 10 von 10
ToanDN
als Antwort auf: Anonymous

You could have create one parking space as a shared family and nest it in a line based family and that is it. from that one line based family you can layout the parking in the project with copy, mirror, etc... That gives you more flexibility in conditions where the rows have different lengths, wider or narrower island, etc...

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