active
Joined: Thu, Oct 20, 2005
168 Posts
 |
So here is what I have. In a window family I have a window pane family nested into my main double window family. In the window single unit family I have 4 yes/no parameters that will report the glass type by type to a schedulable format. One yes/no for each of the four types, "Spandrel", "Clear", "Obscure" and "new". Basically I want the main window family to be able to be tagged by two custom shared parameters called "Left Side Pane type" and "Right Side Pane type". The tag works like it should but now I want to let the family type auto fill in the correct tag for each of the Pane type tags. "R1" for Clear glass replacement, "R2" for Obscure glass replacement, "r3" for Spandrel glass replacement and "N1" for New clear glass replacement. My formula now is: or(Clear Pane,"R1", or(Spandrel Pane=1,"R3", or(Opaque Pane=1,"R2","unknown" )) and I keep getting a "improper use of boolean expressions" error. I just want the tags to be correct based on what two glass materials are being used as type parameters. The tag would be in this format for the windows: R1/R2 or N1/N1 or R2/R3 etc. Can anyone suggest what my formula problem is? thanks in advance
|
active

Joined: Tue, Mar 15, 2011
199 Posts
 |
try using the following: if(Clear Pane, "R1", if(Spandrel Pane, "R3", if(Opaque Pane, "R2", "unknown" )) Also, your parameter 'Right Pane Type' needs to be of a text type. What you were doing with the or( , , ) statements wasn't what you wanted... you were saying: Clear Pane OR "R1" OR Spandrel Pane OR "R3" OR Opaque Pane OR "R2" OR "unknown" the error stems from trying to assign a boolean value to a text parameter. The only return of an OR function is true or false. Thus I modified it to be an IF statement, which works as you want it, i.e.- if( <expression to be evaluated>, <return value if true>, <return value if false> Hope this all helps, also, you don't necessarily need this equation for what you are creating UNLESS it is an instance parameter, but the type of glass you have in your window lends it to be a type parameter, and when you define the "Spandrel" type, put "R3" as the value of Right Pane Type. I really hope this helps, pay special attention to the usage of equations, they take processing power, and can cause your project to run much slower. Typically, if I'm using an equation, it tends to be on an instance based parameter, one that can change often, whereas with my type based parameters, I just input the expected value of each type (Granted, if I used equations I could "Lock" the parameter from prying user eyes...).
-----------------------------------
Trent Best
Best Systems
the.tabest@gmail.com |