weiguibai_144554 Mon, 07/01/2019 - 10:14 Forums: Data Exchange and Application FrameworkWe can use Handle(XCAFDoc_ShapeTool) and Handle(TDataStd_Name) to read a name of shape from doc, but how to add a name to a shape? or add an Attribute to a shape? Hugues Delorme Mon, 07/01/2019 - 18:31 Hello, Provided you have a TDF_Label that points to the shape, you can use TDataStd_Name::Set() for this. Log in to post comments weiguibai_144554 Tue, 07/02/2019 - 04:11 Thank you,I have completed it by your method! Log in to post comments 魏涛 魏 Tue, 01/05/2021 - 06:43 Hi: if I add a name to shape(like face) use TDataStd_Name::Set() ,and then how to write to STEP file. Entity Names can be attached to every Geometric Entity. Why I can't? Hope to help me, thanks. Log in to post comments
Mon, 07/01/2019 - 18:31
Hello,
Provided you have a TDF_Label that points to the shape, you can use TDataStd_Name::Set() for this.
Tue, 07/02/2019 - 04:11
Thank you,I have completed it by your method!
Tue, 01/05/2021 - 06:43
Hi:
if I add a name to shape(like face) use TDataStd_Name::Set() ,and then how to write to STEP file.
Entity Names can be attached to every Geometric Entity. Why I can't?
Hope to help me, thanks.