Table of Contents

Method FindRefEditObjects

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

FindRefEditObjects(IReadOnlyList<string>, GeoPoint2, GeoPoint2)

The objects of the block a reference chain edits that a window or a crossing takes, as REFEDIT's "Prompt to select nested objects" takes them when the point picked reaches no object and a second corner is given: the corners drawn from left to right make a window, taking the objects whose box, put where the reference draws it, lies wholly inside; from right to left a crossing, taking those whose box meets it.

public IReadOnlyList<string> FindRefEditObjects(IReadOnlyList<string> chain, GeoPoint2 first, GeoPoint2 opposite)

Parameters

chain IReadOnlyList<string>

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

first GeoPoint2

The first corner, in the drawing.

opposite GeoPoint2

The opposite corner, in the drawing.

Returns

IReadOnlyList<string>

The handles of the objects, in the order of the block; none for a chain that does not name a reference.