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 statement

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
yes_and_no
204 Views, 3 Replies

If statement

I have window trim profile at 3 y/n choices,

Profile = 2.5" (not a y/n, default)

Wide 3.5"

Wider 5.5"

My if and statement is not working,

Profile= if(and(wide, wider),(3.5", 5.5", 2.5")

 

3 REPLIES 3
Message 2 of 4
barthbradley
in reply to: yes_and_no

.

 

Post a screenshot of your Family Types dialog box. 

 

 

=if(and(Parameter A, Parameter B), Value if True, Value if False))  

 

What the heck is the third value here?  =if(and(wide, wider),3.5", 5.5", 2.5")  

 

 

 

 

Message 3 of 4
David_W_Koch
in reply to: yes_and_no

Does Wider always take precedence over Wide or Default, and Wide over Default?

 

If so, then perhaps this will do what you want:

 

if(Wider, 5.5", if(Wide, 3.5", 2.5"))

 

If not, you will need to explain what you are trying to do in words, and someone here can help you translate that into a formula.

 

2024-07-06_15-35-08.PNG

 


David Koch
AutoCAD Architecture and Revit User
Blog | LinkedIn
EESignature

Message 4 of 4
yes_and_no
in reply to: David_W_Koch

  • This is not good, this is EXCELLENT !!!

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

Post to forums  

Forma Design Contest


Technology Administrators