Mon, 05/23/2011 - 12:42
Forums:
Hello guys, I want to export a Model to a STEP file. The model is consisted of several TopoDS_Shapes. How can I combine these shapes into one shape so that the STEP file opened as one model, not as many pieces?
Waiting for your answer...
Mon, 05/23/2011 - 19:48
TopoDS_Compound
Tue, 05/24/2011 - 05:56
Thanks for your answer, I've tried to Add all shapes to a TopoDS_Compund, then exported the Compound to STEP file. When openning the STEP file in Solidworks, there is still many parts. Moving any part, it will separate from the model.
Thu, 03/07/2024 - 19:13
I have exactly the same question.
Thu, 03/07/2024 - 19:28
If you want to export into Step as one single compaund you need to update parameter
Best regards, Dmitrii.
Sun, 03/10/2024 - 18:55
Hi Dmitrii. Thanks for your answer. However, it doesn't solve the problem in my case. Setting this parameter flattens the objects hierarchy tree - the resulting step file has one root compound and all solids/shells as its children, i.e. the tree depth is 1. I need the step file to have just one shape, i.e. a tree depth of 0. Do you any ideas how to achieve that?
Sun, 03/10/2024 - 20:50
In that case you need to perform Boolean operation - fuse. Your goal is not related with step format.
Best regards, Dmitrii.
Sun, 03/10/2024 - 22:33
I did try the fuse operation via
BOPAlgo_Builder
, but it completely preserves the hierarchy of objects. I didn't find an option to disable that.Here's my code:
Here's the result: