RevitCity.com Logo

Home  |  Forums  |  Downloads  |  Gallery  |  News & Articles  |  Resources  |  Jobs  |  FAQ  |  SearchSearch  |  Join  |  LoginLogin

Welcome !

160 Users Online (159 Members): Show Users Online - Most ever was 626 - Mon, Jan 12, 2015 at 2:00:17 PM

 

Forums

Forums >> Revit Building >> Technical Support >> yes/no with 2 conditions

Search this ThreadSearch this Thread | Page 1 of 1 |

Fri, Jun 4, 2010 at 8:48:16 AM | yes/no with 2 conditions

#1

TeamNga


active

Joined: Tue, Feb 24, 2009
46 Posts
1 Stars: 1 Votes


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

 

Fri, Jun 4, 2010 at 9:00:33 AM | yes/no with 2 conditions

#2

WWHub


site moderator|||

Joined: Tue, May 16, 2006
13079 Posts
3.5 Stars: 389 Votes


Did you try a nested if.


This user is offline

 

Mon, Jun 7, 2010 at 7:33:02 AM | yes/no with 2 conditions

#3

latemore


active
latemore Avatar

Joined: Sun, Mar 27, 2005
208 Posts
3 Stars: 2 Votes


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

Mon, Jun 7, 2010 at 8:32:41 AM | yes/no with 2 conditions

#4

TeamNga


active

Joined: Tue, Feb 24, 2009
46 Posts
1 Stars: 1 Votes


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

 

Mon, Jun 7, 2010 at 8:49:20 AM | yes/no with 2 conditions

#5

TeamNga


active

Joined: Tue, Feb 24, 2009
46 Posts
1 Stars: 1 Votes


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

 

Mon, Jun 7, 2010 at 9:15:33 AM | yes/no with 2 conditions

#6

WWHub


site moderator|||

Joined: Tue, May 16, 2006
13079 Posts
3.5 Stars: 389 Votes


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

 

Mon, Jun 7, 2010 at 9:52:14 AM | yes/no with 2 conditions

#7

TeamNga


active

Joined: Tue, Feb 24, 2009
46 Posts
1 Stars: 1 Votes


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

 

Mon, Jun 7, 2010 at 10:44:07 AM | yes/no with 2 conditions

#8

WWHub


site moderator|||

Joined: Tue, May 16, 2006
13079 Posts
3.5 Stars: 389 Votes


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

 

Mon, Jun 7, 2010 at 10:52:55 AM | yes/no with 2 conditions

#9

TeamNga


active

Joined: Tue, Feb 24, 2009
46 Posts
1 Stars: 1 Votes


Thanks. Really appreciate it.

 

That is exactly what I was looking for.


This user is offline

 

Search this ThreadSearch this Thread | Page 1 of 1 |



Similar Threads

Thread/Thread Starter

Forum

Last Post

Replies

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:

1991189

Objects:

22878

Forum Posts:

152184

Job Listings:

3

Sponsored Ads

Home | Forums | Downloads | Gallery | News & Articles | Resources | Jobs | Search | Advertise | About RevitCity.com | Link To Us | Site Map | Member List | Firm List | Contact Us

Copyright 2003-2010 Pierced Media LC, a design company. All Rights Reserved.

Page generation time: 0.3761

Login

User Name:

Password:

Remember Me  

Forgot Password?

Search Forums

Advanced Search

Search Forums

Advanced Search


Clear Highlights


Clear Highlights