Import 3D CAD
Import geometry objects from a 3D CAD file using the CAD Import Module, Design Module, or a LiveLink product for CAD software.
Syntax
model.component(<ctag>).geom(<tag>).feature().
    create(<ftag>,"Import");
model.component(<ctag>).geom(<tag>).feature(<ftag>).
    set(property,<value>);
model.component(<ctag>).geom(<tag>).feature(<ftag>).
    getType(property);
model.component(<ctag>).geom(<tag>).feature(<ftag>).
    importData();
model.component(<ctag>).geom(<tag>).feature(<ftag>).
    setAttribute(attribute,<value>);
model.component(<ctag>).geom(<tag>).feature(<ftag>).
    getAttribute(attribute);
Description
model.component(<ctag>).geom(<tag>).feature().
create(<ftag>,"Import") creates an import feature. When the property filename is set to a filename recognized as a 3D CAD file, the property type is set to cad. The following properties are available.
on | off
on | off
on | off
on | off
on | off
solid | surface | off
on | off
on | off
on | off
source | current
on | off
on | off
all | obj | dom | bnd | edg | pnt | off
Show selections of resulting objects in physics, materials, and so on, or in part instances. obj is not available in a component’s geometry. dom, bnd, and edg are not available in all features.
The file to import is specified by filename, which can have of any of the following formats:
CATIA® V5
PTC® Creo® Parametric™
PTC® Pro/ENGINEER®
Note 1: This format requires a license for the CAD Import Module, Design Module, or a LiveLink product for a CAD package.
Note 2: This format is available only on a supported Windows® operating systems.
Note 3: This format requires, in addition to the CAD Import Module, Design Module, or a LiveLink product for a CAD package, a license for the File Import for CATIA V5 module.
Note 4: This format is available only on the Windows® 8.1, Windows® 10, and Windows® 11 operating systems.
Note 5: Support for the NX file format is available only on a supported Windows® or Linux operating system.
Note 6: Embedded parts in assemblies are not supported. To import such an assembly, first convert the embedded parts to external parts.
The imported geometry objects are represented using the Parasolid geometry kernel, which is the geometry kernel utilized by the CAD Import Module and the LiveLink products for CAD software.
The method
model.geom(gname).feature(<ftag>).importData()
imports the file again, even if the feature is built.
The import can generate object, boundary, edge, and point selections based on material, layer, and color assignments in the 3D CAD file. The following properties are available for working these selections:
on | off
on | off
Tags of cumulative selection to contribute to (or none to not contribute), for object selections in 3D CAD import.
on | off
on | off
Tags of cumulative selection to contribute to (or none to not contribute), for boundary selections in 3D CAD import.
on | off
on | off
Tags of cumulative selection to contribute to (or none to not contribute), for edge selections in 3D CAD import.
on | off
on | off
Tags of cumulative selection to contribute to (or none to not contribute), for point selections in 3D CAD import.
The following attributes are available:
Table 3-25: Valid attributes
on | off
Compatibility
The following property is no longer supported:
solid | face | off
See Also
Export, ExportFinal