getpoint

(getpoint [point] [prompt])

The getpoint function prompts the user to enter a point. The point identified (in the current CCS) is returned.

Arguments

point

The argument point can serve as the base point in the current CCS for the point specification. To visualize the point specification in relation to a given base point, the function draws a "rubber band" from the base point to the current cursor position.

prompt

If the optional argument prompt contains a valid string, it is displayed in the Command Window; otherwise, no prompt is displayed.

The function attempts to interpret keyboard input as the point specification.

Return Value

The function returns the point specified by the user.

Examples

: (getpoint)

: (getpoint '(0 0) "To point")

: (getpoint "Point: ")

Related Functions

initget