Add.Direct.Shape.ByGeometry needs option to set material as a parameter instead of a Revit Material

I see, you are trying to author a Family.
Here Create Window Family with Opening you can see a sample on how to create a Window family.
As you can see in this sample there are components to assign subcategory, visibility and material to the content of the family, you can as well change the family category but to do so you need to modify this sample to use the GenericModel template.

Hope it helps.

1 Like