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
auto | on | off
Include the body name in the object name. This property is available only when filename is set to a STEP file extension. Use auto to include the body name only for multibody parts.
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:
.sat, .sab
.dwg, .dxf
CATIA® V5
.CATPart, .CATProduct
.igs, .iges
.ipt, .iam
.x_t, .x_b
.prt, .asm
.prt, .asm
.sldprt, .sldasm
.step, .stp
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 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: Support for the NX file format is available only on supported Windows® and Linux operating systems.
Note 5: 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