& Construction

Integrated BIM tools, including Revit, AutoCAD, and Civil 3D
& Manufacturing

Professional CAD/CAM tools built on Inventor and AutoCAD
Integrated BIM tools, including Revit, AutoCAD, and Civil 3D
Professional CAD/CAM tools built on Inventor and AutoCAD
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.
Sample file in attached. Revit 2021.
Solved! Go to Solution.
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)))
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
How to buy
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © 2025 Autodesk Inc. All rights reserved
Type a product name