Table of Contents

CadSnapKind

from OpenCAD2D import CadSnapKind

class CadSnapKind(System.Enum) ยท CadSnapKind in the .NET reference

Which snap gave a point.

Values

ApparentIntersection

.NET

ApparentIntersection: ClassVar[CadSnapKind]

Where two objects would cross if both ran on (APParent intersection).

Center

.NET

Center: ClassVar[CadSnapKind]

A centre.

Custom

.NET

Custom: ClassVar[CadSnapKind]

A point a plugin's object snap gave; CadSnapResult.CustomSnap says which snap.

Endpoint

.NET

Endpoint: ClassVar[CadSnapKind]

An endpoint.

ExtendedApparentIntersection

.NET

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

.NET

Extension: ClassVar[CadSnapKind]

A point on the run of a line or an arc beyond an acquired end (EXTension).

GeometricCenter

.NET

GeometricCenter: ClassVar[CadSnapKind]

The centroid of a closed polyline (GCEn).

Grid

.NET

Grid: ClassVar[CadSnapKind]

A point of the snap grid.

Insertion

.NET

Insertion: ClassVar[CadSnapKind]

The insertion point of a block, a text or an attribute (INSertion).

Intersection

.NET

Intersection: ClassVar[CadSnapKind]

An intersection.

Midpoint

.NET

Midpoint: ClassVar[CadSnapKind]

A midpoint.

Nearest

.NET

Nearest: ClassVar[CadSnapKind]

The nearest point of an object.

Node

.NET

Node: ClassVar[CadSnapKind]

A POINT object (NODe).

Ortho

.NET

Ortho: ClassVar[CadSnapKind]

The cursor held level or upright from the base point (ORTHO).

Parallel

.NET

Parallel: ClassVar[CadSnapKind]

A point on the line through the base point parallel to an acquired line (PARallel).

Perpendicular

.NET

Perpendicular: ClassVar[CadSnapKind]

A perpendicular foot.

Polar

.NET

Polar: ClassVar[CadSnapKind]

The cursor held on a polar angle from the base point (POLAR).

Quadrant

.NET

Quadrant: ClassVar[CadSnapKind]

A quadrant.

Tangent

.NET

Tangent: ClassVar[CadSnapKind]

A tangent point.

Tracking

.NET

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