pythonocc-core icon indicating copy to clipboard operation
pythonocc-core copied to clipboard

Convert STEP 242 to STEP 214

Open JorgeFernandes-Git opened this issue 1 year ago • 0 comments

I have a CAD file. I exported it in STEP 214 and STP 242.

When opening 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()

Step file 214 opens with no problem and 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.

JorgeFernandes-Git avatar Jun 21 '23 14:06 JorgeFernandes-Git