For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

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

Timo Roth's picture
Forums: 

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,