entsel

(entsel [prompt])

Use the entsel function to let the user select a single entity.

The user is prompted to select or identify a single drawing entity.

Using entsel with no argument displays the standard "Specify entity: " prompt.

Return Value

The function returns a list containing the entity name of the drawing entity and the pick point coordinates (of the current CCS).

The function returns nil if the drawing is empty.

Examples

: (entsel)

Specify entity:

(<Ename: 44dfcf6c> (5.7398 6.3448 0.0000))

: (entsel "Select an arc or a circle: ")

Select an arc or a circle:

(<Ename: 44dfcf6c> (5.2217 7.1699 0.0000))