Open mohrezarezaei opened 4 years ago
Can you please post a code snippet or provide the step file (if this is possible)?
Without anything, it's very hard for us to reproduce / understand, what kind of error you have.
sorry for being late. here is the code:
from OCC.STEPControl import STEPControl_Reader step_reader = STEPControl_Reader() step_reader.ReadFile("d:\a1.stp")
bl = step_reader.Shape()
the error is :
Traceback (most recent call last):
File "C:\Users\sarir\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2862, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "
and my STEP File is attached ap1.zip
Hi I want to use python occ to read a STEP file and change to shape into voxel representation but in the first step, in reading the file, i keep getting the "Standard Out Of Range" error, I also tried to read an IGES file and got the same problem. It is also worth considering that i have to skip the "Transfer Root" command as if i run it, my python stops operation. I use python 3.6 in windows 10 in Pycharm IDE and use Rhino 6 as my cad software. I hopefully look forward to your help