ExportManager.createOBJExportOptions Method

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

Description

Creates an OBJExportOptions object that's used to export a design in OBJ format. Creation of the OBJExportOptions object does not perform the export. You must pass this object to the ExportManager.execute method to perform the export.

Syntax

"exportManager_var" is a variable referencing an ExportManager object.
# Uses no optional arguments.
returnValue = exportManager_var.createOBJExportOptions(geometry)

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

#include <Fusion/Fusion/ExportManager.h>

// Uses no optional arguments.
returnValue = exportManager_var->createOBJExportOptions(geometry);

// Uses optional arguments.
returnValue = exportManager_var->createOBJExportOptions(geometry, filename);

Return Value

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

Parameters

Name Type Description
geometry Base The geometry to export. This can be a BRepBody, Occurrence, or Component object.
filename string The filename of the OBJ file to be created. This is optional and can be left out if the mesh will be opened in a mesh editor.

This is an optional argument whose default value is "".

Version

Introduced in version October 2022