I’ve taken the visual script from Aussie BIM Guru relating the import of Revit family data using Dynamo as a reference to create new FamilyTypes of a given family while setting new parameters.
(Link to his video: Import Revit family data using Dynamo! - YouTube)
The following image describes the error I’m getting when running the script:
First of all I’m opening the FamilyDocument and define the names of the new FamilyTypes to be created. The block FamilyType.All gives me all existing FamilyTypes in the FamilyDocument of the input family (Kabelschacht). Now I want to create new FamilyTypes using the FamilyDocument and the names. The names of the new ones are not listed in the FamilyTypes of the FamilyDocument but I still get the error:
“FamilyType.Create fehlgeschlagen.
Name already in use.”
My current solution is that I disconnect the blocks FamilyType.Create and Document.ToOrchidType and run the script. After this I reconnect the blocks and rerun the visual script. Now everything is working fine and FamilyType.Create creates the new FamilyTypes as intended.
I’ve tried to look up a proper solution for that but I haven’t found anything.
I would appreciate any help.
Thanks in advanced!
Paul