Function Entry: GETCORNER

← Prev | ↑ Chapter | Next → | Index | Symbols

Function Entry: GETCORNER

Name

getcorner

Class

Function

Syntax

(getcorner pt [msg])

Arguments and Values

  • pt: first corner point
  • msg: optional prompt string

Autodesk documents pt as a 2D or 3D point.

Description

Prompts the user for the opposite corner of a rectangular area.

Return Values

Point list or nil.

Side Effects

  • prompts the user
  • consumes interactive input

Availability

  • AutoCAD 2026: documented (per Autodesk reference page).
  • BricsCAD V26: presumed compatible (no contradicting page found).
  • Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.

Notes

  • Autodesk documents that getcorner obtains the opposite corner of a box.
  • Autodesk documents that it honors keywords established by initget.

clautolisp

clautolisp implementation deviation — not part of the normative specification above. AutoCAD and BricsCAD collect this corner through the graphical drawing editor, rubber-banding a box from pt under pointer control (implicitly a GUI). clautolisp has no drawing editor — it writes the prompt to the standard output and reads the answer as one line of text from the standard input (a TUI interaction). Interactively this is the REPL's terminal; for scripted, deterministic runs it is the file attached with --mock-input. A live CAD host, when connected, restores the native GUI behavior. On the TUI the opposite corner is typed as whitespace-separated coordinates — X Y or X Y Z (Z defaults to 0.0); the base point pt is accepted but no box is rubber-banded. Invalid input returns nil rather than re-prompting.