Wed, 06/21/2023 - 17:20
Forums:
I have a CAD file. I exported it in STEP 214 and STP 242.
When open with this both files with:
from OCC.Core.STEPControl import STEPControl_Reader from OCC.Core.StlAPI import StlAPI_Writer input_file = r"step.STP" step_reader = STEPControl_Reader() step_reader.ReadFile( input_file ) step_reader.TransferRoot() myshape = step_reader.Shape()
The step file 214 opens with no problem and the 242 gives the message
*** ERR StepReaderData : Unresolved Reference : Fails Count : 416 ***
So my idea is to convert 242 into 214. Is this possible?
Thanks in advance.
Wed, 06/21/2023 - 18:15
Using OCCT it is possible. You need change schema version for writing. I don't know how to do this on pythonOCC.
Best regards, Dmitrii.
Wed, 06/21/2023 - 19:24
Can you give an example in c++?
Thanks.
Thu, 06/22/2023 - 11:32
Best regards, Dmitrii.