Add Family Type and Type Name To DirectShape

Dear all,
I tried to create a script to create a geometry based on a Curve and to use it for the connection Revit/C3D.
It Works but I don’t have Family and Type Names, it becomes a (Null). How to add these names to the geometry?


image

Hello @Ali.maher dont think directshape have types only instance, but you could create an instance parameter…another way it just create them as nature family, for beam and column we have node for that…and you could try familytypeby geometry…or familyinstanceby geometry from spring it will give you a family type

Hi @sovitek
Thank you for your quick response, it’s OK to choose another category if I export only IFC, so I can manage it with Ifc Class Name.
But if I have to export NWC, then I should have it in the correct category.

regards

probably, i talk about familytype

I can’t see the name in Revit but when I export the IFC/NWC, it looks OK


The name does not appear in Revit but the export to IFC/NWC looks ok

great, then its just another question from the original