Acad.Editor.getEntity Function
File
Autodesk.AutoCAD.js
Syntax
JavaScript
function Acad.Editor.getEntity(options);
Group
Parameters
Parameter | Description |
---|---|
options | is of type Acad.PromptEntityOptions. |
Returns
A Acad.PromptEntityResult 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 select an entity by specifying a point. Pauses for user input and returns both an entity name and the point that is used to select the entity. GetEntity()
does not returns the name of non-graphical objects.
Exception
Throws a TypeError
object.