Method Acquire
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Acquire(PickIndex, GeoPoint2, double, GeoPoint2?)
The cursor has rested, as AutoCAD acquires a point when the cursor pauses on it: a point acquired before and within the aperture is let go; else, with object snap tracking on, the snap point under the cursor is acquired, and with Extension the end of a line or an arc there; else, with Parallel and a base point, the line under the cursor. A point acquired past the seventh lets the oldest go. A line 0,0 to 100,0 rested on at its end (99.6, 0.3) with Extension gives the end (100, 0) running on along +X.
public bool Acquire(PickIndex index, GeoPoint2 cursor, double aperture, GeoPoint2? basePoint = null)
Parameters
indexPickIndexThe index of the space under the cursor.
cursorGeoPoint2The cursor, in drawing units.
aperturedoubleHow near a point or object must come, in drawing units.
basePointGeoPoint2?The point the rubber band is drawn from, which Parallel needs; null for none.
Returns
- bool
Whether a point was acquired or let go.
Exceptions
- ArgumentNullException
Thrown when the index is null.