entsel


(entsel  [ prompt ] )

This function asks the user to select a single entity.

Arguments

prompt  (optional) message to be shown; if omitted, the standard message is shown

Return

DottedPair (ENAME . POINT) is returned, or NIL is selection failed

Example

(entsel "\n* Select the Pipe : ")
(<EntityName ...> . (10.0 0.0 0.0))

Remarks

only main entities can be selected;
you can retrieve the entity name by (car), and the pick point by (cdr)



©  Bricsys NV. All rights reserved.