Exporting Geometry to File
To export the finalized geometry to a file, enter
model.component(<ctag>).geom(<tag>).exportFinal(<filename>);
where <filename> is a string.
To export selected geometry objects to a file, first select the objects to export using
model.component(<ctag>).geom(<tag>).export().selection().set(<objnames>);
Set the file format using
model.component(<ctag>).geom(<tag>).export().setType(<format>);
where <format> can be set to any of the type values in Table 3-26.
Check which file format is set using
String formatType = model.component(<ctag>).geom(<tag>).export().getType();
Export the file by entering
model.component(<ctag>).geom(<tag>).export(<filename>);
The file can be of any of the following formats:
Table 3-26: Valid File Formats
.x_b, .xmt_bin
.x_t, .xmt_txt
.igs, .iges
.step, .stp
1 This format requires a license for the CAD Import Module, Design Module, or a LiveLink product for a CAD package.
2 The exported Parasolid file format version is 34.
3 Use model.geom(<tag>).export().setAcisVersion(<version>) to specify the ACIS file format version (“4.0”, “7.0”; or the default “2016 1.0”).