Note: This document was originally put together using the tools available in Rhino V2. While these tools remain in Rhino V3 and V4, you may have developed different techniques for repairing troublesome IGES files. Please share those techniques here. - John Brock
One powerful use of Rhino’s file translation ability is to clean up poorly written IGES files. You may have received IGES files from your clients or suppliers that do not read properly into your solid based modeling application. Often this is the result of an improperly formatted IGES file, missing or duplicate surfaces, gaps or overlaps, or bad surface trimming information.
No amount of relaxed tolerances in the healing process can automatically fix these problems. After a long wait, you end up with incomplete solids, missing surfaces, or perhaps nothing at all. Your job depends on importing and using this data. What do you do?
Rhino has the basic tools needed to overcome all these problems. With a little practice and good problem solving skills, you can repair these problem files and import the data into your solid modeling application. The effort and time required will vary a great deal depending on the number of problems and the size of the IGES file.
Most problem IGES files can be repaired quickly with a little practice. But some can take several days of effort. With Rhino you have the tools to fix the most difficult IGES problems and get on with the job.
Since Rhino is a surface modeler that supports solids, it does not require that the IGES data consist of a closed solid. Rhino will read in as much valid information from the model as it can, skipping corrupt objects, but reading all the point, curve, and surface data. Rhino’s IGES importing process will often read the file and fix the problems automatically. All you have to do then is save it back as a new IGES file and read it into your application. If the repair isn’t automatic, you can use Rhino to replace missing surfaces, fix bad trim curves, smooth surface discontinuities, and export a solid model to your application.
Generally, you can salvage most of the data in the IGES file. Sometimes, there is no choice but to remodel portions of the file. Even in this extreme case, Rhino contains the tools to harvest isoparms, sections, and edge curves that can replace these unusable surfaces while preserving the original design intent.
The general strategy in repairing IGES files will vary depending on the individual files. Over time, you will discover patterns of problems in the IGES files produced by specific applications and individual users.
The old adage, An ounce of prevention is worth a pound of cure, applies to IGES file transfers too. When possible, spend a little time in the originating application to export a clean file. This will save a great deal of clean-up work later. Unfortunately, this is not always an option. Two common creators of IGES data are CATIA and Pro/Engineer. The following procedures and settings minimize the problems associated with importing IGES data from these applications.
Export from CATIA by preparing the model to improve the trimming curves. Here are the procedures one of our customers (Black & Decker/DeWalt) uses in CATIA to minimize their downstream clean up tasks.
1. To prepare the model for transfer, work with the volume:
SOLID + EXTRACT + VOLUME
2. Clean the model and ignore all extraneous geometry:
KEEP + SELECT + GEOMETRY + ELEMENT and select the "VOLUME"
3. Recalculate the boundary curves: Bring the old boundaries out of NO-SHOW:
ERASE + NOSHOW YES:SWAP. Key in **SPC - **SUR and YES:SWAP to return.
4. ERASE and key in SPC - VOL
5. CURVE1 + BOUNDARY and key in *FAC
6. Run /CLN to check for errors
7. The model is now ready for IGES export.
To optimize export of Pro/E files into Rhino
Use these settings in the Pro/E config.pro file or save them as a rhino.pro file and read it in before exporting.
{@ IGES_OUT_ALL_SRFS_AS 128
IGES_OUT_SPL_CRVS_AS_126 YES
IGES_OUT_SPL_SRFS_AS_128 YES
IGES_OUT_TRIM_XYZ YES
IGES_OUT_MIL_D_28000 NO
IGES_OUT_TRM_SRFS_AS_143 NO
IGES_OUT_TRIM_CURVE_DEVIATION DEFAULT
INTF_OUT_BLANKED_ENTITIES NO
INTF3D_OUT_EXTEND_SURFACE YES
INTF3D_OUT_FORCE_SURF_NORMALS YES
IGES_IN_106_F2_AS_SPLINE NO
IGES_IN_DWG_LINE_FONT YES
IGES_IN_DWG_PNT_ENT YES
IGES_IN_DWG_COLOR YES
FIX_BOUNDARIES_ON_IMPORT YES
Information about successful exchange of Rhino files with Pro/E.
Information about successful exchange of Rhino files with Softimage.
Information about successful exchange of Rhino files with SOLIDWORKS.