Thu, 11/21/2019 - 00:25
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!
Thu, 11/21/2019 - 08:59
Which STEP file you are trying to read?
Thu, 11/21/2019 - 20:17
Thanks for the reply, can I send the STEP file to you privately ?, email perhaps ?
Fri, 11/22/2019 - 14:29
You can share file via Contact Us form.
https://www.opencascade.com/contact
Fri, 11/22/2019 - 18:45
I have sent a message in the Contact Us form, thanks!.
Mon, 11/25/2019 - 10:30
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
Mon, 11/25/2019 - 18:00
Ok, thanks for checking the issue, will consider support services.
Wed, 11/27/2019 - 10:47
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.
Wed, 11/27/2019 - 11:02
You are right!
The file contains some corrupted characters, which are not UTF-8 nor any codepage from my guess:
Thu, 11/28/2019 - 03:25
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!