Share

Acad.Editor.getDistance Function

File

Autodesk.AutoCAD.js

Syntax

JavaScript

function Acad.Editor.getDistance(options);

Group

ACAD Namespace

Parameters

Parameter Description
options is of type Acad.PromptDistanceOptions.

Returns

A Acad.PromptDoubleResult 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 function to get user input for a linear distance.

Exception

Throws a TypeError object.

ACAD Namespace

Was this information helpful?