Export

The export feature allows exporting objects from the current study to an external file. The following sections show the different ways to export objects.

Export PartSet

To export the full study in SHAPER native format (*.shaper) select in the Main Menu File -> Export -> Part Set… item. The Export file dialog will be opened:

../_images/ExportNativeFileDlg.png

Dialog box for export to SHAPER native format

Specify file name and press Save button to export the file. Cancel button cancels the operation.

Export Part

It allows to export the specified results including the sequence of all operations which affect the selected objects. To export results in binary format (*.shaperpart) select in the Main Menu File -> Export -> Part… item.

The following property panel will be opened:

../_images/ExportPart_panel.png

Export Part property panel

The file name and path can be defined in Export file field by direct input or browsing with ‘…’ button, which opens Export file dialog box:

../_images/ExportPartFileDlg.png

Dialog box to export part of the model

Selection list in the property panel contains a list of exported objects which can be selected in a viewer or object browser. In case of the list is empty, all active results in the current Part will be exported. If the PartSet is active, only results (construction elements) of this PartSet may be selected for the export, but not results of Parts.

Note: It is forbidden to export features that include references to external elements other than default elements (origin or main axes and planes).

Apply button exports the file.

Cancel button cancels the operation.

TUI Command:

model.exportPart(Part_doc, FileNameString, ObjectsList)
Parameters:
  • part – The current part object
  • string – The file name
  • list – A list of exporting objects, if necessary

Result

The Result of operation is an exported file.

See Also a sample TUI Script of Export File operation.

Export to CAD format

It is possible to export objects to files in the following CAD-neutral formats: BREP, STEP, IGES, XAO. To export objects to a file select in the Main Menu File -> Export -> To CAD formats… item.

The following property panel will be opened:

../_images/Export_panel.png

Export property panel

In this panel, it is necessary to select desirable format of export file. It can be ‘BREP, STEP, IGES’ or ‘XAO’. In case of first choice the format of exported file will be defined according to file extension. The file name and path can be defined in Export file field by direct input or browsing with ‘…’ button, which opens Export file dialog box:

../_images/ExportFileDlg.png

Dialog box tp export in CAD-neutral format

Selection list in the property panel contains a list of exported objects which can be selected in a viewer or object browser.

Apply button exports the file.

Cancel button cancels the operation.

TUI Command:

model.exportToFile(Part_doc, FileNameString, ObjectsList)
Parameters:
  • part – The current part object
  • string – The file name
  • list – A list of exporting objects
model.exportToXAO(Part_doc, FileNameString[, ObjectsList, Author, GeometryName])
Parameters:
  • part – The current part object
  • string – The file name
  • list – A list of exporting objects, if necessary
  • string – The name of the author
  • string – The name for the shape processed in GEOMETRY module

Result

The Result of operation is an exported file.

See Also a sample TUI Script of Export File operation.