Table of Contents

Class CadGdtGlyphs

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

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.

public static class CadGdtGlyphs
Inheritance
CadGdtGlyphs
Inherited Members

Remarks

The canvas scales the box to four thirds of the text height, so that the ink is the text height tall, and centres it in the room AutoCAD 2021 gives the letter in the gdt font (InkWidth(char), measured in its console: the position 1.5 times the text height, the diameter 1, the flatness 2.071).

Fields

SideBearing

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(char)

Gets the path of the filled parts of a symbol, the arrowheads of a runout; empty for one that has none.

Has(char)

Gets whether the gdt font letter is one of the symbols drawn here.

InkWidth(char)

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(char)

Gets the letter a symbol holds in its circle, as M for the maximum material condition; null for one that holds none.

NameOf(char)

Gets the name of a symbol, as "Position"; empty for a letter that is none.

StrokeOf(char)

Gets the stroke path of a symbol in its box 24 by 24, as SVG writes one; empty for a letter that is none.