Table of Contents

Method GetHandlesIn

Namespace
OpenCAD2D.Remote
Assembly
OpenCAD2D.Remote.dll

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

layout string

The name of a layout, or null or empty for model space.

how string

window or crossing (two corners), fence (two points or more), wpolygon or cpolygon (three or more), or point (one point and a tolerance).

points IEnumerable<GeoPoint2>

The points.

tolerance double

For 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.