Family type change after save script


I’ve a problem with my family and categories.

I’ve write a script and choose the family I need him to use for exampe: Titleblock A0 of categorie Scope Boxes. But sometime the family type change after saving.
How is that possible? The family type isn’t a input so the type of categorie can not be changing.


sometimes it happens to me, with every dropdown inside dynamo… what I usually do is use a string and … byname node… and it works…

@LievX Thanks for youre reply.

How can I do it with the types and categories?

use “category.byname” and “familytype.byname”