Table of Contents

CadToleranceRequest

from OpenCAD2D import CadToleranceRequest

class CadToleranceRequest(System.Object) ยท CadToleranceRequest in the .NET reference

AutoCAD's Geometric Tolerance dialog, as data the TOLERANCE command, LEADER, QLEADER and TEXTEDIT share with the window: two rows, the height of a projected zone, its P, and the datum identifier, every box empty when it opens for a new frame and filled from its words for one edited. OK hands back the words of the frame (CadToleranceRequest.Text); a frame of no words is drawn by none.

Properties and fields

Action

.NET

@property
def Action(self) -> CadDialogAction
@Action.setter
def Action(self, value: CadDialogAction) -> None

Gets or sets what the dialog was closed with: OK draws the frame; Cancel until set.

DatumIdentifier

.NET

@property
def DatumIdentifier(self) -> str
@DatumIdentifier.setter
def DatumIdentifier(self, value: str | None) -> None

Gets or sets the datum identifier, as typed; empty for none.

Document

.NET

@property
def Document(self) -> CadDocument

Gets the document.

Height

.NET

@property
def Height(self) -> str
@Height.setter
def Height(self, value: str | None) -> None

Gets or sets the height of a projected tolerance zone, as typed; empty for none.

ProjectedZone

.NET

@property
def ProjectedZone(self) -> bool
@ProjectedZone.setter
def ProjectedZone(self, value: bool) -> None

Gets or sets whether the projected tolerance zone's P is written after the height.

Rows

.NET

@property
def Rows(self) -> System.Collections.Generic.IReadOnlyList[CadToleranceRow]

Gets the two rows, the first on top.

Text

.NET

@property
def Text(self) -> str

Gets the words of the frame, as group 1 of a TOLERANCE holds them: each row that holds something (the two rows, the height with its P, the datum identifier) a line feed apart; empty where every box is. Both rows of board GeomToleranceFull with a zone 5 high and the identifier D are {\Fgdt;j}%%v{\Fgdt;n}0.1{\Fgdt;m}%%vA%%vB%%vC, {\Fgdt;c}%%v0.05, 5{\Fgdt;p} and D.