RevitCity.com Logo

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

Welcome !

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

 

Forums

Forums >> Revit Building >> Technical Support >> Minimum / Maximum Parameters

Search this ThreadSearch this Thread | Page 1 of 1 |

Thu, Nov 2, 2006 at 10:05:46 PM | Minimum / Maximum Parameters

#1

Sumex


active
Sumex Avatar

Joined: Wed, Oct 11, 2006
14 Posts
No Rating


Does anyone know how to set Length Parameters to minimum and maximum values.  I'm trying to set a length to >= and <=...

ThanX... 

 


This user is offline

 

Fri, Nov 3, 2006 at 2:04:26 PM | Minimum / Maximum Parameters

#2

TomDorner


active

Joined: Sun, Apr 25, 2004
1207 Posts
4.5 Stars: 25 Votes


There is no min/max function present in Revit.  You can limit a parameter to a certain range though with an IF or nested IF statement.  Below is the Revit help file which explains it pretty well.  Post again if you get stuck.

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

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://twitter.com/Reviteer

 

This user is offline

View Website

Fri, Nov 3, 2006 at 2:07:45 PM | Minimum / Maximum Parameters

#3

Sumex


active
Sumex Avatar

Joined: Wed, Oct 11, 2006
14 Posts
No Rating


You're the man...  I'm cheking this out now......

This user is offline

 

Search this ThreadSearch this Thread | Page 1 of 1 |



Similar Threads

Thread/Thread Starter

Forum

Last Post

Replies

RAC 2013 - Transfering wall parameters between projects

Revit Building >> Technical Support

Tue, Jun 25, 2013 at 11:58:23 AM

2

Existing Stairs

Revit Building >> Technical Support

Mon, Aug 10, 2009 at 1:36:53 AM

0

600dpi maximum rendering for RAC2009???

Revit Building >> Technical Support

Wed, Oct 21, 2009 at 11:58:23 AM

8

Curtain Wall Maximum Spacing

Revit Building >> Technical Support

Wed, Jul 18, 2012 at 2:14:40 PM

5

Revit Maximum FOrmula

Revit Building >> Technical Support

Thu, Jun 9, 2011 at 11:36:58 AM

3

Site Stats

Members:

2057473

Objects:

23074

Forum Posts:

152250

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: 1.3853

Login

User Name:

Password:

Remember Me  

Forgot Password?

Search Forums

Advanced Search

Search Forums

Advanced Search


Clear Highlights


Clear Highlights