JavaScript Application Programming Interface (API) for AutoCAD
ContentsIndexHome
PreviousUpNext
Acad.Editor.getEntity Function

Autodesk.AutoCAD.js

JavaScript
function Acad.Editor.getEntity(options);
Parameters 
Description 
options 
is of type PromptEntityOptions. 

PromptEntityResult.

Use this function to select an entity by specifying a point. Pauses for an 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. This function returns promise pattern result, it has to be call in Promise Pattern with .then(onsuccess, onError) function.

Links
Copyright (c) 2016. All rights reserved.
What do you think about this topic? Send feedback!