RevitCity.com Logo

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

Welcome !

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

 

Forums

Forums >> General Discussion >> Wishlist >> Conditional statements in families.

Search this ThreadSearch this Thread | Page 1 of 1 |

Thu, Nov 16, 2006 at 2:20:30 PM | Conditional statements in families.

#1

WWHub


site moderator|||

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


If ... then x=y

This user is offline

 

Thu, Nov 16, 2006 at 5:49:36 PM | Conditional statements in families.

#2

bolandereric


active

Joined: Mon, Dec 13, 2004
61 Posts
5 Stars: 1 Votes


What are you trying to say.


This user is offline

 

Fri, Nov 17, 2006 at 6:44:50 AM | Conditional statements in families.

#3

WWHub


site moderator|||

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


Self explanitory - If "you have ever used conditional statements" then "you would know what I mean" otherwise "check it out".

This user is offline

 

Fri, Nov 17, 2006 at 7:19:18 AM | Conditional statements in families.

#4

framerman


active

Joined: Tue, Jun 29, 2004
543 Posts
4 Stars: 13 Votes


I still don't know what you mean.

This user is offline

View Website

Fri, Nov 17, 2006 at 7:54:06 AM | Conditional statements in families.

#5

coreed


site moderator|||
coreed Avatar

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


i agree with you framerman

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>Winking

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&rdquoWinking

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

 

Wed, May 14, 2008 at 2:02:37 PM | Conditional statements in families.

#6

lunchtrayrider


active

Joined: Sun, Jun 24, 2007
592 Posts
3.5 Stars: 7 Votes


IF WWHub=Wiseguy,we should laugh,we should still smirk a little

-----------------------------------
I like scooters. and motorcycles.

This user is offline

 

Wed, May 14, 2008 at 4:27:34 PM | Conditional statements in families.

#7

WWHub


site moderator|||

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


I smirk when I read that old post.

This user is offline

 

Thu, May 15, 2008 at 5:35:41 AM | WWHub

#8

coreed


site moderator|||
coreed Avatar

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


Quoting WWHub from 2008-05-14 16:27:34

"I smirk when I read that old post."

wow!! me too!!

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

best regards,

coreed,aia

bmpArchitects,Inc.

"Revit has to be implemented, Not installed." 

Long Live Revit

This user is offline

 

Search this ThreadSearch this Thread | Page 1 of 1 |



Similar Threads

Thread/Thread Starter

Forum

Last Post

Replies

Minimum / Maximum Parameters

Revit Building >> Technical Support

Fri, Nov 3, 2006 at 2:04:26 PM

0

Formula to not exceed value in family

Revit Building >> Technical Support

Tue, May 20, 2008 at 12:34:26 PM

1

Conditional Statements in Formulas

Revit Building >> Technical Support

Wed, Jun 21, 2017 at 3:50:17 AM

2

Parameter Formula

Revit Building >> Technical Support

Tue, Apr 3, 2007 at 8:57:05 PM

0

Formula - 2 x 'if' conditions in one line?

Revit Building >> Technical Support

Thu, Dec 1, 2016 at 7:18:33 AM

0

Site Stats

Members:

2056367

Objects:

23069

Forum Posts:

152325

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

Login

User Name:

Password:

Remember Me  

Forgot Password?

Search Forums

Advanced Search

Search Forums

Advanced Search


Clear Highlights


Clear Highlights