DrawingExportOptions.filename Property

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

Description

Gets and sets the filename that the exported file will be written to.

Syntax

"drawingExportOptions_var" is a variable referencing a DrawingExportOptions object.
# Get the value of the property.
propertyValue = drawingExportOptions_var.filename

# Set the value of the property.
drawingExportOptions_var.filename = propertyValue
"drawingExportOptions_var" Is a variable referencing a DrawingExportOptions Object.
#include <Drawing/Drawing/DrawingExportOptions.h>

// Get the value of the property.
string propertyValue = drawingExportOptions_var->filename();

// Set the value of the property, where value_var is a string.
bool returnValue = drawingExportOptions_var->filename(value_var);
"drawingExportOptions_var" Is a variable referencing a DrawingExportOptions Object.
// Get the value of the property.
propertyValue = drawingExportOptions_var.filename;

// Set the value of the property.
drawingExportOptions_var.filename = propertyValue;

Property Value

This is a read/write property whose value is a string.

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