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.
Gelöst! Gehe zur Lösung
Gelöst von barthbradley. Gehe zur Lösung
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>
Can you do me a favor and just Post the formula written in layman's terms using the actual Parameter Names in your family?
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.
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?
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!
@Anonymous
Glad to see you got is solved.
It's nice to see that people use line based families with a practical use case.
Got it to work! This way gives me so much more functionality with the individual parking spaces themselves as well. Thank you again.
Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.