Share

Acad.Editor.cancelCommand Function

File

Autodesk.AutoCAD.js

Syntax

JavaScript

function Acad.Editor.cancelCommand();

Group

ACAD Namespace

Returns

Acad.ErrorStatus enum in the success callback function.

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

Description

Use this method to cancel the last command.

Exception

Throws an Error object.

ACAD Namespace

Was this information helpful?