2 or more conditional formulas yes/no parameter

2 or more conditional formulas yes/no parameter

simon.carmonaCKE9E
Participant Participant
576 Views
3 Replies
Message 1 of 4

2 or more conditional formulas yes/no parameter

simon.carmonaCKE9E
Participant
Participant

Good morning, 

 

I am trying to create a basic builderswork family that depending on the type of service it increases or reduces the clearence. I am quite new with conditionals and don't understand how they work in Revit. I have read in the forum different posts but I haven't found the solution. It always return me error. Can you please help me with this. I am trying to specify this:

 

If it is containment give me clearence 50, if it is not containment but it is Ductwork, give me 40mm clearence, if it Plastic Pipework put 30 clearence...

 

Thank you,

Simon

 

Capture.PNG

0 Likes
Accepted solutions (1)
577 Views
3 Replies
Replies (3)
Message 2 of 4

PavelAnd
Advisor
Advisor
Accepted solution

Hi @simon.carmonaCKE9E . Look in the end of your formula. "Pipework(30". You need "Pipework,30,50)))".
You can try this:
if(and(A, not(B), not(C)), 50 mm, if(and(not(A), B, not(C)), 40 mm, if(and(not(A), not(B), C), 30 mm, 0 mm)))

Update: It is better to use "_" instead of a space. in the parameter name.

if.gif

Best regards, Pavel Plotitsyn.

Message 3 of 4

simon.carmonaCKE9E
Participant
Participant

That worked perfectly. Thank you Very much Pavel. 🙂

 

Kind Regards,

SImon Carmona

0 Likes
Message 4 of 4

patil.vaishali
Enthusiast
Enthusiast

Hi,

Use formula "if(Containment, 50, if(Ductwork, 40, if(Plastic Pipework, 30, 0)))"

 

 

Vaishali Patil
Electrical BIM Specialist
0 Likes