DrawingExportManager.createPDFExportOptions Method

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

Description

Defines the various settings for a STEP export.

Syntax

"drawingExportManager_var" is a variable referencing a DrawingExportManager object.

returnValue = drawingExportManager_var.createPDFExportOptions(filename)
"drawingExportManager_var" is a variable referencing a DrawingExportManager object.

#include <Drawing/Drawing/DrawingExportManager.h>

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

returnValue = drawingExportManager_var.createPDFExportOptions(filename);

Return Value

Type Description
PDFExportOptions Returns a PDFExportOptions object if successful and null if it should fail.

Parameters

Name Type Description
filename string The name of the file to export to. Use settings on the returned PDFExportOptions object to change other settings.

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