Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Header issues #7

Open
msc-turb opened this issue May 10, 2021 · 2 comments
Open

Header issues #7

msc-turb opened this issue May 10, 2021 · 2 comments

Comments

@msc-turb
Copy link

Hi,

I get an error when reading the first "G" header line, which is in my iges file:

,,31HOpen CASCADE IGES processor 7.4,13HFilename.iges,                  G0000001

As a workaround I am replacing this row with a functional line.

As far as I understand you need the right identifier for splitting the line into parameters
param_sep = data[2]
record_sep = data[6]

In my header from Open Cascade export these identifiers are not there.
The iges file itself is readable for example in Creo.

Regards,
Martin

@mikamove
Copy link
Contributor

mikamove commented Apr 17, 2023

I encountered the same issue when loading a file created by recent AutoCAD, which procudes exactly this Header format.

According to http://paulbourke.net/dataformats/iges/IGES.pdf, p. 15 there are four possible formats:

grafik

The given example has Form 1.

pyiges wrongly assumes Form 2 and determines the delimiters 3, p instead of ,, ;:

,,31HOpen CASCADE IGES processor 7.4,13HFilename.iges,                  G0000001
  ^   ^

I provide a solution via #32 feel free to see if You have time.

@mikamove
Copy link
Contributor

@akaszynski @msc-turb I think this can be closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants