Issue importing a STEP file

Hello,

I have an issue importing a STEP file with STEPCAFControl_Reader.
After calling ReadFile method I get lot of errors:

*** ERR StepReaderData *** Pour Entite #2
    Type:VERTEX_POINT  Param.n0 2: #181601 Non trouve
*** ERR StepReaderData *** Pour Entite #5
    Type:ORIENTED_EDGE  Param.n0 4: #202900 Non trouve
*** ERR StepReaderData *** Pour Entite #8
    Type:ORIENTED_EDGE  Param.n0 4: #294283 Non trouve
*** ERR StepReaderData *** Pour Entite #7
    Type:EDGE_CURVE  Param.n0 4: #231147 Non trouve
*** ERR StepReaderData *** Pour Entite #7
    Type:EDGE_CURVE  Param.n0 3: #126453 Non trouve
*** ERR StepReaderData *** Pour Entite #7
    Type:EDGE_CURVE  Param.n0 2: #286516 Non trouve
*** ERR StepReaderData *** Pour Entite #10
    Type:ORIENTED_EDGE  Param.n0 4: #107032 Non trouve
(continues..)

The same happens if I use STEPControl_Reader.

Is this a bug or an unsupported format ?

Thanks!

 

 

Kirill Gavrilov's picture

Which STEP file you are trying to read?

vbovio_145669's picture

Thanks for the reply, can I send the STEP file to you privately ?, email perhaps ?

Kirill Gavrilov's picture

You can share file via Contact Us form.
https://www.opencascade.com/contact

vbovio_145669's picture

I have sent a message in the Contact Us form, thanks!.

Kirill Gavrilov's picture

It looks like a bug in OCCT STEP reader, which can be reported here:
https://dev.opencascade.org/index.php?q=home/get_involved

If this issue is blocking for you - you may consider support services:
https://www.opencascade.com/content/technology-support

vbovio_145669's picture

Ok, thanks for checking the issue, will consider support services.

290178552_143537's picture

I am not so sure, but I guess the cause may be some characters​ in step file that STEPControl_Reader​ can not recognize.

Try replace all the characters​ with ascii in step file.

Kirill Gavrilov's picture

You are right!

The file contains some corrupted characters, which are not UTF-8 nor any codepage from my guess:

> #20324 = MANIFOLD_SOLID_BREP ( 'շӮѕӵR-1/0-SI02900-00_Ͼս3x5­ÚÝѦ_S2-1-solid1', #299199 ) ;
vbovio_145669's picture

Wow that was the problem!
What I did was creating a temp file in ASCII encoding and then pass this to STEPControl_Reader.ReadFile, then it loaded without problems.
I'm using OCCT 7.3.0, and I see in release notes of 7.4.0 a fix related to this, so probably it is my fault for not using latest version.
Anyway, thanks a lot Trick Xu & Kirill Gavrilov!