SchematicDocument.saveAs Method

Parent Object: SchematicDocument

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::electron" and the header file is <Electron/SchematicDocument/SchematicDocument.h>

Description

Performs a Save As on this document. This saves the currently open document to the specified location and this document becomes the saved document. If this is a new document that has never been saved you must use the SaveAs method in order to specify the location and name. You can determine if the document has been saved by checking the value of the isSaved property.

Saving a document is not supported within any of the Command related events. When a command is running, a transaction is open, and saving a document cannot be transacted and, as a result, cannot be contained within a command transaction.

Syntax

"schematicDocument_var" is a variable referencing a SchematicDocument object.

returnValue = schematicDocument_var.saveAs(name, dataFolder, description, tag)
"schematicDocument_var" is a variable referencing a SchematicDocument object.

#include <Electron/SchematicDocument/SchematicDocument.h>

returnValue = schematicDocument_var->saveAs(name, dataFolder, description, tag);
"schematicDocument_var" is a variable referencing a SchematicDocument object.

returnValue = schematicDocument_var.saveAs(name, dataFolder, description, tag);

Return Value

Type Description
boolean Returns true if the save as was successful.

Parameters

Name Type Description
name string The name to use for this document. If this is an empty string, Fusion will use the default name assigned when the document was created.
dataFolder DataFolder The data folder to save this document to.
description string The description string of the document. This can be an empty string.
tag string The tag string of the document. This can be an empty string.

Version

Introduced in version September 2026