std-entsel


Synopsis

(std-entsel <msg>)

Description

STD-ENTSEL is basically the same as the entsel function with the following enhancements:
msg is nicely formatted.

If a gripped pickset contains one entity this one is returned.

If a lisp function given at the prompt returns a point or an entity this one is returned.

Note that in ENTSEL the argument is optional, in STD-ENTSEL not.

Arguments

msg: a string to be displayed as a prompt. If nil "\nSelect object: " is prompted.

Return Value

Same as ENTSEL.

If a keyword is matching, the keyword string.

It returns a list whose first element is the entity name of the chosen object and whose second element is the coordinates (in terms of the current UCS) of the point used to pick the object.

Side Effects

Interrupts the program flow, prints the formatted message and waits for user input if there is no pre-selected pickset or it contains more than one entity

Module

(std-require 'STDINPUT)

Defined in STDINPUT