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 condition based on label (family selection) parameter

1 REPLY 1
SOLVED
Reply
Message 1 of 2
denisyukJ
304 Views, 1 Reply

IF condition based on label (family selection) parameter

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.

 

1 REPLY 1
Message 2 of 2
RDAOU
in reply to: denisyukJ

@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


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

Post to forums  

Autodesk Design & Make Report