Table of Contents

Method FindRefEditObject

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

FindRefEditObject(IReadOnlyList<string>, GeoPoint2, double)

The object of the block a reference chain edits that a point reaches, as REFEDIT's "Prompt to select nested objects" takes one, the block's objects not being picked in the drawing: the one whose own line lies nearest the point, where it is within the aperture of it (a line, arc, circle, polyline or spline, put where the reference draws it, by its distance to the point, so that a point in the middle of a circle or in the box of a slanting line reaches neither); an object of no line of its own (a text, a hatch, a reference) by its box, put where the reference draws it, as near as the point is to the box. A tie goes to the object whose box is the smaller, and then to the first of the block; null for none.

public string FindRefEditObject(IReadOnlyList<string> chain, GeoPoint2 at, double aperture)

Parameters

chain IReadOnlyList<string>

The handles of the references, outermost first, as Chain has them.

at GeoPoint2

The point, in the drawing.

aperture double

How far from an object the point still reaches it.

Returns

string

The handle of the object of the block, or null.