3.0 can't import attached IGES file, but 2.0 can

 From:  Michael Gibson
4678.7 In reply to 4678.1 
Hi Al - it seems to involve a problem with the units specified in the IGES file - it looks like the units designator may be malformed in the file.

The IGES spec says that there is a "Units Flag" marker in the file which can contain these possible values:

Value  Model Units
1        Inches (default)
2        Millimeters
3        (See Parameter 15 for name of units)
4        Feet
5        Miles
6        Meters
7        Kilometers
8        Mils (i.e., 0.001 inch)
9        Microns
10      Centimeters
11      Microinches


For this particular file, the units flag has a value of 3, so that means that the next "Units Name" field (parameter 15 in the global section) is supposed to contain a units name label. But instead of any actual label there in your particular file there seems to only be a single space character there where the units name is supposed go.

The IGES spec says: "When field 14 is 3, the string naming the desired unit shall conform to [MIL12] or [IEEE260]."

I don't have those documents handy right now, but it seems unlikely that a space character will actually be listed in them as a valid unit name...

So from what I can see, this IGES file does not seem to be quite in spec with regards to the units label. That probably also explains why some programs are seeing the units differently - it looks like Delcam which Burr shows the diagnostic from above thinks the units are in MM while Rhino thinks the units are in inches.

If this is something that is part of one of your own products, you may want to fix it up so that it has a proper unit system designator in it, that will then probably help get the units going across consistently into different programs.

The reason why it doesn't work in MoI v3 is that an update to the IGES parser tries to read in IEE260 format units and then that throws an error which then errors out the entire import process. I should be able to get that fixed up so that an error there does not stop the import from working at all and instead uses a default unit system, I guess probably inches since that's normally the default in IGES.

But it would also probably be good to get the units designator fixed up so that it's not out of spec as well though.

- Michael