How to use if statement in family creation

How to use if statement in family creation

Anonymous
Not applicable
1,086 Views
12 Replies
Message 1 of 13

How to use if statement in family creation

Anonymous
Not applicable
Hello,
I want some help/documentary that are used in families by if statement

Please help
0 Likes
1,087 Views
12 Replies
Replies (12)
Message 2 of 13

Secttor
Collaborator
Collaborator

Check this link : here

Revit MEP - Electrical Certified Professional
Revit MEP - Mechanical Certified Professional

Draftworks.wordpress.com
0 Likes
Message 3 of 13

Anonymous
Not applicable
Hello,
Thanks for the previous reply. If you could have elaborate the if statement with any example then it will be very useful for me. Waiting for your answer.
Thanks in advance.
0 Likes
Message 4 of 13

ToanDN
Consultant
Consultant

Your question is too broad.  Can you be more specific at the formula or the goal you need?

0 Likes
Message 5 of 13

Anonymous
Not applicable
First I would like an answer on conditional statement.
0 Likes
Message 6 of 13

ToanDN
Consultant
Consultant
If you give a proper question then we may provide proper answer. No pun intended.
0 Likes
Message 7 of 13

Anonymous
Not applicable
Actually the base point is that if I take any family and I have to use conditional statement formula to that, then what parameter will be use to create that formula?
0 Likes
Message 8 of 13

ToanDN
Consultant
Consultant
That's a start. You can use most types of parameters in a conditional statement except for text parameters. Follow the Revit formula link in my signature for the detailed explanations and examples.
Message 9 of 13

Anonymous
Not applicable
Actually I didn't see your signature so I am unable to go to the link.
Please reply
0 Likes
Message 10 of 13

ToanDN
Consultant
Consultant
0 Likes
Message 11 of 13

Secttor
Collaborator
Collaborator

Sample

A=10

B=20

C=30

 

Formula for Result parameter 

Result = if(and(A=10,B=20),5,if(and(B=20,C<40),20,30))

and so on..

Revit MEP - Electrical Certified Professional
Revit MEP - Mechanical Certified Professional

Draftworks.wordpress.com
0 Likes
Message 12 of 13

Anonymous
Not applicable
OK.. but a small query ..How 5 is come there ??
0 Likes
Message 13 of 13

Secttor
Collaborator
Collaborator

Is just a custom value (given by me) that results if A=10,B=20

Revit MEP - Electrical Certified Professional
Revit MEP - Mechanical Certified Professional

Draftworks.wordpress.com
0 Likes