Class DxfTolerance
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
A TOLERANCE of a DXF file, as AutoCAD's FeatureControlFrame: a feature control frame of geometric dimensioning
and tolerancing, its words in group 1 as AutoCAD's TOLERANCE command writes them, put at its insertion point along its
direction in the plane of its normal and drawn by its dimension style.
public sealed class DxfTolerance : DxfEntity
- Inheritance
-
DxfTolerance
- Inherited Members
Remarks
The words (Text) hold one row of the frame to a line, a line feed between rows (^J in the file),
and its cells in the row with %%v between them: the symbol, the two tolerances, the three datums. A symbol is a
letter of AutoCAD's gdt font, {\Fgdt;j} the position, {\Fgdt;n} the diameter sign and {\Fgdt;m}
the maximum material condition, so that the position of a diameter 0.1 at the maximum material condition to the datums
A, B and C is {\Fgdt;j}%%v{\Fgdt;n}0.1{\Fgdt;m}%%vA%%vB%%vC. The height of a projected zone and the datum
identifier are rows of their own: 5{\Fgdt;p} and D.
The record holds the dimension style (group 3), the insertion point (10, 20, 30), the words (1), the normal (210, 220, 230) and the direction (11, 21, 31), the last two left out where they are the world's z and x, as AutoCAD 2021 writes them. Overrides of the dimension style are the list DSTYLE of its extended data of ACAD, as a dimension's are: GetDimstyleData() reads them. A file of R12 has no TOLERANCE.
TransformBy(GeoTransform3) moves it as AutoCAD 2021 moves one, and so do MOVE, COPY, ROTATE, SCALE and MIRROR:
its point moved, its direction turned, its normal the one its direction and the frame's up make after the move, so that
a mirror turns it over (normal (0, 0, -1)); a move that scales it writes its text height and gap scaled as overrides
(DIMTXT, then DIMGAP), as AutoCAD 2021 writes them: a frame of the style's 0.18 and 0.09 scaled by 3 holds
1070 140, 1040 0.54, 1070 147, 1040 0.27. It is not exploded: AutoCAD 2021's Explode refuses one too.
GeometricExtents is the box of its rows as AutoCAD 2021 lays them out, where the drawing's FontSearchPath measures its words.
Constructors
- DxfTolerance()
Initializes a TOLERANCE of no words at the origin, along the world's x in the plane of its z, in the dimension style Standard, as AutoCAD's
new FeatureControlFrame(), on layer 0 in no file; give it its words, point and direction before it is drawn.
Properties
- DimensionStyleName
Gets or sets the name of the dimension style the frame is drawn by (group 3), as AutoCAD's
DimensionStyleName;Standardwhere the record gives none.
- Direction
Gets or sets the direction the rows run in (groups 11, 21, 31), as AutoCAD's
Direction: of unit length, the world's x where the record gives none.
- GeometricExtents
Gets the box the frame fills, as AutoCAD's
GeometricExtents: that of its rows as AutoCAD 2021 lays them out (probes GHTQ1 and GHTQ2), each twice the text height high (DimtxttimesDimscaleof GetDimstyleData()), the first about its Location, each next under the one before on the same left side, each as wide as its cells, a cell its ink and the text height, along its Direction in the plane of its Normal.{\Fgdt;j}%%v0.1at (0, 0, 0) in a style of Arial 0.18 high is from (0, -0.18, 0) to (0.92296, 0.18, 0), and a frame of no words from (0, -0.18, 0) to (0, 0.18, 0). The words are measured in the drawing's fonts (FontSearchPath), in the text style ofDimtxsty, the symbols of the gdt font by the widths AutoCAD gives them. Elsewhere, where a cell holds words the fonts do not measure, as GeometricExtents gives it.
- Location
Gets or sets the insertion point (groups 10, 20, 30), as AutoCAD's
Location: in the world, the middle of the left side of the first row, where a leader meets the frame; the origin where the record gives none.
- Normal
Gets or sets the normal of the plane the frame lies in (groups 210, 220, 230), as AutoCAD's
Normal: of unit length, the world's z where the record gives none.
- Text
Gets or sets the words of the frame (group 1), as AutoCAD's
Text: a line feed between rows and%%vbetween cells, the symbols in the gdt font, as the class's remarks set them out; empty where the record gives none.
Methods
- GetDimstyleData()
Gets the variables the frame is drawn with, as AutoCAD's
GetDimstyleData: a new DxfDimStyleTableRecord in no table, named as its DimensionStyleName, each variable as the frame reads it, its override (the list DSTYLE of its extended data of ACAD) where it has one, else its style's, else AutoCAD's own. A frame of the style ISO-25 given a text height of 5 givesDimtxt5 andDimgap0.625, the style's. The frame's rows are twiceDimtxttimesDimscalehigh, inDimtxsty, its lines inDimclrdand its words inDimclrt.