Drawing.exportManager Property

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

Description

Returns the DrawingExportManager for this drawing. You use the ExportManager to export the drawing in various formats.

Syntax

"drawing_var" is a variable referencing a Drawing object.
# Get the value of the property.
propertyValue = drawing_var.exportManager
"drawing_var" Is a variable referencing a Drawing Object.
#include <Drawing/Drawing/Drawing.h>

// Get the value of the property.
Ptr<DrawingExportManager> propertyValue = drawing_var->exportManager();
"drawing_var" Is a variable referencing a Drawing Object.
// Get the value of the property.
propertyValue = drawing_var.exportManager;

Property Value

This is a read only property whose value is a DrawingExportManager.

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