Library.executeCommands Method

Parent Object: Library

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/Library/Library.h>

Description

Executes a batch of native Electronics command strings against this drawing as a single operation.

Syntax

"library_var" is a variable referencing a Library object.

returnValue = library_var.executeCommands(input)
"library_var" is a variable referencing a Library object.

#include <Electron/Library/Library.h>

returnValue = library_var->executeCommands(input);
"library_var" is a variable referencing a Library object.

returnValue = library_var.executeCommands(input);

Return Value

Type Description
EcadCommandBatchResult The result of the batch: whether it succeeded, whether its changes were discarded, how many commands ran, and the flat list of messages every command produced.

Parameters

Name Type Description
input EcadCommandInput The commands to execute and the stop/rollback policy to apply.

Version

Introduced in version November 2026