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" + Degreeis ∠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" + Cubedis 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" + Degreeis 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'sTextStringand an MTEXT'sContentsof45%%dare45%%d, and the MTEXT'sTextis 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+220520and 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'sTextStringof%%c20is%%c20. AutoCAD 2021 gives theTextof an MTEXT of%%c20as ∅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'sText, and Text and DxfReader read it so too.
- NotEqual
The sign not equal to, ≠, U+2260:
"a" + NotEqual + "b"is a≠b.
- 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: theTextof an MTEXT of%%p0.5is ±0.5.
- PropertyLine
The property line sign, ⅊, U+214A, AutoCAD's "Plate/property line".
- Squared
The superscript two, ², U+00B2:
"20 m" + Squaredis 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" + Subscript2is CO₂.