ExportManager.createSTEPExportOptions Method

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

Description

Creates an STEPExportOptions object that's used to export a design in STEP format. Creation of the STEPExportOptions object does not perform the export. You must pass this object to the ExportManager.execute method to perform the export. The STEPExportOptions supports any available options when exporting to STEP format.

Syntax

"exportManager_var" is a variable referencing an ExportManager object.

# Uses no optional arguments.
returnValue = exportManager_var.createSTEPExportOptions(filename)

# Uses optional arguments.
returnValue = exportManager_var.createSTEPExportOptions(filename, geometry)
"exportManager_var" is a variable referencing an ExportManager object.

#include <Fusion/Fusion/ExportManager.h>

// Uses no optional arguments.
returnValue = exportManager_var->createSTEPExportOptions(filename);

// Uses optional arguments.
returnValue = exportManager_var->createSTEPExportOptions(filename, geometry);
"exportManager_var" is a variable referencing an ExportManager object.

// Uses no optional arguments.
returnValue = exportManager_var.createSTEPExportOptions(filename);

// Uses Optional arguments.
returnValue = exportManager_var.createSTEPExportOptions(filename, geometry);

Return Value

Type Description
STEPExportOptions The created STEPExportOptions object or null if the creation failed.

Parameters

Name Type Description
filename string The filename of the STEP file to be created.
geometry Base The geometry to export. Valid geometry for this is currently a Component object. This argument is optional and if not specified, it results in the root component and it entire contents being exported.

This is an optional argument whose default value is null.

Samples

Name Description
ExportManager API Sample

Demonstrates how to export f3d to different formats.

Before running: Run in the DESIGN workspace from Scripts and Add-Ins (Python, C++, or TypeScript), unless the script states otherwise.

The script exports the active design to external formats.

Export to other formats API Sample

Demonstrates exporting the active design to IGES, STEP, SAT, SMT, F3D, and STL formats.

Before running: Have a design open in the DESIGN workspace. Run the script from Scripts and Add-Ins. It writes translated files to a temporary directory and shows that path 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 is 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.

Version

Introduced in version January 2015