Closed BoshraKrout closed 4 years ago
can u please upload the step file as well
it seems your STEP file can't be read:
from OCC.Core.STEPControl import STEPControl_Reader
input_file = 'ap242.stp'
step_reader = STEPControl_Reader()
status = step_reader.ReadFile(input_file)
# status should be either
# IFSelect_RetVoid = 0,
# IFSelect_RetDone = 1
# IFSelect_RetError = 2
# IFSelect_RetFail = 3
# IFSelect_RetStop = 4
print(status)
It outputs 3
, that is to say IFSelect_RetFail
. It comes either from the STEP file itself (no compliant with the standard) or from the OCCT kernel and this should be reported upstream.
In both cases, it does not come from the python wrapper, I close the issue please report any feedback anyway
the issue was from the STEP file it self, it worked when i changed it. thanx
i've been trying this code to read a step file and convert it to stl file but it's crashing at print('here1')