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>);
where <objnames> is a string array of object names. Then export them 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 31.0.
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”).
4 Use model.geom(<tag>).export().setSTLFormat(<format>) to specify the STL file format (“binary” or “text”).