How to use Interface_Static::SetRVal ?

Hi everyone, I am using the OCCT C++ API and I need to change the global variable "read.maxprecision.val" to the value 0.001, but when I use the function

Interface_Static::SetRVal(Standard_CString("read.maxprecision.val"), 0.001f);

it returns false as if the variable doesn't exist, but I am sure that it exists. There is some preparation that I have to do before calling this function?

Thank you.

Kirill Gavrilov's picture

Make sure to initialize global variables within specific import/export library before changing their values, e.g. something like this: