RevitCity.com Logo

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

Welcome !

394 Users Online (11 Members): Show Users Online - Most ever was 3914 - Wed, Aug 26, 2026 at 4:53:14 AM

 

Forums

Forums >> Revit Building >> Technical Support >> LENGTH LIMITING IF STATEMENT

Search this ThreadSearch this Thread | Page 1 of 1 |

Tue, Feb 24, 2009 at 4:46:57 PM | LENGTH LIMITING IF STATEMENT

#1

t1slc


active

Joined: Sun, Feb 25, 2007
45 Posts
No Rating


I need to be able to limit the length of a component. The maximum length I can have is 6'. Anything shorther than that and it will be fine.

So how do I create an IF statement that will prevent someone from setting a lenght value greater than 6'? 


This user is offline

 

Tue, Feb 24, 2009 at 5:09:18 PM | LENGTH LIMITING IF STATEMENT

#2

qthdad


active

Joined: Mon, Dec 10, 2007
64 Posts
5 Stars: 2 Votes


I think that you would need to have one parameter that accepts user input and another parameter that you use the IF statement in. Maybe

USER INPUT LENGTH: RequestedLength

COMPUTED LENGTH: ActualLength = IF (RequestedLength > 6', 6', RequestedLength)

 


This user is offline

 

Tue, Feb 24, 2009 at 5:32:11 PM | LENGTH LIMITING IF STATEMENT

#3

t1slc


active

Joined: Sun, Feb 25, 2007
45 Posts
No Rating


It's starting to make some sense...still can't make it do what I want though.

Here is what I want: LENTH= IF(LENGTH < 6', LENGTH,0)

I want to define what the length is, but if I enter a value greater than 6' want it to fail or give me some error that won't allow the length to be greater than 6'. Since the geometery is tied to the LENGTH parameter that is the one I want to control. However, with this IF statement it gives me a circular reference error and won't let me do it. 

Here's what I have...

A component with geometry locked to LENGTH 

I created a MAX LENGTH parameter = 6

Then another parameter LENGTH USER VALUE = IF(LENGTH < MAX LENGTH, LENGTH, 0)

This will give me the correct value in the LENGTH USER VALUE, but that isn't tied to any geometery. If I try to do something like LENGTH USER VALUE = LENGTH, I get a circular reference error.

How do I do this? 


This user is offline

 

Tue, Feb 24, 2009 at 7:49:23 PM | LENGTH LIMITING IF STATEMENT

#4

qthdad


active

Joined: Mon, Dec 10, 2007
64 Posts
5 Stars: 2 Votes


How about this?



Attached Images

53818_ControllingLengthParameter.jpg

This user is offline

 

Search this ThreadSearch this Thread | Page 1 of 1 |



Similar Threads

Thread/Thread Starter

Forum

Last Post

Replies

Parameter Formula

Revit Building >> Technical Support

Tue, Feb 27, 2007 at 7:12:50 PM

5

if yes/no statement controlled by if yes/no statement

Revit Building >> Technical Support

Tue, Jan 22, 2013 at 4:08:26 PM

6

Minimum / Maximum Parameters

Revit Building >> Technical Support

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

1

please help

Revit Building >> Technical Support

Thu, Aug 31, 2006 at 9:24:29 AM

1

Precast embed connections

Revit Structure >> Technical Support

Wed, Jul 30, 2008 at 11:22:13 AM

0

Site Stats

Members:

2188039

Objects:

23399

Forum Posts:

152455

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

Login

User Name:

Password:

Remember Me  

Forgot Password?

Search Forums

Advanced Search

Search Forums

Advanced Search


Clear Highlights


Clear Highlights