CadSnapResult
from OpenCAD2D import CadSnapResult
class CadSnapResult(System.Object) ยท CadSnapResult in the .NET reference
The point a snap gave, which snap gave it and, for an object snap, the object.
Properties and fields
CustomSnap
@property
def CustomSnap(self) -> CadCustomSnap | None
Gets the plugin's object snap that gave the point, for CadSnapKind.Custom; null for every other kind.
Handle
@property
def Handle(self) -> str | None
Gets the handle of the object snapped to, or null for a grid, ortho, polar or no snap; for a snap on a layout through a viewport, the object of model space the viewport shows, CadSnapResult.Point being where the viewport shows the point.
Kind
@property
def Kind(self) -> CadSnapKind
Gets which snap gave the point; CadSnapKind.None for the cursor itself.
Point
@property
def Point(self) -> GeoPoint2
Gets the point, in drawing units.
Tracks
@property
def Tracks(self) -> System.Collections.Generic.IReadOnlyList[System.Collections.Generic.IReadOnlyList[GeoPoint2]]
Gets the dotted paths drawn to the point, each a chain of points in drawing units that ends at the point: from the acquired end along an extension, from the base point along a parallel, from each acquired point along its tracking line; none for any other snap. The extension of an arc runs round its circle in steps of 5 degrees at most.
Methods
ToString
def ToString(self) -> str