STEP item name parsing

I have a part in a STEP file with an unusual name containing multiple apostrophes, but when parsed with OCC all except one of the apostrophes are removed. Can anyone explain the text parsing logic involved? The part name (as defined in the PRODUCT and SHAPE_REPRESENTATION lines in the STEP file) originally contains the string "C''''''''SK" (i.e. eight apostrophes) but after parsing this wrongly becomes "C'SK". Can anyone help?

Details: Windows 10, OCC via PythonOCC. I did not put this in the PythonOCC sub-forum as I suspect it's not PythonOCC-specific.

Kirill Gavrilov's picture

I guess this logic is defined by lexer rules within src/StepFile/step.lex, like the following patch is trying to fix reading nested apostrophes (OCCT 7.5.0):

Hugh Rice's picture

Thanks Kirill. So, has that patch been implemented?

Kirill Gavrilov's picture

This patch is included within OCCT 7.5.0. Therefore, if you experience the issue on up-to-date OCCT, then it doesn't help for your case.

Hugh Rice's picture

I'm sorry to report that the problem still exists for me, via PythonOCC 7.5.1. I would happily report the issue, if you could let me know how to do so?

Kirill Gavrilov's picture

You should be able registering a bug on Mantis (category OCCT:Data Exchange) using the same account as on this Development Portal. Developers will ask extra questions there, if report will lack important information.

Hugh Rice's picture

Much appreciated, Kirill. All done, I'll report back as and when I get more information. Issue is being tracked here.