CadSnapKind
from OpenCAD2D import CadSnapKind
class CadSnapKind(System.Enum) ยท CadSnapKind in the .NET reference
Which snap gave a point.
Values
ApparentIntersection
ApparentIntersection: ClassVar[CadSnapKind]
Where two objects would cross if both ran on (APParent intersection).
Center
Center: ClassVar[CadSnapKind]
A centre.
Custom
Custom: ClassVar[CadSnapKind]
A point a plugin's object snap gave; CadSnapResult.CustomSnap says which snap.
Endpoint
Endpoint: ClassVar[CadSnapKind]
An endpoint.
ExtendedApparentIntersection
ExtendedApparentIntersection: ClassVar[CadSnapKind]
The object under the cursor offered as the first of an apparent intersection: a click picks it, as AutoCAD's Extended Apparent Intersection does, and takes no point (ObjectSnap.TakeFirstObject).
Extension
Extension: ClassVar[CadSnapKind]
A point on the run of a line or an arc beyond an acquired end (EXTension).
GeometricCenter
GeometricCenter: ClassVar[CadSnapKind]
The centroid of a closed polyline (GCEn).
Grid
Grid: ClassVar[CadSnapKind]
A point of the snap grid.
Insertion
Insertion: ClassVar[CadSnapKind]
The insertion point of a block, a text or an attribute (INSertion).
Intersection
Intersection: ClassVar[CadSnapKind]
An intersection.
Midpoint
Midpoint: ClassVar[CadSnapKind]
A midpoint.
Nearest
Nearest: ClassVar[CadSnapKind]
The nearest point of an object.
Node
Node: ClassVar[CadSnapKind]
A POINT object (NODe).
Ortho
Ortho: ClassVar[CadSnapKind]
The cursor held level or upright from the base point (ORTHO).
Parallel
Parallel: ClassVar[CadSnapKind]
A point on the line through the base point parallel to an acquired line (PARallel).
Perpendicular
Perpendicular: ClassVar[CadSnapKind]
A perpendicular foot.
Polar
Polar: ClassVar[CadSnapKind]
The cursor held on a polar angle from the base point (POLAR).
Quadrant
Quadrant: ClassVar[CadSnapKind]
A quadrant.
Tangent
Tangent: ClassVar[CadSnapKind]
A tangent point.
Tracking
Tracking: ClassVar[CadSnapKind]
A point on a tracking line from an acquired point, or where two tracking lines cross (OTRACK).
Constructors
__init__
def __init__(self, value: int) -> None
Operators and Python protocols
__int__
def __int__(self) -> int