Table of Contents

Method TakeFirstObject

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

TakeFirstObject(CadSnapResult)

Picks the object an ExtendedApparentIntersection offers as the first of two, as a click on it does in AutoCAD: the point is not taken, and the object under the cursor after gives where the two would cross, run on. Two lines 0,0 to 10,0 and 20,5 to 20,10, the first picked, give (20, 0) from anywhere on the second.

public bool TakeFirstObject(CadSnapResult result)

Parameters

result CadSnapResult

The snap the click was given.

Returns

bool

Whether the object was picked: false for any other snap.