RevitCity.com Logo

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

Welcome !

195 Users Online (194 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 Conditional on No/Yes

Search this ThreadSearch this Thread | Page 1 of 1 |

Tue, Nov 11, 2008 at 9:45:27 AM | Yes/No Conditional on No/Yes

#1

JRMello


active

Joined: Thu, Jun 12, 2008
98 Posts
No Rating


I am intersted in making one item in a family visible only if another item is not visible. This seems like it would be a relatively easy formula, but I can't figure out how to organize it or even if Revit would allow it.

RAC2009


This user is offline

View Website

Tue, Nov 11, 2008 at 10:05:05 AM | Yes/No Conditional on No/Yes

#2

coreed


site moderator|||
coreed Avatar

Joined: Fri, Feb 10, 2006
1874 Posts
4 Stars: 16 Votes


maybe this link and info will help

http://www.revitcity.com/forums.php?action=viewthread&thread_id=13566

From a previous post by Tom Dorner

Below is the Revit help file which explains it pretty well.

------------------------------------------------------------------------------------------------------------------------

You can use conditional statements in formulas to define actions in a family that depend on the state of other parameters. With conditional statements, the software enters values for a parameter based on whether a specified condition is satisfied. Conditional statements are useful in certain circumstances; however, they make families more complex and should be used only when necessary.

For most type parameters, conditional statements are unnecessary, because the type parameter itself is like a conditional statement: If this is the type, then set this parameter to a specified value. Instance parameters are a more productive place to use conditional statements, particularly when they are used to set a parameter that does not vary continuously.

Syntax for Conditional Statements

A conditional statement uses this structure: IF (<condition>, <result-if-true>, <result-if-false>

This means that the values entered for the parameter depend on whether the condition is satisfied (true) or not satisfied (false). If the condition is true, the software returns the true value. If the condition is false, it returns the false value.

Conditional statements can contain numeric values, numeric parameter names, and Yes/No parameters. You can use the following comparisons in a condition: <, >, =. You can also use Boolean operators with a conditional statement: AND, OR, NOT. Currently, <= and >= are not implemented. To express such a comparison, you can use a logical NOT. For example, a<=b can be entered as NOT(a>b).

The following are sample formulas that use conditional statements.

Simple IF: =IF (Length < 3000mm, 200mm, 300mm)

IF with a text parameter: =IF (Length > 35', "String1", "String2&rdquo

IF with logical AND: =IF ( AND (x = 1 , y = 2), 8 , 3 )

IF with logical OR: =IF ( OR ( A = 1 , B = 3 ) , 8 , 3 )

Embedded IF statements: =IF ( Length < 35' , 2' 6" , IF ( Length < 45' , 3' , IF ( Length < 55' , 5' , 8' ) ) )

IF with Yes/No condition: =Length > 40 (Note that both the condition and the results are implied.)

-----------------------------------Tom www.reviteer.com http://blog.reviteer.com


-----------------------------------

best regards,

coreed,aia

bmpArchitects,Inc.

"Revit has to be implemented, Not installed." 

Long Live Revit

This user is offline

 

Tue, Nov 11, 2008 at 12:21:06 PM | Yes/No Conditional on No/Yes

#3

JRMello


active

Joined: Thu, Jun 12, 2008
98 Posts
No Rating


It took a bit of playing around, but I figured it out. I tried   ParameterA = NOT ParameterB  but got a message about "NOT ParameterB is an invalid parameter name, check caps etc" but it worked when I put parenthesis around ParameterB so the formula reads  ParameterA = not(ParameterB) 

Now I have the problem that this formula doesn't allow you to use the check box for ParameterA, but I'll deal.


This user is offline

View Website

Search this ThreadSearch this Thread | Page 1 of 1 |



Similar Threads

Thread/Thread Starter

Forum

Last Post

Replies

Conditional statement

Revit Building >> Technical Support

Thu, Jun 27, 2013 at 9:58:47 AM

4

Schedule Line Shading - Revit 2009

Revit Building >> Technical Support

Fri, Oct 1, 2010 at 3:53:10 PM

0

Conditional statements in families.

General Discussion >> Wishlist

Wed, May 14, 2008 at 4:27:34 PM

6

conditional formatting yes no parameters

Revit Systems >> Technical Support

Tue, Oct 28, 2008 at 9:58:54 AM

4

Conditional statemnent for negative value of degree celcius not working

Revit Building >> Technical Support

Sun, Jan 16, 2011 at 11:01:10 PM

2

Site Stats

Members:

1990596

Objects:

22877

Forum Posts:

152180

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.2154

Login

User Name:

Password:

Remember Me  

Forgot Password?

Search Forums

Advanced Search

Search Forums

Advanced Search


Clear Highlights


Clear Highlights