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.
| Field | Type | Meaning |
|---|---|---|
Dimblk | std::string | DIMBLK: the block drawn at both ends; empty for the closed filled arrow. Group 5. |
Dimblk1 | std::string | DIMBLK1: the block at the first end when DIMSAH is on. Group 6. |
Dimblk2 | std::string | DIMBLK2: 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.
| Field | Type and default | Meaning |
|---|---|---|
Record | Tables::Record | The name, flags and handles every table record carries. |
Arrows | Tables::Arrows | The arrow blocks by name, written up to R14; later releases give them as handles. |
Dimpost | std::string | DIMPOST: the prefix and suffix of measurements, with <> where the measurement goes. Group 3. |
Dimapost | std::string | DIMAPOST: the prefix and suffix of alternate measurements. Group 4. |
Dimscale | double{1} | DIMSCALE: the factor every size of the style is scaled by. Group 40. |
Dimasz | double{Size} | DIMASZ: the size of arrowheads. Group 41. |
Dimexo | double{Offset} | DIMEXO: how far extension lines start from the points they measure. Group 42. |
Dimdli | double{Increment} | DIMDLI: the spacing between the dimension lines of baseline dimensions. Group 43. |
Dimexe | double{Size} | DIMEXE: how far extension lines run past the dimension line. Group 44. |
Dimrnd | double | DIMRND: the value distances are rounded to; 0 for none. Group 45. |
Dimdle | double | DIMDLE: how far the dimension line runs past extension lines when ticks are drawn. Group 46. |
Dimtp | double | DIMTP: the plus tolerance. Group 47. |
Dimtm | double | DIMTM: the minus tolerance. Group 48. |
Dimfxl | double{1} | DIMFXL: the length of extension lines when DIMFXLON fixes it. Group 49, from R2007. |
Dimjogang | double{Jog} | DIMJOGANG: the angle of the jog in jogged radius dimensions, in degrees. Group 50, from R2007. |
Dimtfill | int | DIMTFILL: the text background: 0 none, 1 the drawing's background, 2 DIMTFILLCLR. Group 69, from R2007. |
Dimtfillclr | int | DIMTFILLCLR: the color of the text background. Group 70, from R2007. |
Dimtol | int | DIMTOL: nonzero to append tolerances to measurements. Group 71. |
Dimlim | int | DIMLIM: nonzero to give measurements as limits. Group 72. |
Dimtih | int{1} | DIMTIH: nonzero to keep text between extension lines horizontal. Group 73. |
Dimtoh | int{1} | DIMTOH: nonzero to keep text outside extension lines horizontal. Group 74. |
Dimse1 | int | DIMSE1: nonzero to leave out the first extension line. Group 75. |
Dimse2 | int | DIMSE2: nonzero to leave out the second extension line. Group 76. |
Dimtad | int | DIMTAD: where text stands against the dimension line: 0 centered, 1 above, 2 on the far side, 3 JIS, 4 below. Group 77. |
Dimzin | int | DIMZIN: which zeros measurements drop: 0 to 3 for feet and inches, 4 leading, 8 trailing. Group 78. |
Dimazin | int | DIMAZIN: which zeros angles drop: 1 leading, 2 trailing, 3 both. Group 79, from R2000. |
Dimarcsym | int | DIMARCSYM: the arc length symbol: 0 before the text, 1 above it, 2 none. Group 90, from R2007. |
Dimtxt | double{Size} | DIMTXT: the text height. Group 140. |
Dimcen | double{Mark} | DIMCEN: the size of center marks; negative to draw center lines, 0 for none. Group 141. |
Dimtsz | double | DIMTSZ: the size of ticks drawn in place of arrowheads; 0 for arrowheads. Group 142. |
Dimaltf | double{Inch} | DIMALTF: the factor alternate units are measured by. Group 143. |
Dimlfac | double{1} | DIMLFAC: the factor linear measurements are scaled by. Group 144. |
Dimtvp | double | DIMTVP: how far text stands above or below the dimension line when DIMTAD is 0. Group 145. |
Dimtfac | double{1} | DIMTFAC: the height of tolerance text over the text height. Group 146. |
Dimgap | double{Mark} | DIMGAP: the gap around text where it breaks the dimension line; negative to box the text. Group 147. |
Dimaltrnd | double | DIMALTRND: the value alternate measurements are rounded to. Group 148, from R2000. |
Dimalt | int | DIMALT: nonzero to add alternate units to measurements. Group 170. |
Dimaltd | int{2} | DIMALTD: the decimal places of alternate units. Group 171. |
Dimtofl | int | DIMTOFL: nonzero to draw the dimension line between extension lines when text is outside. Group 172. |
Dimsah | int | DIMSAH: nonzero to take the arrows from DIMBLK1 and DIMBLK2 rather than DIMBLK. Group 173. |
Dimtix | int | DIMTIX: nonzero to keep text between extension lines. Group 174. |
Dimsoxd | int | DIMSOXD: nonzero to leave out dimension lines outside extension lines. Group 175. |
Dimclrd | int | DIMCLRD: the color of dimension lines, arrowheads and leaders. Group 176. |
Dimclre | int | DIMCLRE: the color of extension lines. Group 177. |
Dimclrt | int | DIMCLRT: the color of text. Group 178. |
Dimadec | int | DIMADEC: the decimal places of angles. Group 179, from R13. |
Dimdec | int{4} | DIMDEC: the decimal places of measurements. Group 271, from R13. |
Dimtdec | int{4} | DIMTDEC: the decimal places of tolerances. Group 272, from R13. |
Dimaltu | int{2} | DIMALTU: the format of alternate units, as DIMLUNIT. Group 273, from R13. |
Dimalttd | int{2} | DIMALTTD: the decimal places of alternate tolerances. Group 274, from R13. |
Dimaunit | int | DIMAUNIT: the format of angles: 0 decimal degrees, 1 degrees minutes seconds, 2 gradians, 3 radians. Group 275, from R13. |
Dimfrac | int | DIMFRAC: how fractions stack: 0 horizontal, 1 diagonal, 2 not stacked. Group 276, from R13. |
Dimlunit | int{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. |
Dimdsep | int{'.'} | DIMDSEP: the character that separates decimals. Group 278, from R13. |
Dimtmove | int | DIMTMOVE: what moving the text does: 0 moves the dimension line, 1 adds a leader, 2 moves the text alone. Group 279, from R2000. |
Dimjust | int | DIMJUST: 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. |
Dimsd1 | int | DIMSD1: nonzero to leave out the first half of the dimension line. Group 281, from R13. |
Dimsd2 | int | DIMSD2: nonzero to leave out the second half of the dimension line. Group 282, from R13. |
Dimtolj | int{1} | DIMTOLJ: where tolerances stand against the measurement: 0 bottom, 1 middle, 2 top. Group 283, from R13. |
Dimtzin | int | DIMTZIN: which zeros tolerances drop, as DIMZIN. Group 284, from R13. |
Dimaltz | int | DIMALTZ: which zeros alternate units drop, as DIMZIN. Group 285, from R13. |
Dimalttz | int | DIMALTTZ: which zeros alternate tolerances drop, as DIMZIN. Group 286, from R13. |
Dimupt | int | DIMUPT: nonzero for the cursor to place the text as well as the dimension line. Group 288, from R13. |
Dimatfit | int{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. |
Dimfxlon | bool | DIMFXLON: whether extension lines have the fixed length DIMFXL. Group 290, from R2007. |
Dimtxsty | Handle | DIMTXSTY: the text style of the text. Group 340, from R13. |
Dimldrblk | Handle | DIMLDRBLK: the block record of leader arrows; none for the closed filled arrow. Group 341, from R13. |
Dimblk | Handle | DIMBLK: the block record of both arrows; none for the closed filled arrow. Group 342, from R13. |
Dimblk1 | Handle | DIMBLK1: the block record of the first arrow when DIMSAH is on. Group 343, from R13. |
Dimblk2 | Handle | DIMBLK2: the block record of the second arrow when DIMSAH is on. Group 344, from R13. |
Dimltype | Handle | DIMLTYPE: the linetype of dimension lines. Group 345, from R2007. |
Dimltex1 | Handle | DIMLTEX1: the linetype of the first extension line. Group 346, from R2007. |
Dimltex2 | Handle | DIMLTEX2: the linetype of the second extension line. Group 347, from R2007. |
Dimlwd | int{-2} | DIMLWD: the lineweight of dimension lines, in hundredths of a millimeter, or -1 ByLayer, -2 ByBlock, -3 the default. Group 371, from R2000. |
Dimlwe | int{-2} | DIMLWE: the lineweight of extension lines, as DIMLWD. Group 372, from R2000. |
Constants
Size | double = 0.18 | The arrow size, text height and extension of a new dimension style. |
Offset | double = 0.0625 | The offset of extension lines from their origin in a new dimension style. |
Increment | double = 0.38 | The spacing of baseline dimensions in a new dimension style. |
Mark | double = 0.09 | The center mark size and text gap of a new dimension style. |
Inch | double = 25.4 | Millimeters to the inch: the alternate unit factor of a new dimension style. |
Jog | double = 45 | The jog angle of radius dimensions, in degrees, in a new dimension style. |