Share

Acad.Editor.executeCommand Function

File

Autodesk.AutoCAD.js

Syntax

JavaScript

function Acad.Editor.executeCommand(cmdString);

Group

ACAD Namespace

Parameters

Parameter Description
cmdString AutoCAD command and sequence of options and values as string arguments

Returns

This function returns a promise pattern result, it has to be called as a Promise Pattern with .then(onSuccess, onError) function.

Description

This method accepts a variable number of string arguments and it waits for the command operation to complete.

Exception

Throws a TypeError object.

ACAD Namespace

Was this information helpful?