I am creating some basic casework components for our project and I am running into some road block. Basically I need the casework tag to change its mark automatically when the width of the casework changes. For example, I have casework ranging from 15" to 4' with 3" increment. 15" casework is tagged as C1, 18" = C2, and so on. That I can do by assigning a specific width parameter to a specific type. The problem is with non-standard size casework. I want all non-standard sizes to be C0. Is there anyway on Revit to achieve this. I am thinking of some conditional formula (if size does not match standards then), but I don't know exactly where to start. Another way is to create another component with dynamic width just for non-standard sizes. But if for some reason a non-standard size got stretch to a standard size then it can be miss tagged.
Thanks.
Solved! Go to Solution.
Solved by kathryn.langan. Go to Solution.
You could create a new Type Mark Family Parameter of your own that contains a conditional formula for this. You can use an Embedded IF statement, something like
=IF ( Width = 1'3", "C1", IF ( Width = 1', "C2", "C0" ) )
which would return C1 if it's a 15" width, C2 if it's 12", and C0 if it's neither. If you're not sure where to start on statements, you can take a look at the Conditional Statements in Formulas document of the help menu, which shows examples of IF statements with text parameters and embedded statements.
I hope this helps!
No problem - glad to help!
Since a wall is a system family, you can only add a shared parameter to it - which unfortunately cannot contain a formula. There is an existing request item to allow calculations to shared parameters under consideration for the future. If you would like to provide input and a business case on the importance of the item to your firm, I would suggest doing so at our Feedback site.
OK. I hope you can help me on another request. How can I include conditions from different parameters in the formula? For example, in plain term: IF parameter Width = 3' AND parameter Overriden = NO THEN Result = A, otherwise Result = B. (Override is a YES/NO parameter)
I read up the link you gave me and can understand most of it except for the IF with Yes/No condition.
Thanks.
In this situation you could use:
IF (AND (Width = 3', Override), "A", "B")
The Yes/No parameter setting may not be as intuitive, but just including the parameter name assumes it to be a Yes.
Hope this helps!