#include #include #include #include #include #include /** Set the name of a TopoDS_Shape in a .step file */ void setName(STEPControl_Writer & writer, const TopoDS_Shape & shape, const char * name) { auto fp = writer.WS()->TransferWriter()->FinderProcess(); auto repr = STEPConstruct::FindEntity(fp, shape); repr->SetName(new TCollection_HAsciiString(name)); }