Assign Sub Category to Family elements

I am trying to select model elements in a family and assign a newly created sub-category to them.
The subcategory gets created (gets created after first script run), the elements as per the crumple node do get selected, but even after sucessful run of the script the elements have no subcategory assigned to them.

Not sure what I am missing. Thankful for all your comments.

The Element.SetSubCategory requires a SubCategory type for input - you can use the Clockwork Category.Subcategories node to retrieve the sub categories.
You will also have to filter elements by category if they are not all the same
Try this

1 Like