CadInput
from OpenCAD2D import CadInput
class CadInput(System.Object) ยท CadInput in the .NET reference
The answer a command got to its last prompt.
Properties and fields
Control
@property
def Control(self) -> bool
Gets whether Ctrl was held as the point, distance or angle was picked on the canvas, as ARC and PLINE take a point picked with Ctrl held to draw the arc the other way round, and a grip edit takes its first point so picked as Copy; false for an answer typed and for every other answer.
Handles
@property
def Handles(self) -> System.Collections.Generic.IReadOnlyList[str]
Gets the handles of a selection, in ordinal order, or of the one object picked.
IsNone
@property
def IsNone(self) -> bool
Gets whether the answer is Enter with nothing typed.
IsPoint
@property
def IsPoint(self) -> bool
Gets whether the answer is a point.
Kind
@property
def Kind(self) -> CadInputKind
Gets what kind of answer it is.
Number
@property
def Number(self) -> float
Gets the number of a distance, an angle (in radians) or a whole number.
Point
@property
def Point(self) -> GeoPoint2
Gets the point of a point answer, the point picked for a distance or an angle, and the point one object was picked at on the canvas.
Shift
@property
def Shift(self) -> bool
Gets whether Shift was held as the one object was picked on the canvas, as TRIM takes a Shift-pick to extend; false for every other answer.
Text
@property
def Text(self) -> str
Gets the keyword of a keyword answer, as the prompt writes it, or the text of a text answer.
Methods
Is
def Is(self, keyword: str) -> bool
Gets whether the answer is a keyword, either case.
ToString
def ToString(self) -> str