Method GetHandlesIn
GetHandlesIn(string, string, IEnumerable<GeoPoint2>, double)
Asks the app for the handles of the entities of a space that lie in an area, whole: unlike SelectWindow(GeoPoint2, GeoPoint2) it is
not held to the view of the window, so a drawing gives the same handles with a window or without. A box from (0, 0) to
(100, 50) in window takes a line from (10, 10) to (20, 10) and leaves a circle of radius 30 about (50, 25), which
crossing takes. The selection of the drawing is not changed.
public IReadOnlyList<string> GetHandlesIn(string layout, string how, IEnumerable<GeoPoint2> points, double tolerance)
Parameters
layoutstringThe name of a layout, or null or empty for model space.
howstringwindoworcrossing(two corners),fence(two points or more),wpolygonorcpolygon(three or more), orpoint(one point and a tolerance).pointsIEnumerable<GeoPoint2>The points.
tolerancedoubleFor
point, how far from the point an entity may pass, above nought; 0 for the others.
Returns
- IReadOnlyList<string>
The handles, in the order the space draws its entities; for a point, the one picked first leading.
Exceptions
- ArgumentNullException
Thrown when the selection or the points are null.
- CadRemoteException
Thrown when the drawing is closed, has no layout of that name, or the points do not fit the selection.