Method Pick
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Pick(double, double, double)
Gets the entities whose drawing lies within a distance of a point, in the order AutoCAD picks them. The distance is
in drawing units, so a caller working in pixels divides by the zoom first. While the drawing's SORTENTS holds its bit
1 for object selection, as AutoCAD's default 127 does, the one drawn on top (last in the draw order) comes first,
however much nearer the others lie; else the one drawn first. AutoCAD 2021's (ssget pt) on two level lines,
the one drawn later 0.9 of the pickbox off the point and the other through it, picks the later one, and under
SORTENTS 0 the one drawn first. A line through the point and one drawn on top of it 2.7 off, with a tolerance of 3,
come back the one on top first.
public IReadOnlyList<string> Pick(double x, double y, double tolerance)
Parameters
Returns
- IReadOnlyList<string>
The handles, the one AutoCAD picks first.