CadGdtGlyphs
from OpenCAD2D import CadGdtGlyphs
class CadGdtGlyphs(System.Object) ยท CadGdtGlyphs in the .NET reference
The symbols of geometric dimensioning and tolerancing the presenter draws for the letters of AutoCAD's gdt font, one set for the dialogs and the canvas: each a stroke path in a box 24 by 24, y down, as SVG and WPF read one, with round caps and joins, the arrowheads of the runouts filled, the material conditions a circle with their letter in it. The letter is the one group 1 of a TOLERANCE carries, as {\Fgdt;j} for the position.
Properties and fields
SideBearing
SideBearing: ClassVar[float]
The room AutoCAD 2021 leaves on either side of the ink of most letters of the gdt font, over the text height: 2/21, so that two positions side by side are 3.19 heights wide. The diameter has 1.5/21 either side, and the circular and total runouts 2.25/21 on their right (probe GHTQ2), as the frames of TOLERANCE lay them out.
Methods
FillOf
@staticmethod
def FillOf(code: str) -> str
Gets the path of the filled parts of a symbol, the arrowheads of a runout; empty for one that has none.
Has
@staticmethod
def Has(code: str) -> bool
Gets whether the gdt font letter is one of the symbols drawn here.
InkWidth
@staticmethod
def InkWidth(code: str) -> float
Gets the width of the ink of a symbol in AutoCAD's gdt font, over the text height, as AutoCAD 2021's console measures it alone in an MTEXT 1 high: 1.5 for the position, 1 for the diameter; nought for a letter that is none.
LetterOf
@staticmethod
def LetterOf(code: str) -> str
Gets the letter a symbol holds in its circle, as M for the maximum material condition; null for one that holds none.
NameOf
@staticmethod
def NameOf(code: str) -> str
Gets the name of a symbol, as "Position"; empty for a letter that is none.
StrokeOf
@staticmethod
def StrokeOf(code: str) -> str
Gets the stroke path of a symbol in its box 24 by 24, as SVG writes one; empty for a letter that is none.