|
|
Home | Forums |
Downloads | Gallery |
News & Articles | Resources |
Jobs | FAQ |
| Join |
Welcome !
|
169 Users Online (168 Members):
Show Users Online
- Most ever was 626 - Mon, Jan 12, 2015 at 2:00:17 PM |
Forums
Forums >> Revit Building >> Technical Support >> LENGTH LIMITING IF STATEMENT
|
|
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 |
|
|
|
active
Joined: Mon, Dec 10, 2007
64 Posts
|
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 |
|
|
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 |
|
|
active
Joined: Mon, Dec 10, 2007
64 Posts
|
How about this?
|
This user is offline |
|
|
|
Similar Threads |
if yes/no statement controlled by if yes/no statement |
Revit Building >> Technical Support
|
Tue, Jan 22, 2013 at 4:08:26 PM
|
6
|
line based family help (length) |
Revit Structure >> Technical Support
|
Wed, Aug 6, 2014 at 9:15:36 AM
|
1
|
Help with a duct family -trying to prevent resizing by dragging or limiting drag |
Revit Systems >> Technical Support
|
Fri, Dec 10, 2010 at 10:23:31 AM
|
7
|
Conditional statement |
Revit Building >> Technical Support
|
Thu, Jun 27, 2013 at 9:58:47 AM
|
4
|
Conditional Statement |
Revit Building >> Technical Support
|
Fri, Dec 4, 2009 at 9:49:42 AM
|
1
|
|
|
Site Stats
Members: | 1991019 | Objects: | 22877 | Forum Posts: | 152184 | Job Listings: | 3 |
|