getcorner

(getcorner point [prompt])

The getcorner function prompts the user to enter the opposite corner of a rectangle.

Arguments

The argument point specifies the base point of the rectangle in coordinates of the current custom coordinate system (CCS). To visualize the corner specification, the function draws a box from the base point to the current cursor position.

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

Return Value

The function returns a valid point specified by the user in coordinates of the current custom coordinate system (CCS).

The function attempts to interpret keyboard input as point specification.

Example

(getcorner '(10 10) "Second point: ")

Related Functions

getpoint, initget