Table of Contents

Class DxfTextSymbols

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

The symbols AutoCAD 2021's text editor enters from its Symbol menu, each the letter it stands for, and the three control codes of that menu, to be put into the words of a TEXT, an MTEXT, an attribute or a dimension without remembering a code: new DxfMText { Contents = DxfTextSymbols.Diameter + "20" } reads ∅20. The letters are those of AutoCAD's help, "Text Symbols and Special Characters Reference", and of its menu, and nothing else. Each is written as AutoCAD writes it: as it is in a drawing of R2007 or later, and before, where the code page has not the letter, as its escape, so that ∅20 in an MTEXT of R2004 is \U+220520. Written by the library into an MTEXT, a TEXT, an attribute and a dimension of R2004 and of R2018, each of the 21 was read back by AutoCAD 2021 as the same letter, in its Contents, Text, TextString and DimensionText alike, and AutoCAD wrote its own texts of them in the same bytes. A letter shows only in a font that has it: AutoCAD's help names simplex, romans, gdt, amgdt, isocp and isoct among the SHX fonts, and isocpeur and isocteur among the TrueType.

public static class DxfTextSymbols
Inheritance
DxfTextSymbols
Inherited Members

Fields

AlmostEqual

The sign almost equal to, ≈, U+2248: AlmostEqual + "3.14" is ≈3.14.

Angle

The angle sign, ∠, U+2220: Angle + "45" + Degree is ∠45°.

BoundaryLine

The boundary line of a survey, U+E100, a letter of AutoCAD's own fonts in the private range, which no other font is sure to have.

CenterLine

The centre line sign, ℄, U+2104: CenterLine + "A" marks the centre line A.

Cubed

The superscript three, ³, U+00B3: "5 m" + Cubed is 5 m³. A letter of ANSI_1252, so a new drawing of any version holds it as it is.

Degree

The degree sign, °, U+00B0: "45" + Degree is 45°. A letter of the code page ANSI_1252, so a new drawing of any version holds it as it is.

DegreeCode

The control code of the degree sign, %%d, which AutoCAD draws as Degree in a TEXT, an attribute, a dimension and an MTEXT. The words keep it as written: a TEXT's TextString and an MTEXT's Contents of 45%%d are 45%%d, and the MTEXT's Text is 45°, in AutoCAD 2021 and in Text alike, as DxfReader reads either.

Delta

The capital delta, Δ, U+0394: Delta + "L" is ΔL.

Diameter

The diameter sign, ∅, U+2205, the letter AutoCAD's Symbol menu enters for a diameter and its help lists for %%c; not Ø, U+00D8, a Latin letter, nor ⌀, U+2300. Diameter + "20" is written into an MTEXT or a TEXT of R2004 as \U+220520 and of R2018 as the bytes E2 88 85 and 20, and reads back as ∅20 from both, in AutoCAD 2021 and in the library.

DiameterCode

The control code of the diameter sign, %%c, which AutoCAD draws as the diameter sign where DegreeCode draws a degree, kept in the words as written in the same way: a TEXT's TextString of %%c20 is %%c20. AutoCAD 2021 gives the Text of an MTEXT of %%c20 as ∅20, the letter Diameter, and Text and DxfReader read it so too, in an MTEXT and a TEXT.

ElectricalPhase

The electrical phase sign, ɸ, U+0278.

FlowLine

The flow line, U+E101, a letter of AutoCAD's own fonts in the private range, which no other font is sure to have.

Identity

The sign identical to, ≡, U+2261.

InitialLength

The initial length sign, the arc over the length of an arc's dimension, U+E200, a letter of AutoCAD's own fonts in the private range: AutoCAD's help names simplex, romans, gdt, amgdt and isocpeur as the fonts that have it.

MonumentLine

The monument line of a survey, U+E102, a letter of AutoCAD's own fonts in the private range, which no other font is sure to have.

NonBreakingSpace

The space a line is not broken at, U+00A0, which AutoCAD's menu enters with Ctrl+Shift+Space: "M16" + NonBreakingSpace + "x 40" keeps M16 with its length. A letter of ANSI_1252, so a new drawing of any version holds it as it is, in a TEXT as in an MTEXT. In an MTEXT the code NonBreakSpace, ~, is one too, which AutoCAD 2021 gives as this letter in an MTEXT's Text, and Text and DxfReader read it so too.

NotEqual

The sign not equal to, ≠, U+2260: "a" + NotEqual + "b" is a≠b.

Ohm

The ohm sign, Ω, U+2126, the unit: "50" + Ohm is 50Ω. Not Omega, the Greek letter.

Omega

The capital omega, Ω, U+03A9, the Greek letter. Not Ohm, the unit.

PlusMinus

The plus-minus sign, ±, U+00B1: PlusMinus + "0.5" is ±0.5. A letter of ANSI_1252, so a new drawing of any version holds it as it is.

PlusMinusCode

The control code of the plus-minus sign, %%p, which AutoCAD draws as PlusMinus where DegreeCode draws a degree, kept in the words as written in the same way: the Text of an MTEXT of %%p0.5 is ±0.5.

PropertyLine

The property line sign, ⅊, U+214A, AutoCAD's "Plate/property line".

Squared

The superscript two, ², U+00B2: "20 m" + Squared is 20 m². A letter of ANSI_1252, so a new drawing of any version holds it as it is.

Subscript2

The subscript two, ₂, U+2082: "CO" + Subscript2 is CO₂.