Forums
Forums >> Revit Building >> Technical Support >> if yes/no statement controlled by if yes/no statement
|
|
active
Joined: Tue, Dec 19, 2006
24 Posts
 |
Here's the deal... I want a yes/no statement to controle a yes/no statement, so when the 1st statement is visible the other statement should be turned off. I tried: IF(1st statement, Yes, NO) and IF(1st statement, 1, 0) without any reslut... Is this possible or not yet.. thanks for your replie
|
This user is offline |
|
 |
|
active
Joined: Wed, Nov 10, 2004
82 Posts
 |
Yes/no parameters are by definition conditional statements so your phrasing should be something to the effect of parameter 1 = NOT(parameter 2).
|
This user is offline |
|
 |
active

Joined: Tue, Nov 17, 2009
148 Posts No Rating |
RAC 2012
this is an older thread but exactly what I am trying to do ... I have a family that will place an arch for a door swing but if the door is defined as EXISTING, then the arc is replace by a straight line.
The statements I have tried are:
- if(Existing Door, Show Existing Door Swing, Show New Door Swing) ... or
- if((Existing Door),((Show Existing Door Swing) NOT(Show New door Swing)),((Show New Door Swing NOT(Show Existing door Swing))
If you view the attached image you will see my parameters and my current attempt at the IF statement.
- Existing Door - a shared parameter that will the the controller for this item.
- Show Existing Door Swing - the visibility of the straight line is controlled by this project parameter
- Show New Door Swing - the visibility of the arc is controlled by this project parameter
The error I receive refers to 'circular' errors or 'Function' errors. I suspect that it is a simple syntaxt issue ... can someone take a look and offer a suggestion? My goal is to have a single check box that will control the visibility of the 'existing' and 'new' graphics, and to be able to schedule the results.
thanks in advance ...Ian
-----------------------------------
Ian Shafer
Principal Consultant
True North S&F Consultants |
This user is offline |
View Website
|
 |
site moderator|||
Joined: Tue, May 16, 2006
13079 Posts
 |
You have over complicated this. I would use your phases and sub categories.
In your door family, you already have a sub category called plan swing - draw your arc swing on this. Add a new category called existing plan swing and draw your straight line. Now simple set the visiblity of these two lines to existing door .
|
This user is offline |
|
 |
active
Joined: Wed, Oct 7, 2009
654 Posts
 |
You're over complicating it. Get rid of the Show New Door Swing parameter, you don't need it. Use the Existing Door parameter to control the visibility of the existing door linework. Show New Door Swing formula, use 'not(Existing Door)'. I also like to place parameters that are not user controlled (Show New Door Swing in this case) in the Other category, it seems to keep people from trying to use them.
BTW, the 'circular reference' error is coming from using a parameter in its own formula.
|
This user is offline |
|
 |
active

Joined: Tue, Nov 17, 2009
148 Posts No Rating |
TK.
Thank you for your assistance. I was able to get my family to work. Despite your suggestion, I decided to keep the parameters I had, but your guidance for understanding the boolean operation was invaluable ... many thanks.
The shared parameter Existing Door 'drives' the process and schedules nicely. I have attached an image of the Family Type dialogue.
regards ...
-----------------------------------
Ian Shafer
Principal Consultant
True North S&F Consultants |
This user is offline |
View Website
|
 |
active
Joined: Wed, Oct 7, 2009
654 Posts
 |
Why keep the extra existing door parameter instead of just using the one? There's nothing wrong with doing it that way (it's obviously working fine), it's just an extra parameter that you don't really need.
|
This user is offline |
|
 |
 |
Similar Threads |
Conditional statement |
Revit Building >> Technical Support
|
Thu, Jun 27, 2013 at 9:58:47 AM
|
4
|
LENGTH LIMITING IF STATEMENT |
Revit Building >> Technical Support
|
Tue, Feb 24, 2009 at 7:49:23 PM
|
3
|
Conditional Statement |
Revit Building >> Technical Support
|
Fri, Dec 4, 2009 at 9:49:42 AM
|
1
|
if statement question |
Revit Structure >> Technical Support
|
Tue, Feb 4, 2014 at 12:36:36 PM
|
3
|
OCCUPANT LOAD FROM CALCULATED VALUE/IF STATEMENT |
Revit Building >> Technical Support
|
Fri, Nov 21, 2008 at 11:42:14 AM
|
1
|
 |
|
Site Stats
Members: | 2097743 | Objects: | 23164 | Forum Posts: | 152288 | Job Listings: | 3 |
|