Revit Architecture Forum
Welcome to Autodesk’s Revit Architecture Forums. Share your knowledge, ask questions, and explore popular Revit Architecture topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IF statments

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
sham.summan
274 Views, 5 Replies

IF statments

I am trying to make a nested window family which contains both an open and fixed panes which can be controlled with visibility .

 

I have the following visibility  Yes / No parameter

 

Hung – Top

Hung – Bottom

Hung – Left

Hung – Right

 

Frame – Opening

Frame - Fixed

 

I am trying to control the visibility of the Frame - Opening and Frame – Fixed from the values of the hung properties. 

 

If any of the hung values are set on I would like Frame – Opening to be on.

 

If non of the hung values are selected I want Frame – Opening to be switch off and Frame - Fixed to be on.

 

Sure this is very simple of someone out there.

 

Any helps is appreciated.     

 

S

5 REPLIES 5
Message 2 of 6
L.Maas
in reply to: sham.summan

The easiest way is to use "and" "or" "not" statements in a formula

 

in the formula for "Frame - Opening"

=or(Hung – Top, Hung – Bottom, Hung – Left, Hung – Right)

This means if any of the value are true then "yes"  

 

 

in the formula for "Frame - Fixed"

 

=Not(Frame - Opening)

 

 

 

Louis

EESignature

Please mention Revit version, especially when uploading Revit files.

Message 3 of 6
sham.summan
in reply to: L.Maas

perfect,

 

Thanks

 

 

Message 4 of 6

Don't use that hyphen or dash symbol in the name of a parameter. Revit might understand that as a "minus" symbol when you use any of those parameters in a formula.

 

 


Alfredo Medina _________________________________________________________________ ______
Licensed Architect (Florida) | Freelance Instructor | Autodesk Expert Elite (on Revit) | Profile on Linkedin
Message 5 of 6

How can this ne inverted,  If something is off,  then put something on.?

Message 6 of 6
David_W_Koch
in reply to: sham.summan

Use the NOT operator, as shown above.

 

If you have one parameter that can be either Yes or No (such as a Yes/No paramater that offers a check box in the properties), then setting up a second Yes/No parameter and assigning a formula of

not(ParameterName)

will give you the inverse, or negation, of that first parameter (where ParameterName is the name you gave the first parameter).


David Koch
AutoCAD Architecture and Revit User
Blog | LinkedIn
EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report


Autodesk Design & Make Report