Placing different families depending on one parameter

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?



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.

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?


Either of these methods.