STEP short names format

hello,
attached step file, which uses the short names step format, is imported by import/export sample (oc 7.4) 1000x scaled (oc7.4.png).
the same file loaded to cad assistant (oc 7.4.1.dev) is shown in correct dimensions (cada.png, cada2.png).
would anybody explain, why oc 7.4 has this scaling problem? 
best regards,
adrian
 

Kirill Gavrilov's picture

would anybody explain, why oc 7.4 has this scaling problem? 

It is not OCCT itself, it is just an MFC sample, which has a bug in this dialog.
The tool sets display units (AIS_Dimension::SetDisplayUnits()), but doesn't set model units (AIS_Dimension::SetModelUnits()), which are meters by default.
At the same time, STEP reader considers model units as millimeters by default ("xstep.cascade.unit" parameter).
So here is where 1000x scale factor appears.

Contributions to the proejct are welcome - you may prepare a patch or report an issue on Bugtracker:
https://dev.opencascade.org/index.php?q=home/get_involved