CadGrip
from OpenCAD2D import CadGrip
class CadGrip(System.Object) ยท CadGrip in the .NET reference
One grip of an entity: where it is drawn and what dragging it does.
Properties and fields
Custom
@property
def Custom(self) -> DxfDynamicBlockGrip | None
Gets the custom grip of a dynamic block's parameter the grip stands for, what it drives and where its parameter measures from; null for a grip of any other kind.
Direction
@property
def Direction(self) -> GeoVector2
Gets the way a custom grip's arrow points, in the plan: along a linear parameter, across a flip parameter's line; the way a table's stretch or breaking grip points, along the table, down it, or both; the way an MTEXT's triangle grip points, along it, down it, or into a corner (the two at once); the way the bar of a polyline's segment middle lies, a unit vector along the chord (also the tangent at the middle of an arc segment); nought for a grip of no arrow.
Index
@property
def Index(self) -> int
Gets its place in the entity's list of grips, which CadGrips.Drag takes.
Kind
@property
def Kind(self) -> CadGripKind
Gets what dragging it does.
Point
@property
def Point(self) -> GeoPoint2
Gets where it is drawn, in drawing units.
Methods
ToString
def ToString(self) -> str