Placing different families depending on one parameter

revit
python

#1

Hi group,

i’m trying to control the family to set in some cases depending on the parameter I input from one excel. I can make it for the case i am only having two options, but the problem is that this parameter can keep increasing its possibilities, so I would like not to make it with infinite if’s nodes and have to update the script every time I add one new case. Is there any smarter way for that, or any python script that can help?

Thanks!


#2

You can select family types using strings if there is a way for you to convert the excel info into a family name. Otherwise you have to give a better explanation as to how you choose between the infinite types.


#3

Hi @kennyb6,

that can help, as every family depends on one code and I can change the code to the family name. How can I select a family type using a string?

Thanks!


#4


Either of these methods.