Opening INCH STEP file

Hi,

The problem I am having is that INCH units are being converted to metric. If I open the file in a text editor I can see that the CARTESIAN_POINT values are correct. As a test if I remove the line below all is well:
#5 =( CONVERSION_BASED_UNIT ( 'INCH', #3 ) LENGTH_UNIT ( ) NAMED_UNIT ( #4 ) );

I have stepped through the code in the debugger but I can't see when the conversion takes place:(

Test file attached. It is a cube 3.94 x 3.94 x 1.97, but is converted to 100 x 100 x 50

Interestingly testing the file in proprietary CAD software, about half get it right.

Many thanks for any help in this matter.

Julian

Attachments: 
Daniel Neander's picture

Hello,
I believe defining "xstep.cascade.unit" parameter will do the trick.
A good example of implementation : http://www.opencascade.org/org/forum/thread_17534/?forum=3
More info : http://www.opencascade.org/doc/occt-6.7.1/overview/html/occt_user_guides...
Kind regards
Daniel Neander

supertramp1963@yahoo.co.uk's picture

Hi Daniel,

You are the man! That did the trick, thank you very much

Julian