DrawingManager.createDrawing Method

Parent Object: DrawingManager

PreviewThis functionality is provided as a preview of intended future API capabilities. You are encouraged to use it and report any problems or suggestions using the Fusion API and Scripts forum.

Because this is a preview of future functionality, there is the possibility that it will change, which will possibly break any existing programs that use this functionality. Because of that, you should never deliver any programs that use any preview capabilities. For a distributed program, you should wait until it has moved from preview to released state.


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

Description

Creates an drawing document based on the settings defined in the input object.

Syntax

"drawingManager_var" is a variable referencing a DrawingManager object.

returnValue = drawingManager_var.createDrawing(input)
"drawingManager_var" is a variable referencing a DrawingManager object.

#include <Drawing/Drawing/DrawingManager.h>

returnValue = drawingManager_var->createDrawing(input);
"drawingManager_var" is a variable referencing a DrawingManager object.

returnValue = drawingManager_var.createDrawing(input);

Return Value

Type Description
DataFile DataFile of created drawing, or null on failure.

Parameters

Name Type Description
input CreateDrawingInput A CreateDrawingInput object that was created using the createDrawingInput method on the DrawingManager object.

Version

Introduced in version July 2026