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

Next
 From:  Al (AGREYNOLDS)
4678.1 
Subject says it all

Al Greynolds
Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BurrMan
4678.2 In reply to 4678.1 
Hi Al,
WHat program generated the IGES file. I noticed the IGES header had a vaue of:


Conversion of pill.mac by GelOE v2.9.81 S 1
1H,,1H;,8Hpill_mac,12Hpill_mac.igs, G 1
19HBreaultResearchASAP,6Hv8.0.3,32,38,7,,, 8Hpill_mac,


The MoI translator has matching values for an area that differs from your file like this:


Conversion of pill.mac by GelOE v2.9.81 S 1
1H,,1H;,12Hpill_mac,12Hpill_mac.igs, G 1
19HBreaultResearchASAP,6Hv8.0.3,32,38,7,,, 8Hpill_mac,

If I change the values to match the second value of "12" (Just before the iges file name) then it opens fine in MoI3.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
4678.3 
Changing the pill files value 08 to 12, imports in V3.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Al (AGREYNOLDS)
4678.4 
That change doesn't make sense and violates the IGES standard. Rhino (just as MoI V2+ )has no problem with unchanged the file.

Al
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
4678.5 In reply to 4678.1 
Hi Al, thanks for posting the example file - that helps that it's also a simple file.

For V3 I've got both updated versions of the geometry kernel as well as the file I/O library as well, and some change in there must be causing it to not work in v3. I'll investigate what's going on.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BurrMan
4678.6 In reply to 4678.5 
""""""""""That change doesn't make sense and violates the IGES standard. Rhino (just as MoI V2+ )has no problem with unchanged the file.""""""""""

Violates the IGES standard? It's true that my other programs also open that IGEs file, although an immediate save to an IGES file writes those values as "equal". Punchcad actually has 4 IGES flavors to choose from, though it alone writes out a "single line" where all the others write 2 in a row.

Here is your file imported into Delcam:



This following text comes from the import report of the iges file from delcam:

*****************
Reading file C:/Users/Burr/Desktop/pill_mac.igs

Writing the translation to C:/Users/Burr/AppData/Local/Temp/w_153015_5284
Product ID: Exchange6.4.1102
Build: Build 02 Fri Jan 21 13:59:48 GMT 2011
Warning : Invalid data has been found in the global section of the file.
Defaulting the data for field 10 ("maximum double precision float")
Warning : Invalid data has been found in the global section of the file.
Defaulting the data for field 11 ("significant figures in a double precision float")

Filename : pill_mac.igs
IGES Version : 5.3
Author : unknown
Author's Organisation : unknown
Sending System : BreaultResearchASAP
Preprocessor : v8.0.3
Creation Date : 2011/11/04 12:22:39
Units : MM
Scale : 1
Max Coordinate Value : 2.02
Resolution : 2.02E-006

This IGES file contains 4 unknown/unsupported entities.
3 surface(s) were successfully translated.
**************************************

It seems the Propriietary IGES file was written to be optimized for Raytracing......Translated for the ASAP system.

EDITED: 19 Jun 2012 by BURRMAN

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
4678.8 In reply to 4678.1 
Hi Al, or also if you happen to know for sure that a space character is actually a valid units label in either of those labeling systems, let me know if that is actually the case so I can get that to be recognized.

[MIL12] is:
Abbreviations for Use on Drawings, Specifications, Standards, and in Technical Documents
(MIL-STD-12D), U.S. Department of Defense, May 1981.


And [IEE260] is:
IEEE Standard Letter Symbols for Units of Measurement (ANSI/IEEE Std 260),
Institute of Electrical and Electronics Engineers, 1978.


But those are all about abbreviations and letter symbols for different units - it seems pretty unlikely that a blank space character would be listed in either of them as a type of unit system abbreviation.


- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
4678.9 In reply to 4678.1 
Hi Al - for the next v3 beta I've got it tuned up now so that it will ignore any problem in parsing the units instead of letting that derail the entire import. So in the next v3 beta this file will import again.

Thanks for supplying a simple example file for testing with.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael T. (MICTU_UTCIM)
4678.10 
Hello to all,

It does import fine into ViaCAD 2D/3D v8:



Michael Tuttle a.k.a. mictu http://www.coroflot.com/DesignsByTuttle
Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Al (AGREYNOLDS)
4678.11 
Michael,

Thanks for looking at this. You are correct that the "blank" units should not be there. I should have caught that and I can force it to be right. When I do this it imports fine in V3.

Al
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All