Importing and Exporting CAD Files
Importing 3D CAD Files
To import geometry objects from a 3D CAD file, from the Home or the Geometry toolbar, click Import (). In the Import section of the Settings window, select 3D CAD file from the Geometry import list. You can also skip this step as the type of the selected file is automatically recognized by the code. Click Browse to locate the file to import, or enter the path to the file. Before clicking the Import button consider to review and configure the import settings. If you have changed some settings after importing a file, the file is automatically re-imported when you click a build button.
The imported geometry objects are represented by the CAD kernel, see Working with the CAD Kernel, which is the geometric kernel used by the CAD Import Module, Design Module, and LiveLink™ products interfacing CAD packages.
Some 3D CAD formats use periodic parameterization for edges and faces. For example, a full-revolution cylindrical edge or face appears seamless in the CAD program. During import edges or faces that have a periodic parameterization are cut in two halves by inserting new vertices and edges. This is done because the mesh algorithms do not support periodic entities. You can ignore such inserted edges using an Ignore Edges feature from Virtual Operations.
Supported Formats
The CAD import supports the following 3D CAD formats:
.sat, .sab
CATIA® V5
.CATPart, .CATProduct
.igs, .iges
Inventor® assembly
Inventor® part
.x_t, .x_b
PTC® Creo® Parametric™
PTC® Pro/ENGINEER®
.prt, .asm
.sldprt, .sldasm
.step, .stp
Note 1: This format requires a license for one of the CAD Import Module, or Design Module, or LiveLink product for a CAD package.
Note 2: This format is available only on a supported Windows® operating systems.
Note 3: Support for the AutoCAD® 2023, Inventor® 2023, NX 2206, and PTC® Creo® Parametric 9.0 file format versions is not available on Windows® 7.
Note 4: This format requires, in addition to the CAD Import Module, or Design Module, or a LiveLink product for a CAD package, a license for the File Import for CATIA V5 module.
Note 5: This format is available only on the Windows® 8.1, Windows® 10, and Windows® 11 operating systems.
Note 6: Support for the NX file format is available only on a supported Windows® or Linux operating system.
Note 7: Embedded parts in assemblies are not supported. To import such an assembly, first convert the embedded parts to external parts.
Associativity
When possible the import maintains associativity for the imported geometry objects, so that when the CAD file is re-imported the settings applied to the geometric entities, for example physics or material settings, are retained. To maintain associativity the import relies on information in the CAD file that uniquely identifies the geometry objects and their entities, such as faces, edges, and points. This information is usually included in the CAD file if the geometry is saved in the format of the CAD software where it was created, but not when the geometry is exported to another CAD format. When re-importing a CAD file the import automatically tries to identify and match all geometry objects and their entities to the previous version. This may fail if the topology (structure) of the geometry has changed since the last import.
Note: To ensure that associativity is maintained when re-importing a CAD file work with CAD files saved in the originating CAD software’s format, and avoid changes to the topology (structure) of the geometry. When an associative import is not possible use coordinate-based selections, such as the Ball, Box, and Cylinder selections in 3D (see Creating Selections From Geometric Primitives and Operations in the COMSOL Multiphysics Reference Manual).
Length Unit
In the Length unit list, select From CAD document to change the geometry’s length unit to the unit in the file (if the file has a length unit). Select From COMSOL to keep the geometry’s length unit and scale the objects in the file to the geometry’s unit.
Objects to Import
Select the types of objects to import using the Solids, Surfaces, and Curves and points check boxes.
If the Surfaces check box is selected, you can choose how COMSOL imports the surfaces using the list under For surface objects:
Choose Form solids (the default) to knit together surface objects to form solids. The input surface objects must have manifold topology, and the operation can only form solids with manifold topology. An example of a solid object with nonmanifold topology is a solid that has an interior surface that separates two domains. A surface object that contains an edge that is adjacent to more than one boundary is an example of a surface object with nonmanifold topology.
Choose Knit surfaces to form surface objects by knitting.
Choose Do not knit to not form any surface or solid objects from the imported surfaces.
For the Form Solids and Knit surfaces options select the Fill holes check box to generate new faces to replace missing geometry.
To import wireframe geometry you need to select the Curves and points check box. With this option, the Unite curve objects check box is selected by default to unite the imported curve objects, which speeds up the rendering of the geometry.
Import Options
The Absolute import tolerance is a length measured in the geometry’s unit after the import. When importing 3D CAD files, the program merges geometric entities with a distance smaller that this tolerance.
Select the Check imported objects for errors check box to check the validity of the imported objects as the last stage of the import. Warning nodes appear with details about the detected problems, if any. Use the Zoom to Selection button next to the Entities list in a warning node to locate the problematic edges or faces. For information on geometry problems that may occur see the Check feature.
If you select the Repair imported objects check box, the software tries to repair defects and remove details smaller than the Absolute repair tolerance.
The option Simplify curves and surfaces is selected by default to simplify, within the Absolute import tolerance, the underlying curve and surface manifolds of the imported geometric entities. Importing objects with this option may improve both the performance and reliability of geometric operations on some imported geometry, for example it may help in some cases when Boolean operations on the imported objects fail. Simplification means that the manifolds are converted where possible to analytical form: linear, circular, and elliptical curves; and planar, spherical, cylindrical, conical, and toroidal surfaces. Manifolds that are converted are B-spline curves and surfaces, or certain surfaces generated by operations such as sweeping, revolving, and filleting.
If the Remove redundant edges and vertices check box is selected, edges and vertices that are considered redundant, such as the edges of an imprint on a face, are removed during synchronization.
Selections of Resulting Entities
If you want to make the resulting entities contribute to a cumulative selection, select a cumulative selection from the Contribute to list (the default, None, gives no contribution), or click the New button to create a new cumulative selection (see Cumulative Selections in the COMSOL Multiphysics Reference Manual).
Select the Resulting objects selection check box to create predefined selections (for all levels — objects, domains, boundaries, edges, and points — that are applicable) in subsequent nodes in the geometry sequence. To also make all or one of the types of resulting entities (domains, boundaries, edges, and points) that the objects consist of available as selections in all applicable selection lists (in physics and materials settings, for example), choose an option from the Show in physics list: All levels, Domain selection, Boundary selection, Edge selection, or Point selection. The default is Domain selection, which is suitable for use with materials and physics defined in domains. For use with a boundary condition, for example, choose Boundary selection. These selections do not appear as separate selection nodes in the model tree. Select Off to not make any selection available outside of the geometry sequence.
Select the Individual objects selections check box to create predefined selections (for all levels — objects, domains, boundaries, edges, and points — that are applicable) in subsequent nodes in the geometry sequence for each individual object in the geometry file and for each relevant entity level. To also make all or one of the types of resulting entities (domains, boundaries, edges, and points) that the objects consist of available as selections in all applicable selection lists (in physics and materials settings, for example), choose an option from the Show in physics list: All levels, Domain selection, Boundary selection, Edge selection, or Point selection. The default is Domain selection, if available, which is suitable for use with materials and physics defined in domains. For use with a boundary condition, for example, choose Boundary selection. These selections do not appear as separate selection nodes in the model tree. Select Off to not make any selection available outside of the geometry sequence.
Selections Generated Based on Information in the CAD File
The following types of data from the CAD file are used to generate selection on the imported geometry:
After the import the generated selections are displayed in the Settings window for the Import node in sections named according to the entity level of the selections:
Object Selections
Boundary Selections
Edge Selections
Point Selections
Depending on which selections are generated, a subset of the above sections is displayed. The selections are listed in tables with the following columns:
Name: Here you can edit the selection name that is generated by the import. For colors the generated names are of the type Color 1, Color 2, and so on, for materials and layers the names from the CAD file are used.
Name in file: This column contains the original name of the selection. To display this column select the Show names from file check box above the table.
Keep: Select the check box in this column to make the selection available in selection lists for subsequent nodes in the geometry sequence.
Physics: Select the check box in this column to make the selection available in all applicable selection lists (in physics and materials settings, for example).
Contribute to: If you want to make the objects or entities in the selection contribute to a cumulative selection, select a cumulative selection from the Contribute to list (the default, None, gives no contribution), or click the New Cumulative Selection button under the table to create a new cumulative selection (see Cumulative Selections in the COMSOL Multiphysics Reference Manual).
Click a row in a table to highlight the corresponding selection on the geometry in the Graphics window. To help with identifying the color selections, these are highlighted with the colors defined in the imported CAD file. To always highlight on the geometry the color selections that you keep select from the Graphics toolbar Colors > Show Selection Colors.
The selections listed in the Object Selections section that are made available for the geometry sequence or physics setup are always available in all input selection lists, including all applicable entity selection lists. For example, the object selection of a solid object, generated for a material from the CAD file, automatically results in domain, boundary, edge, and point selections with the same name, so that you can use it to apply a boundary material, or a boundary condition. In contrast, a color assigned to a face of a solid object in the CAD file results in a boundary selection that is displayed in the Boundary Selections section, and it is available in all applicable boundary selection lists, but not, for example, in any edge selection lists.
Assigned Attributes
Select the Construction geometry check box to make the resulting objects available only in the feature’s geometry sequence. For more information see Construction Geometry.