DrawingExportManager.execute Method

Parent Object: DrawingExportManager
Defined in namespace "adsk::drawing" and the header file is <Drawing/Drawing/DrawingExportManager.h>

Description

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

Syntax

"drawingExportManager_var" is a variable referencing a DrawingExportManager object.

returnValue = drawingExportManager_var.execute(exportOptions)
"drawingExportManager_var" is a variable referencing a DrawingExportManager object.

#include <Drawing/Drawing/DrawingExportManager.h>

returnValue = drawingExportManager_var->execute(exportOptions);
"drawingExportManager_var" is a variable referencing a DrawingExportManager object.

returnValue = drawingExportManager_var.execute(exportOptions);

Return Value

Type Description
boolean Returns true if the export was successful.

Parameters

Name Type Description
exportOptions DrawingExportOptions A DrawingExportOptions object that is created using one of the create methods on the DrawingExportManager object. This defines the type of export and defines the options supported for that file type.

Samples

Name Description
Export PDF Sample

Demonstrates exporting a Fusion drawing to PDF using Drawing.exportManager, DrawingExportManager.createPDFExportOptions, and execute. Configures PDFExportOptions for sheet selection (all, range, or current), line weights, and output filename.

Before running: A drawing document must be the active document (not a design). Open or create a drawing with at least one sheet, then run the script from Scripts and Add-Ins. If no drawing is active, the sample reports that a drawing document is required.

Version

Introduced in version December 2020