Table of Contents

Method FindRefEditLevels

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

FindRefEditLevels(string, GeoPoint2?, double)

The references a point on a reference of the drawing can mean, the outermost first: the reference itself, then each reference nested in its block whose objects reach the point, and each nested in those, as the Reference Edit dialog lists them. A reference with nothing nested at the point gives its own level alone.

public IReadOnlyList<CadRefEditLevel> FindRefEditLevels(string handle, GeoPoint2? at, double aperture)

Parameters

handle string

The handle of the reference in a space.

at GeoPoint2?

The point it was picked at, in the drawing; null for none, which gives no nested level.

aperture double

How far from an object's box a point still reaches it.

Returns

IReadOnlyList<CadRefEditLevel>

The levels, none where the handle is not a block reference of a space.