Tables

tables/dimstyle

#include "dxfio/tables/dimstyle.hpp"

In DxfIO::Tables

struct Arrows

The arrow blocks a dimension style names by their block names, as releases up to R14 write them.

FieldTypeMeaning
Dimblkstd::stringDIMBLK: the block drawn at both ends; empty for the closed filled arrow. Group 5.
Dimblk1std::stringDIMBLK1: the block at the first end when DIMSAH is on. Group 6.
Dimblk2std::stringDIMBLK2: the block at the second end when DIMSAH is on. Group 7.

struct DimstyleDIMSTYLE

A DIMSTYLE table record: the dimension variables a dimension is drawn with, each named after its own.

FieldType and defaultMeaning
RecordTables::RecordThe name, flags and handles every table record carries.
ArrowsTables::ArrowsThe arrow blocks by name, written up to R14; later releases give them as handles.
Dimpoststd::stringDIMPOST: the prefix and suffix of measurements, with <> where the measurement goes. Group 3.
Dimapoststd::stringDIMAPOST: the prefix and suffix of alternate measurements. Group 4.
Dimscaledouble{1}DIMSCALE: the factor every size of the style is scaled by. Group 40.
Dimaszdouble{Size}DIMASZ: the size of arrowheads. Group 41.
Dimexodouble{Offset}DIMEXO: how far extension lines start from the points they measure. Group 42.
Dimdlidouble{Increment}DIMDLI: the spacing between the dimension lines of baseline dimensions. Group 43.
Dimexedouble{Size}DIMEXE: how far extension lines run past the dimension line. Group 44.
DimrnddoubleDIMRND: the value distances are rounded to; 0 for none. Group 45.
DimdledoubleDIMDLE: how far the dimension line runs past extension lines when ticks are drawn. Group 46.
DimtpdoubleDIMTP: the plus tolerance. Group 47.
DimtmdoubleDIMTM: the minus tolerance. Group 48.
Dimfxldouble{1}DIMFXL: the length of extension lines when DIMFXLON fixes it. Group 49, from R2007.
Dimjogangdouble{Jog}DIMJOGANG: the angle of the jog in jogged radius dimensions, in degrees. Group 50, from R2007.
DimtfillintDIMTFILL: the text background: 0 none, 1 the drawing's background, 2 DIMTFILLCLR. Group 69, from R2007.
DimtfillclrintDIMTFILLCLR: the color of the text background. Group 70, from R2007.
DimtolintDIMTOL: nonzero to append tolerances to measurements. Group 71.
DimlimintDIMLIM: nonzero to give measurements as limits. Group 72.
Dimtihint{1}DIMTIH: nonzero to keep text between extension lines horizontal. Group 73.
Dimtohint{1}DIMTOH: nonzero to keep text outside extension lines horizontal. Group 74.
Dimse1intDIMSE1: nonzero to leave out the first extension line. Group 75.
Dimse2intDIMSE2: nonzero to leave out the second extension line. Group 76.
DimtadintDIMTAD: where text stands against the dimension line: 0 centered, 1 above, 2 on the far side, 3 JIS, 4 below. Group 77.
DimzinintDIMZIN: which zeros measurements drop: 0 to 3 for feet and inches, 4 leading, 8 trailing. Group 78.
DimazinintDIMAZIN: which zeros angles drop: 1 leading, 2 trailing, 3 both. Group 79, from R2000.
DimarcsymintDIMARCSYM: the arc length symbol: 0 before the text, 1 above it, 2 none. Group 90, from R2007.
Dimtxtdouble{Size}DIMTXT: the text height. Group 140.
Dimcendouble{Mark}DIMCEN: the size of center marks; negative to draw center lines, 0 for none. Group 141.
DimtszdoubleDIMTSZ: the size of ticks drawn in place of arrowheads; 0 for arrowheads. Group 142.
Dimaltfdouble{Inch}DIMALTF: the factor alternate units are measured by. Group 143.
Dimlfacdouble{1}DIMLFAC: the factor linear measurements are scaled by. Group 144.
DimtvpdoubleDIMTVP: how far text stands above or below the dimension line when DIMTAD is 0. Group 145.
Dimtfacdouble{1}DIMTFAC: the height of tolerance text over the text height. Group 146.
Dimgapdouble{Mark}DIMGAP: the gap around text where it breaks the dimension line; negative to box the text. Group 147.
DimaltrnddoubleDIMALTRND: the value alternate measurements are rounded to. Group 148, from R2000.
DimaltintDIMALT: nonzero to add alternate units to measurements. Group 170.
Dimaltdint{2}DIMALTD: the decimal places of alternate units. Group 171.
DimtoflintDIMTOFL: nonzero to draw the dimension line between extension lines when text is outside. Group 172.
DimsahintDIMSAH: nonzero to take the arrows from DIMBLK1 and DIMBLK2 rather than DIMBLK. Group 173.
DimtixintDIMTIX: nonzero to keep text between extension lines. Group 174.
DimsoxdintDIMSOXD: nonzero to leave out dimension lines outside extension lines. Group 175.
DimclrdintDIMCLRD: the color of dimension lines, arrowheads and leaders. Group 176.
DimclreintDIMCLRE: the color of extension lines. Group 177.
DimclrtintDIMCLRT: the color of text. Group 178.
DimadecintDIMADEC: the decimal places of angles. Group 179, from R13.
Dimdecint{4}DIMDEC: the decimal places of measurements. Group 271, from R13.
Dimtdecint{4}DIMTDEC: the decimal places of tolerances. Group 272, from R13.
Dimaltuint{2}DIMALTU: the format of alternate units, as DIMLUNIT. Group 273, from R13.
Dimalttdint{2}DIMALTTD: the decimal places of alternate tolerances. Group 274, from R13.
DimaunitintDIMAUNIT: the format of angles: 0 decimal degrees, 1 degrees minutes seconds, 2 gradians, 3 radians. Group 275, from R13.
DimfracintDIMFRAC: how fractions stack: 0 horizontal, 1 diagonal, 2 not stacked. Group 276, from R13.
Dimlunitint{2}DIMLUNIT: the format of measurements: 1 scientific, 2 decimal, 3 engineering, 4 architectural, 5 fractional, 6 as Windows sets it. Group 277, from R13.
Dimdsepint{'.'}DIMDSEP: the character that separates decimals. Group 278, from R13.
DimtmoveintDIMTMOVE: what moving the text does: 0 moves the dimension line, 1 adds a leader, 2 moves the text alone. Group 279, from R2000.
DimjustintDIMJUST: where text stands along the dimension line: 0 centered, 1 and 2 by the first or second extension line, 3 and 4 above them. Group 280, from R13.
Dimsd1intDIMSD1: nonzero to leave out the first half of the dimension line. Group 281, from R13.
Dimsd2intDIMSD2: nonzero to leave out the second half of the dimension line. Group 282, from R13.
Dimtoljint{1}DIMTOLJ: where tolerances stand against the measurement: 0 bottom, 1 middle, 2 top. Group 283, from R13.
DimtzinintDIMTZIN: which zeros tolerances drop, as DIMZIN. Group 284, from R13.
DimaltzintDIMALTZ: which zeros alternate units drop, as DIMZIN. Group 285, from R13.
DimalttzintDIMALTTZ: which zeros alternate tolerances drop, as DIMZIN. Group 286, from R13.
DimuptintDIMUPT: nonzero for the cursor to place the text as well as the dimension line. Group 288, from R13.
Dimatfitint{3}DIMATFIT: what moves outside extension lines when text and arrows do not fit: 0 both, 1 arrows, 2 text, 3 whichever fits best. Group 289, from R2000.
DimfxlonboolDIMFXLON: whether extension lines have the fixed length DIMFXL. Group 290, from R2007.
DimtxstyHandleDIMTXSTY: the text style of the text. Group 340, from R13.
DimldrblkHandleDIMLDRBLK: the block record of leader arrows; none for the closed filled arrow. Group 341, from R13.
DimblkHandleDIMBLK: the block record of both arrows; none for the closed filled arrow. Group 342, from R13.
Dimblk1HandleDIMBLK1: the block record of the first arrow when DIMSAH is on. Group 343, from R13.
Dimblk2HandleDIMBLK2: the block record of the second arrow when DIMSAH is on. Group 344, from R13.
DimltypeHandleDIMLTYPE: the linetype of dimension lines. Group 345, from R2007.
Dimltex1HandleDIMLTEX1: the linetype of the first extension line. Group 346, from R2007.
Dimltex2HandleDIMLTEX2: the linetype of the second extension line. Group 347, from R2007.
Dimlwdint{-2}DIMLWD: the lineweight of dimension lines, in hundredths of a millimeter, or -1 ByLayer, -2 ByBlock, -3 the default. Group 371, from R2000.
Dimlweint{-2}DIMLWE: the lineweight of extension lines, as DIMLWD. Group 372, from R2000.

Constants

Sizedouble = 0.18The arrow size, text height and extension of a new dimension style.
Offsetdouble = 0.0625The offset of extension lines from their origin in a new dimension style.
Incrementdouble = 0.38The spacing of baseline dimensions in a new dimension style.
Markdouble = 0.09The center mark size and text gap of a new dimension style.
Inchdouble = 25.4Millimeters to the inch: the alternate unit factor of a new dimension style.
Jogdouble = 45The jog angle of radius dimensions, in degrees, in a new dimension style.