pyiges icon indicating copy to clipboard operation
pyiges copied to clipboard

Header issues

Open msc-turb opened this issue 3 years ago • 2 comments

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

msc-turb avatar May 10 '21 10:05 msc-turb

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 avatar Apr 17 '23 21:04 mikamove

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

mikamove avatar May 28 '23 07:05 mikamove