Tip: How to improve performance when STEPControl_Writer::Transfer is called often

When STEPControl_Writer::Transfer () is called multiple times in order to export a list of shapes to a common STEP file, the performance might be bad because the third parameter "compgraph" of the Transfer function is true by default. It means after every translation of a shape the graph is rebuilt.

Instead this parameter can be set to false and only after all shapes are translated the graph can be built once only by:

writer.WS()->ComputeGraph(Standard_True );

Benjamin Bihler's picture

I have tried it. This seems to be a really great tip! Thank you!!!

Shing Liu's picture

Hi Timo,

It works, Great!

Thanks a lot.

Regards,

Shing Liu's picture

Hi Timo,

It works, Great!

Thanks a lot.

Regards,