Forums
Forums >> Revit Building >> Technical Support >> yes/no with 2 conditions
|
|
active
Joined: Tue, Feb 24, 2009
46 Posts
|
Does anyone know if there is a way to use two conditions in a yes/no parameter? I am using a length parameter. Name X A simple condition like X < 10' works fine. But I need my yes/no parameter to be true if X is between 8'-0" and 10'-0". Anyone know how do I get my yes/no parameter to be true if X < 10' and > 8'. Thanks.
|
This user is offline |
|
|
|
site moderator|||
Joined: Tue, May 16, 2006
13079 Posts
|
Did you try a nested if.
|
This user is offline |
|
|
active
Joined: Sun, Mar 27, 2005
208 Posts
|
some time ago i remember doing a family with something similar. i cannot recall if a nested if worked, but i think i created an extra parameter that returned either 1 or 0. and a dependant parameter that responded to the 1 or 0. this i found better as i could check my logic more easily.
|
This user is offline |
View Website
|
|
active
Joined: Tue, Feb 24, 2009
46 Posts
|
Im not sure what you mean by nested if but this is what I tried with an if condition. IF(AND(X > 8', X < 10'),yes,no). The error message says yes is not a valid parameter. I also tried with true and false instead of yes and no. Same error message. I also tried 0 and 1 instead of true and false. The error message says Inconsistent units. I just dont know what I have to write for the return true and false value in the yes/no parameter in order for it to work.
|
This user is offline |
|
|
active
Joined: Tue, Feb 24, 2009
46 Posts
|
Thanks for the tip latemore. I tried what you suggested and it works great. I created an Integer parametr name Y. I told Y that: IF(AND(X > 8', X < 10'),1,0). Then I told my yes/no parameter X: y = 1 The result is exactly what I was looking for. If there is no other way this is what I will do. But I still would like to find out if a yes/no parameter can take on an if condition. If so how do I do this.
|
This user is offline |
|
|
site moderator|||
Joined: Tue, May 16, 2006
13079 Posts
|
Not sure what you are asking. Here is a Y/N conditional equation from one of my toilet partion families that works: if(Start Panel, OH Braced, NO) And this is an example of a nested if but it is a length parameter: if(OH Braced, if(End Pilaster Bottom = 0', 0', OH Brace Height), 0')
|
This user is offline |
|
|
active
Joined: Tue, Feb 24, 2009
46 Posts
|
Sorry if I am not being clear on what I need. I dont know how to tell my yes/no parameter to be chacked or not in the following formula. IF(AND(X > 8', X < 10'),???,???). (I wrote this formula in a yes/no parameter.) The first set of ??? is the return value if the condition is true. The second if it is false. What kind of units will tell revit to check my parameter or not. What do I need to replace the ??? with in order to have my yes/no parameters be checked or not. I tried , yes, no where I have ???. The error message says yes is not a valid parameter. I also tried , true, false instead of yes and no. Same error message. I also tried , 0, 1 instead of true and false. The error message says Inconsistent units. I hope this is clearer on what I am asking. If not then dont woory about it. I appreciate the time and effort you put in to try to help me out.
|
This user is offline |
|
|
site moderator|||
Joined: Tue, May 16, 2006
13079 Posts
|
Conditional statement results are normally implied so your example "...IF(AND(X > 8', X < 10'),???,???).." should really just be written: y/n parameter = AND(X>8'X<10') If the and conditions are met, the y/n is True (Y) otherwise it is False (N).
|
This user is offline |
|
|
active
Joined: Tue, Feb 24, 2009
46 Posts
|
Thanks. Really appreciate it. That is exactly what I was looking for.
|
This user is offline |
|
|
|
Similar Threads |
Boundary Conditions Issue |
Revit Building >> Technical Support
|
Wed, Mar 1, 2017 at 4:06:58 PM
|
0
|
join conditions of double curvature curtain wall system in revit 2010 |
General Discussion >> Revit Project Management
|
Tue, May 12, 2009 at 3:43:19 AM
|
0
|
draw lines in existing conditions |
Revit Building >> Technical Support
|
Mon, Nov 3, 2008 at 10:37:26 AM
|
3
|
Autodesk Recap |
Workflow & Implementation >> API & Third Party Apps
|
Thu, Sep 4, 2014 at 1:28:56 PM
|
1
|
Locking Existing Conditions |
Revit Building >> Technical Support
|
Wed, Sep 21, 2005 at 5:47:16 PM
|
8
|
|
|
Site Stats
Members: | 2066446 | Objects: | 23085 | Forum Posts: | 152257 | Job Listings: | 3 |
|