Ever Need to “Heal” Your Imported Geometry into SolidWorks?

Here is what to do when the files don’t come in cleanly and how they can be fixed.

Import errors can be the result of the method that the other system used to write the file, the way SolidWorks® reads the file, or an incompatible feature or type of feature within the neutral file. A neutral file is one in which a vendor will write their native CAD file data so that another vendor can read it. An example of this would be IGES.

While there are many different import formats supported by SolidWorks, the following should be noted with data exchange files:

  • Use native SolidWorks files whenever possible 
  • If the other system is Parasolid®-based, use the Parasolid format 
  • Depending on the other system, you may want more than one neutral file (IGES and STEP) when working with a new customer or supplier. This would be done for troubleshooting purposes when the neutral file does not convert correctly

There are additional third party direct translators available from our Solution Partners if you deal with a specific type of system on a regular basis and would like to use native files instead of neutral files to exchange data. 

Importing the data

There are a number of different types of neutral files that can be used to create SolidWorks documents. Some of these types can be used for drawings (i.e. DXF™, DWG), and others are suited to parts or assemblies (i.e., IGES, STEP, etc.).

Figure 1 – Import file types

To import a neutral file, select the Open icon or select Open from the File menu. Then select the desired neutral file type from the Files of type pull-down menu. There is an Option button that displays the dialog box shown in Figure 1. These are the file types that can be imported into SolidWorks.

If the data file is just a surface, do not bother selecting the ‘Try forming solid(s)’ option. This will save time during the import. Also, if you are trying to fix a file, it may be desirable to have the geometry imported as surfaces to look for problems and resolve them on the surface data. The option ‘Do not knit’ makes each surface its own entity. This will also make it easier to edit the data in the surface file.

Figure 2 – Import Option dialog box

When SolidWorks cannot knit the imported file into a solid, it will warn the user. The solid will have an error flag shown next to the imported feature or the solid will not knit and a surface feature will be shown. SolidWorks will try to fix bad import geometry during the conversion process. If that is not successful, the following steps can be taken.

1. General steps for importing and fixing a neutral part file

  • Import the neutral file with the Try forming solid(s) option turned on
  • If there are errors, review the report file to find out where the neutral file was produced and what problems were reported
  • Use the Check Entity function to determine where some of the problems are located
  • Use the Import Diagnosis function
  • Close All Gaps
  • Use the Fix Face function to remove any bad face identified within the Faces field or by the Check Entity function
  • If this does not work, go to #2

2. Surface import with no sew

  • Import the neutral file with the Try forming solid(s) option turned off
  • Use the Check Entity function to determine where some of the problems are located
  • Use the Import Diagnosis function
  • Use the Fix Face function to remove any bad face identified within the Faces field or by the Check Entity function
  • If this does not work, go to #3
  • If this does not work either, save the file in a neutral format (Parasolid, IGES, etc.) and go back to step #1
  • Or select all surfaces and knit them and create a solid using the Thicken function

3. Remove and fix faces

  • Import the neutral file with the Try forming solid(s) option turned off
  • Use the Check Entity function to determine where some of the problems are located
  • Use the Import Diagnosis function
  • Use the Fix Face function to remove any bad face identified within the Faces field or by the Check Entity function
  • Remove the faces that cannot be fixed and put them back in using remaining edge boundaries. This can be done during the Show Gaps evaluation. This function shows, and selects the open boundaries. When using this function and the desired edge (gap) boundary is shown, open the Fill function and the boundary is preselected
  • If this does not work, go to #4

4. Round-trip the neutral file

  • Import the neutral file with the Try forming solid(s) option turned off 
  • Save the file using a neutral format (Parasolid, IGES, STEP, etc.) 
  • Go to step #2 
  • If this does not work, go to #5


5. Where to go from here

  • Try a different type of neutral file if available 
  • Look at one of the native file data translation partners 
  • Contact your VAR


Report file
When a file is converted, a report file is generated. This file is the import file name with an .rpt file extension. When problems occur, review the results file to see more information about where the file was created and where the problems occurred.

 

*****************************************************************
SolidWorks Corporation – IGES Report
*****************************************************************
=================================================================
General Information
=================================================================
Sending System Product I.D. : Part.SLDPRT
Receiving System Product I.D.: Part.SLDPRT
Sending File Name : F:\Sw\Part.IGS
System I.D. : SolidWorks 2001 by SolidWorks Corporation
Preprocessor Version : Version 5.3
File Creation Date : 010627.073149
Model Creation Date :
Units : IN
Model Space Scale : 1.000000
Author : user
Organization :

=================================================================
Entity Processing Information
=================================================================
Surface(s) successfully created.
=================================================================
Precision analysis of IGES file:
=================================================================
Most prevalent number of significant digits: 6
Highest number of significant digits: 10
Average number of significant digits: 5.7382
Maximum distance to origin: 39.3701
Minimum distance to origin: 0
Effective number of significant digits: 10
=================================================================
Entity Summary
=================================================================
—————————————————————–
Type Name Count Converted
—- —- —– ———
100 Arc 22 22
102 Composite curve 62 62
110 Line 81 81
120 Surface of revolution 11 11
124 Transformation matrix 11 11
126 Rational B-spline curve 162 162
128 Rational B-spline surface 18 18
142 Curve on a parametric surface 31 31
144 Trimmed parametric surface 29 29
314 Color definition 1 1
_________________________________________________________________

=================================================================
Import Options
=================================================================
Include surface/solid entities: YES
-Try forming solid(s): NO
Include free point/curve entities: NO

=================================================================
Result Summary
=================================================================
SolidWorks Feature Type Count
———————– —–
Solid Feature(s) 0
Surface Feature(s) 2
Curve/Sketch Feature(s) 0
——————————————–
Start Time: Wednesday, October 30, 2002 20:27:22
Finish Time: Wednesday, October 30, 2002 20:27:27
Total Processing Time: 0 days, 00 hours, 00 mins, 05 secs

Check Entity

The Check Entity tool can be used to identify bad import geometry. This is a valuable tool for reviewing problems with the geometry prior to either having it fixed or manually fixing the bad import geometry. By default it only looks for invalid faces and edges. Typically, this is the information needed to troubleshoot a bad import file.

Figure 3 – Check Entity dialog box
When problems are identified, they are displayed in the results list as shown in Figure 3. By selecting the error, an arrow appears on the geometry showing the face or edge. This information can then be used to fix or remove that face or edge.

Figure 4 – Edge with geometry error

Import diagnostics

There are many problems that can occur when importing geometry. The Diagnostics function can be accessed by selecting the feature, pressing the right mouse button, and selecting Diagnostics. There are three main areas within this feature: Gaps, Faces, and Geometry.

Gaps are used to show open areas within parts. These open areas can be a source for problems. The Next and Previous buttons are used to step through and identify each gap. The gaps are identified with an arrow. Close All Gaps can be used to have SolidWorks try to close the openings automatically. A solid part will have no gaps.

The face section has two options, fix and remove face. The fix face option is the automatic function where SolidWorks will try to fix the problem. The remove face option would be used to remove the problem and then manually go back and insert a new face. After the face has been removed, a gap will be left in the part. The gaps section can be used to identify and select the boundary of the gap. If the face is on the outside of the part and has edges that are not coincident with other edges, they should be created and removed from the original geometry prior to removing the bad face.

Simplify geometry can be used to remove redundant geometry, repair bad geometry and topology, simplify parametric geometry into analytic geometry, and reset tolerances. An example of this would be when a planar surface cannot be selected for sketching.

When collaborating on a design project, first determine the type and format of the information to be exchanged. Chances are the suppliers, vendors, or suppliers in your network are using a variety of CAD/CAM systems.

Next, determine the way the information will be exchanged. You may need to accept the data in the format provided, which means you need to overcome some issues that might otherwise disrupt your workflow:

Other systems have different types of feature and system tolerances. SolidWorks® 3D mechanical design software will try to adjust values automatically based on the type of file and where it was written.

For any import the other system needs to write a valid export file, and SolidWorks needs to import that file format.
The design could have problems back in the original system. The adage “Garbage out, garbage in” would apply to this situation.

Figure 5 – Bad face on import part

Import/Export

SolidWorks allows you to save, import, and export a wide variety of data formats. These data formats fall into the following categories:

  • Native SolidWorks documents (i.e., parts, assemblies, drawings, library features, templates) 
  • Neutral file formats (i.e., DXF™, DWG, IGES®, STEP, ACIS®, and Parasolid®) 
  • Formats native to other systems (i.e., AutoDesk Inventor® Series, AutoDesk Mechanical Desktop®, Unigraphics®, CADKEY®, and Solid Edge®)

The Open function is used to import other files types into SolidWorks by selecting the desired file type from the Files of type: pull-down menu. Depending on the format selected and information contained in the file, SolidWorks will import the file into the appropriate document. For example, if you open a DWG file, SolidWorks will import that file into a SolidWorks drawing document. If you open an IGES file that contains part information, SolidWorks will import that information into a part document.

The Save As function can be used to export the active document to a new file name, location, or a different file format. Depending on what type of document is open, the options shown under the Files of type: pull-down menu will be different. Only appropriate values are shown.

Determination of the appropriate file type is typically based on many factors – the needs of the file recipient, as well as consideration of the systems used on both ends. While a neutral format seems to be an easy solution, better results are usually obtained by the use of native formats. Additionally, if both systems are Parasolid based, this may be a good choice for the format type. Always learn why the information is needed, and determine what type of system is creating or receiving the information.

Direct translators can be used to read the native file format from another system into SolidWorks. SolidWorks offers some of these direct translators and there are also a number of excellent direct translators available from SolidWorks Solution Partners. If you deal with one specific system often and have problems or need to clean data from that system, a direct translator may be a good investment.

Fixing Import Errors

If there are problems with the imported data, you need a way to identify and fix the issues. There are a couple of different ways to determine whether the imported data has errors:
A solid part does not sew into a solid (see Figure 1).
Run Check from the Tools menu to check for invalid faces, edges, and short edges.
If you have SolidWorks Utilities (part of SolidWorks Office and Office Professional), you can run Geometry Analysis. This function will check a part focusing on downstream use. This analysis checks for short edges, small faces, sliver faces, knife edges, discontinuous faces and edges. All these types of topology can slow the design process. This analysis can also be exported into a report.

Run Diagnostics on the imported feature by selecting the imported feature within the FeatureManager® design tree, press the right mouse button, and select Diagnosis. Note that once other features are added to the model, the Diagnosis function is no longer accessible. This is due to the fact that there are now dependencies on the original imported feature.

The difference with the Diagnostics feature is the ability to fix gaps and faces if problems are identified. The Diagnostics command is broken into two main areas – gaps and faces. Run a diagnostic on both items and close any gaps if possible, and fix or remove any bad faces if possible. So if that does not fix your problem, what are the alternatives?
 

  • Try to get another file format 
  • Manually identify and clean up the problem areas. This can be done by identifying the problem areas as described above and then removing and re-creating the faces in question. 
  • Use a direct translator 
  • Use a data healing tool or translation service

Another way to reload the original or modified data set is to select the imported feature, press the right mouse button, and select Edit Feature. This will allow for the selection of the data file to import. The system will warn that there may be broken references to the imported file.

No comments yet

Leave a reply