How can i define <familiy Type> Parameter in Python?

Hello Dynos,

text is string
yes/no is boolean
Number is float
but What is a family type parameter? a class?

Do you have any examples?



Do you use that in Python? Then take a look at enum:

Ok! but there is definion clear - i mean a analogy to programming?

I can only work with IN[0] inputs, elements that already in the family

Family type is of data type ElementId. You can use the AsElementId() method on the parameter to convert.

1 Like

ParameterType is also a class. I don’t know, what you want to do. Show your code because if you try to change familytype, you have to use ElementId Class but if you want to create a parameter with that type then use that class.

1 Like