Method StartWindow
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
StartWindow(GeoPoint2)
Starts the implied window, as a click on nothing at the Command prompt starts AutoCAD's: the command line asks "Specify opposite corner or [Fence/WPolygon/CPolygon]:", a point given as a click or typed ends the box, left to right a window and right to left a crossing, and the objects it takes are selected. F, WP or CP turns the box into a fence or a polygon whose first point is the corner, asking "Specify next fence point or [Undo]:" or "Specify endpoint of line or [Undo]:" until Enter. A box from (0, 0) with the opposite corner typed 110,110 selects the lines wholly inside it. The history keeps the prompt after "Command:", as AutoCAD's does, and Esc ends it with "Cancel". The command run last stays the one Enter runs again.
At a command's "Select objects:" (or "Remove objects:") the same window is asked inside the command, as AutoCAD asks it there: the history keeps "Select objects: Specify opposite corner or [Fence/WPolygon/CPolygon]: 110,60", what the box, fence or polygon takes is gathered for the command (or taken out), and "Select objects:" is asked again. ERASE with a box from (-10, -10) to (110, 60) over two lines of 100 and 50 gathers both, "2 found". Esc there cancels the command.
public bool StartWindow(GeoPoint2 corner)
Parameters
cornerGeoPoint2The first corner, in the coordinates of the space.
Returns
- bool
False, starting nothing, where a command is running and asks no objects, or asks the points of one of the options of "Select objects:".