Table of Contents

Class DxfDimStyleTableRecord

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

A dimension style of a DXF file, as AutoCAD's DimStyleTableRecord, read from its DIMSTYLE record: its name and its dimension variables, each by its group, Dimasz by 41, Dimtxt by 140.

public sealed class DxfDimStyleTableRecord : DxfSymbolTableRecord
Inheritance
DxfDimStyleTableRecord
Inherited Members

Remarks

The style ISO-25 has arrowheads 2.5 long (Dimasz), texts 2.5 high (Dimtxt) set 0.625 off the dimension line (Dimgap) and two decimal places (Dimdec); a variable its record gives no group for reads as AutoCAD's own, that of its template acad.dwt: arrowheads 0.18 long, texts 0.18 high, four decimal places. Values are as AutoCAD's .NET gives them: an angle in radians (Dimjogang; the file writes degrees), a colour as a DxfColor, an arrowhead as the block it is drawn with, null for AutoCAD's closed filled one.

A style of a file is changed by its setters, its record written anew, every other group kept; a setter given the value its getter gives changes nothing. A variable a file's version has not, as Dimdec (R2000) in one of R12, is refused there with an InvalidOperationException. Each points at a block, a linetype or a text style by its handle from R2000 on (340 to 347), and at an arrowhead's block by its name (5, 6 and 7) in a file of R12.

A style made in code holds AutoCAD's own values until it is given others, and is written whole, every variable its file's version has, when it is added to a DxfDimStyleTable; its handle written as group 105, as AutoCAD writes a DIMSTYLE's. Renamed, the dimensions, leaders and tolerances drawn in it, the styles AutoCAD keeps for each kind of dimension of it (GH$0, GH$2 of GH) and the header's $DIMSTYLE follow.

Constructors

DxfDimStyleTableRecord()

Initializes a dimension style made in code, every variable AutoCAD's own, to be added to a DxfDimStyleTable with its Name given.

Properties

Dimadec

Gets or sets the decimal places of the angles of angular dimensions (group 179), as AutoCAD's Dimadec; 0 where the record gives none.

Dimalt

Gets or sets whether dimensions show their measurement in alternate units as well (group 170), as AutoCAD's Dimalt.

Dimaltd

Gets or sets the decimal places of alternate units (group 171), as AutoCAD's Dimaltd; 2 where the record gives none.

Dimaltf

Gets or sets the factor a measurement is multiplied by in alternate units (group 143), as AutoCAD's Dimaltf: 25.4 for inches shown as millimetres, where the record gives none.

Dimaltrnd

Gets or sets what alternate units are rounded to (group 148), as AutoCAD's Dimaltrnd; 0 where the record gives none.

Dimalttd

Gets or sets the decimal places of the tolerances in alternate units (group 274), as AutoCAD's Dimalttd; 2 where the record gives none.

Dimalttz

Gets or sets which zeros of the tolerances in alternate units are left out (group 286), as AutoCAD's Dimalttz.

Dimaltu

Gets or sets the units of alternate units (group 273), as AutoCAD's Dimaltu: 2 decimal, where the record gives none.

Dimaltz

Gets or sets which zeros of alternate units are left out (group 285), as AutoCAD's Dimaltz.

Dimapost

Gets or sets the prefix and suffix of alternate units (group 4), as AutoCAD's Dimapost: [] in writes the alternate measurement then " in"; empty where the record gives none.

Dimarcsym

Gets or sets where the arc symbol of an arc length dimension stands (group 90), as AutoCAD's Dimarcsym: 0 before the text, 1 above it, 2 none.

Dimasz

Gets or sets the size of the arrowheads (group 41), as AutoCAD's Dimasz: 2.5 in ISO-25; 0.18 where the record gives none.

Dimatfit

Gets or sets what is moved out between the extension lines where text and arrows do not both fit (group 289), as AutoCAD's Dimatfit; 3, the best fit, where the record gives none.

Dimaunit

Gets or sets the units of angles (group 275), as AutoCAD's Dimaunit: 0 decimal degrees, 1 degrees, minutes and seconds, 2 grads, 3 radians.

Dimazin

Gets or sets which zeros of angles are left out (group 79), as AutoCAD's Dimazin: 1 leading, 2 trailing, 3 both.

Dimblk

Gets or sets the block both arrowheads are drawn with (group 342, the name 5 in a file of R12), as AutoCAD's Dimblk gives its id: _ARCHTICK; null for AutoCAD's closed filled arrowhead, where the record names none.

Dimblk1

Gets or sets the block of the first arrowhead where Dimsah draws them apart (group 343, the name 6 in a file of R12), as AutoCAD's Dimblk1; null for the closed filled one.

Dimblk2

Gets or sets the block of the second arrowhead where Dimsah draws them apart (group 344, the name 7 in a file of R12), as AutoCAD's Dimblk2; null for the closed filled one.

Dimcen

Gets or sets the centre marks of radial dimensions (group 141), as AutoCAD's Dimcen: above nought a mark that long, below nought a centre line, nought none; 0.09 where the record gives none.

Dimclrd

Gets or sets the colour of the dimension lines (group 176), as AutoCAD's Dimclrd; BYBLOCK where the record gives none.

Dimclre

Gets or sets the colour of the extension lines (group 177), as AutoCAD's Dimclre; BYBLOCK where the record gives none.

Dimclrt

Gets or sets the colour of the texts (group 178), as AutoCAD's Dimclrt; BYBLOCK where the record gives none.

Dimdec

Gets or sets the decimal places of measurements (group 271), as AutoCAD's Dimdec: 2 in ISO-25; 4 where the record gives none.

Dimdle

Gets or sets how far the dimension line runs past the extension lines where it ends in ticks (group 46), as AutoCAD's Dimdle.

Dimdli

Gets or sets how far apart baseline dimensions stand (group 43), as AutoCAD's Dimdli; 0.38 where the record gives none.

Dimdsep

Gets or sets the decimal separator (group 278, the letter's number), as AutoCAD's Dimdsep: ',' in ISO-25 (44); '.' where the record gives none.

Dimexe

Gets or sets how far the extension lines run past the dimension line (group 44), as AutoCAD's Dimexe; 0.18 where the record gives none.

Dimexo

Gets or sets how far the extension lines stand off the points measured (group 42), as AutoCAD's Dimexo; 0.0625 where the record gives none.

Dimfrac

Gets or sets how fractions are stacked (group 276), as AutoCAD's Dimfrac: 0 horizontal, 1 diagonal, 2 not stacked.

Dimfxlen

Gets or sets the fixed length of the extension lines where DimfxlenOn (group 49), as AutoCAD's Dimfxlen; 1 where the record gives none.

DimfxlenOn

Gets or sets whether the extension lines are of the fixed length Dimfxlen (group 290), as AutoCAD's DimfxlenOn.

Dimgap

Gets or sets the gap about the text of a dimension (group 147), as AutoCAD's Dimgap: 0.625 in ISO-25; 0.09 where the record gives none.

Dimjogang

Gets or sets the angle of the jog of a jogged radius dimension (group 50), as AutoCAD's Dimjogang: in radians, the record writing degrees, so 60 degrees is pi / 3; 45 degrees where the record gives none.

Dimjust

Gets or sets where the text stands along the dimension line (group 280), as AutoCAD's Dimjust: 0 centred, 1 by the first extension line, 2 by the second, 3 and 4 above them.

Dimldrblk

Gets or sets the block the arrowhead of a leader is drawn with (group 341), as AutoCAD's Dimldrblk; null for the closed filled one.

Dimlfac

Gets or sets the factor a length measured is multiplied by (group 144), as AutoCAD's Dimlfac: 100 for a detail drawn at 1:100; 1 where the record gives none.

Dimlim

Gets or sets whether a measurement is shown as its limits, Dimtp and Dimtm about it (group 72), as AutoCAD's Dimlim.

Dimltex1

Gets or sets the linetype of the first extension line (group 346), as AutoCAD's Dimltex1; null where the record names none.

Dimltex2

Gets or sets the linetype of the second extension line (group 347), as AutoCAD's Dimltex2; null where the record names none.

Dimltype

Gets or sets the linetype of the dimension line (group 345), as AutoCAD's Dimltype; null where the record names none.

Dimlunit

Gets or sets the units of lengths (group 277), as AutoCAD's Dimlunit: 1 scientific, 2 decimal, 3 engineering, 4 architectural, 5 fractional, 6 Windows desktop.

Dimlwd

Gets or sets the lineweight of the dimension lines (group 371), as AutoCAD's Dimlwd; ByBlock where the record gives none.

Dimlwe

Gets or sets the lineweight of the extension lines (group 372), as AutoCAD's Dimlwe; ByBlock where the record gives none.

Dimpost

Gets or sets the prefix and suffix of measurements (group 3), as AutoCAD's Dimpost: <> mm writes the measurement then " mm"; empty where the record gives none.

Dimrnd

Gets or sets what measurements are rounded to (group 45), as AutoCAD's Dimrnd: 0.5 rounds 12.3 to 12.5; 0 where the record gives none.

Dimsah

Gets or sets whether the two arrowheads are drawn apart, by Dimblk1 and Dimblk2 (group 173), as AutoCAD's Dimsah.

Dimscale

Gets or sets the scale of every size of the style (group 40), as AutoCAD's Dimscale: 100 for a drawing plotted at 1:100; 1 where the record gives none.

Dimsd1

Gets or sets whether the first half of the dimension line is left out (group 281), as AutoCAD's Dimsd1.

Dimsd2

Gets or sets whether the second half of the dimension line is left out (group 282), as AutoCAD's Dimsd2.

Dimse1

Gets or sets whether the first extension line is left out (group 75), as AutoCAD's Dimse1.

Dimse2

Gets or sets whether the second extension line is left out (group 76), as AutoCAD's Dimse2.

Dimsoxd

Gets or sets whether arrowheads that do not fit between the extension lines are left out (group 175), as AutoCAD's Dimsoxd.

Dimtad

Gets or sets where the text stands across the dimension line (group 77), as AutoCAD's Dimtad: 0 centred on it, 1 above it, 2 on the side away from the points, 3 as JIS, 4 below.

Dimtdec

Gets or sets the decimal places of tolerances (group 272), as AutoCAD's Dimtdec; 4 where the record gives none.

Dimtfac

Gets or sets the height of tolerances and fractions for that of the text (group 146), as AutoCAD's Dimtfac: 0.8 makes them 2 high under a text 2.5 high; 1 where the record gives none.

Dimtfill

Gets or sets the background of the text (group 69), as AutoCAD's Dimtfill: 0 none, 1 the drawing's background, 2 Dimtfillclr.

Dimtfillclr

Gets or sets the colour of the background of the text where Dimtfill is 2 (the record's second group 70, the first being its flags), as AutoCAD's Dimtfillclr; BYBLOCK where the record gives none.

Dimtih

Gets or sets whether a text between the extension lines stands level (group 73), as AutoCAD's Dimtih; true where the record gives none.

Dimtix

Gets or sets whether the text is kept between the extension lines (group 174), as AutoCAD's Dimtix.

Dimtm

Gets or sets the lower tolerance (group 48), as AutoCAD's Dimtm.

Dimtmove

Gets or sets what moving the text does (group 279), as AutoCAD's Dimtmove: 0 moves the dimension line with it, 1 adds a leader, 2 moves it freely.

Dimtofl

Gets or sets whether a dimension line is drawn between the extension lines though the text stands outside (group 172), as AutoCAD's Dimtofl.

Dimtoh

Gets or sets whether a text outside the extension lines stands level (group 74), as AutoCAD's Dimtoh; true where the record gives none.

Dimtol

Gets or sets whether tolerances are shown after the measurement (group 71), as AutoCAD's Dimtol.

Dimtolj

Gets or sets where tolerances stand against the measurement (group 283), as AutoCAD's Dimtolj: 0 bottom, 1 middle, 2 top; 1 where the record gives none.

Dimtp

Gets or sets the upper tolerance (group 47), as AutoCAD's Dimtp.

Dimtsz

Gets or sets the size of the ticks drawn in place of arrowheads (group 142), as AutoCAD's Dimtsz: nought draws arrowheads.

Dimtvp

Gets or sets how far a centred text stands above or below the dimension line, in heights of the text (group 145), as AutoCAD's Dimtvp.

Dimtxsty

Gets or sets the text style of the texts (group 340), as AutoCAD's Dimtxsty gives its id; null where the record names none.

Dimtxt

Gets or sets the height of the texts (group 140), as AutoCAD's Dimtxt: 2.5 in ISO-25; 0.18 where the record gives none.

Dimtxtdirection

Gets or sets whether the text of a dimension reads from right to left (group 294), as AutoCAD's Dimtxtdirection: true for the scripts written that way, Arabic or Hebrew; false where the record gives none.

Dimtzin

Gets or sets which zeros of tolerances are left out (group 284), as AutoCAD's Dimtzin.

Dimupt

Gets or sets whether the text is placed by the user as the dimension line is (group 288), as AutoCAD's Dimupt.

Dimzin

Gets or sets which zeros of measurements are left out (group 78), as AutoCAD's Dimzin: 8 leaves trailing zeros out, so that 12.50 is 12.5.

Methods

Erase()

Erases the style from its table, as AutoCAD's Erase of a dimension style nothing is drawn in: its DIMSTYLE record taken out, the table's count lowered by one, its handle not given again.

GetArrow(DxfDimArrowFlag)

Gets the block an arrowhead is drawn with, as AutoCAD's GetArrowId gives its id: Dimblk1 or Dimblk2 where Dimsah draws them apart, else Dimblk.