CadStyleMeasure
from OpenCAD2D import CadStyleMeasure
class CadStyleMeasure(System.Object) ยท CadStyleMeasure in the .NET reference
A distance (or an angle) a field of a style dialog sets, measured on the sample so that the preview can show it as a callout: the two points it runs between in the sample's drawing coordinates, the variable and the value as the field shows it. The sample's own scale is in the points: at DIMSCALE 25 the measure of DIMEXE 1.25 is 31.25 long, its label still reads 1.25.
Properties and fields
Angle
@property
def Angle(self) -> float | None
Gets the angle in radians of an angle callout, an arc about CadStyleMeasure.From of the radius |To - From| that starts towards CadStyleMeasure.To and runs through this angle, counter-clockwise where it is above nought; null for a distance.
From
@property
def From(self) -> GeoPoint2
Gets where it starts, in the drawing coordinates of the sample; for a point alone (an attachment) where the point is, CadStyleMeasure.To the same.
Key
@property
def Key(self) -> str
Gets the key of the field it belongs to, as DIMEXE.
Label
@property
def Label(self) -> str
Gets the label as the preview writes it: the variable and the value as the field shows it, as DIMEXE = 1.25.
To
@property
def To(self) -> GeoPoint2
Gets where it ends, in the drawing coordinates of the sample.
Methods
ToString
def ToString(self) -> str