RevitCity.com Logo

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

Welcome !

270 Users Online (22 Members): Show Users Online - Most ever was 712 - Sat, Aug 8, 2026 at 7:11:41 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

Revit 2011 Shared parameters Converter Extension

Revit Structure >> Technical Support

Mon, May 23, 2011 at 12:29:53 PM

5

Revit Maximum FOrmula

Revit Building >> Technical Support

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

3

Revit Training

Workflow & Implementation >> Training

Thu, Sep 2, 2010 at 1:17:21 AM

1

Remove the number of back up files in revit 2023

Revit Building >> Technical Support

Fri, Mar 24, 2023 at 8:37:02 AM

1

RAC 2013 - Transfering wall parameters between projects

Revit Building >> Technical Support

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

2

Site Stats

Members:

2166227

Objects:

23399

Forum Posts:

152366

Job Listings:

0

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

Login

User Name:

Password:

Remember Me  

Forgot Password?

Search Forums

Advanced Search

Search Forums

Advanced Search


Clear Highlights


Clear Highlights