Is it possible to change the category of a family using the Revit API?
The category of a family is defined when it is created and cannot be changed later. If we use EditFamily() and access the OwnerFamily on the family document, we can see that the OwnerFamily’s Category is read-only. So the solution is to use the appropriate template for the category of family you wish to create at the time of family creation itself.