Acad.Editor.executeCommandAsync Function
File
Autodesk.AutoCAD.js
Syntax
JavaScript
function Acad.Editor.executeCommandAsync(cmdString);
Group
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 does not wait for the command operation to complete.
It follows a Promise Pattern to receive success and callbacks from native in asynchronous fashion.
Exception
Throws a TypeError
object.