Exporting Geometry to OASIS (2D)
To export the finalized geometry to a file, enter
model.component(<ctag>).geom(<tag>).exportFinal(<filename>);
where <filename> is a string for a file system path or a file location URI referencing a file version in a Model Manager database.
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 a file format using
model.component(<ctag>).geom(<tag>).export().setType(<format>);
where <format> is “oasis”, the OASIS (*.oas) file format.
Export the file by entering
model.component(<ctag>).geom(<tag>).export(<filename>);
Advanced Settings for OASIS Files
Set curve approximation detail for OASIS export by using
model.component(<ctag>).geom(<tag>).export().setOasisApproxDetail(<detail>);
where <detail> is String set to graphics (default), coarse, normal, fine.
Get curve approximation detail for OASIS export by using
model.component(<ctag>).geom(<tag>).export().getOasisApproxDetail();
The method returns a String.
Get the Work plane column in Layers table for Oasis export in 3D (read only) using
model.component(<ctag>).geom(<tag>).export().getLayerWorkPlanes();
The method returns a String[].
Set the Layer number for a work plane in Layers table for OASIS export in 3D using
model.component(<ctag>).geom(<tag>).export().setLayerNumber(<index>,<layer>);
where <index> is the index number of the row in the table and <layer> is the Layer number you want to assign to that row.
Get the Layer number column in Layers table for OASIS export in 3D using
model.component(<ctag>).geom(<tag>).export().getLayerNumbers();
The method returns an int[] value.
Set the Layer name for a work plane in Layers table for OASIS export in 3D using
model.component(<ctag>).geom(<tag>).export().setLayerName(<index>,<name>);
where <index> is the index number of the row in the table and <name> is a String of the Layer name you want to assign to that row.
Get the Layer name column in Layers table for OASIS export in 3D using
model.component(<ctag>).geom(<tag>).export().getLayerNames();
The method returns a String[].