ExportManager.execute Method

Parent Object: ExportManager
Defined in namespace "adsk::fusion" and the header file is <Fusion/Fusion/ExportManager.h>

Description

Executes the export operation to create the file in the format specified by the provided ExportOptions object.

Syntax

"exportManager_var" is a variable referencing an ExportManager object.
returnValue = exportManager_var.execute(exportOptions)
"exportManager_var" is a variable referencing an ExportManager object.

#include <Fusion/Fusion/ExportManager.h>

returnValue = exportManager_var->execute(exportOptions);

Return Value

Type Description
boolean Returns true if the export was successful.

Parameters

Name Type Description
exportOptions ExportOptions An ExportOptions object that is created using one of the create methods on the ExportManager object. This defines the type of file and any available options supported for that file type.

Samples

Name Description
ExportManager API Sample Demonstrates how to export f3d to different formats.
Export to other formats API Sample Demonstrates exporting the active design to IGES, STEP, SAT, SMT, F3D and STL formats. To run this sample, have a design open and run the script. It will write out the translated files to a temp directory, which will it show in a message box.
Set parameters from a csv file and export to STEP Reads data from a .csv file and sets user parameters in the model and then exports the model to STEP. When setting parameters be aware that this sample is setting user parameters. It's also possible to set model parameters but that's not demonstrated here. Also when accessing parameters, it is case sensitive so the names you use in your program much exactly match the names in the model.
STLExport API Sample Demonstrates how to export f3d to STL format.

Version

Introduced in version January 2015