Environment variables CSF_IGESDefaults and CSF_STEPDefaults

Hi gentlemen, I am using OCC6.9.1 on WIN7 with VS2013
The CSF_IGESDefaults and CSF_STEPDefaults are defined in env.bat and in the documentation but I was not able to find them in source code so my question is:

Does these variables are still used ?

Thanks in advance.
Best regards
Jerome Monaco.

Andrey BETENEV's picture

Hello Jerome,

Yes these variables are still used (as optional): if defined, they should point to directory containing relevant resource file ("IGES" or "STEP", correspondingly) defining parameters of shape processing in corresponding translator.

Andrey

Blair Downie's picture

Hello,

I've set CSF_STEPDefaults to point to the "STEP" resource file but when I query for the statics nothing seems to be set.
Here is one setting from the file:

FromSTEP.FixShape.CreateOpenSolidMode : 0

Is the name of the static "FromSTEP.FixShape.CreateOpenSolidModel"?

Thank you.
Blair Downie

gkv311 n's picture

Blair Downie wrote:

Is the name of the static "FromSTEP.FixShape.CreateOpenSolidModel"?

Which version of OCCT is used? Why would you want using a legacy approach with dedicated file defined by CSF_STEPDefaults? The name is "FromSTEP.FixShape.CreateOpenSolidMode" (without 'l' at the end).

Blair Downie's picture

We are using OCCT 7.6. The STEP Translator usage guide documentation implies that you specify which type of shape fixes you want to execute by setting the appropriate variables defined in the STEP resource file. I was not able to get the file mechanism to work.

What is the recommended practice now? Call the Shape Healing APIs directly after you've loaded the STEP file?

Thank you.

gkv311 n's picture

Within OCCT 7.7 you may use Interface_Staticclass to change these parameters. In older versions you have to work with files.