IF condition based on label (family selection) parameter

denisyukJ
Advocate
Advocate

IF condition based on label (family selection) parameter

denisyukJ
Advocate
Advocate

Hello everyone, 

I want to make realtion based on selected family type (label parameter in family creator). I understand the logic, but can't realize that and find information in knowledge database.

 

At the pic below i breefly describe what i am talking about, but this syntax doesn't work.

denisyukJ_1-1633334251562.png

 

Sample file in attached. Revit 2021.

 

0 Likes
Reply
Accepted solutions (1)
306 Views
1 Reply
Reply (1)

RDAOU
Mentor
Mentor
Accepted solution

@denisyukJ 

 

You need 3 Family Type Parameters (T1, T2, T3)  to serve as a dictionary (1 for each cube type)...

then you set the If statement based on FamilySelection matching each of the above parameters

 

if(FamilySelection = T1, 100 mm, if(FamilySelection = T2, 200 mm, if(FamilySelection = T3, 300 mm, 0 mm)))

 

Family Type if.gif

 

RDAOU_0-1633335989998.png

 

YOUTUBE | BIM | COMPUTATIONAL DESIGN | PARAMETRIC DESIGN | GENERATIVE DESIGN | VISUAL PROGRAMMING
If you find this reply helpful kindly hit the LIKE BUTTON and if applicable please ACCEPT AS SOLUTION