CFx SDK Documentation  2022 SP0
DimVarDefs.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, Open Design Alliance (the "Alliance").
3 // All rights reserved.
4 //
5 // This software and its documentation and related materials are owned by
6 // the Alliance. The software may only be incorporated into application
7 // programs owned by members of the Alliance, subject to a signed
8 // Membership Agreement and Supplemental Software License Agreement with the
9 // Alliance. The structure and organization of this software are the valuable
10 // trade secrets of the Alliance and its suppliers. The software is also
11 // protected by copyright law and international treaty provisions. Application
12 // programs incorporating this software must include the following statement
13 // with their copyright notices:
14 //
15 // This application incorporates Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 by Open Design Alliance.
18 // All rights reserved.
19 //
20 // By use of this software, its documentation or related materials, you
21 // acknowledge and accept the above terms.
23 
24 
25 
26 #ifndef BLKVAR_DEF
27 #define BLKVAR_DEF VAR_DEF
28 #endif
29 
30 #ifndef ANNOVAR_DEF
31 #define ANNOVAR_DEF VAR_DEF
32 #endif
33 
34 #ifndef ODTDB_LINEWEIGHT
35 #define ODTDB_LINEWEIGHT OdDb::LineWeight
36 #define DOUNDEF_ODTDB_LINEWEIGHT
37 #endif
38 
39 #ifndef ODTDIST
40 #define ODTDIST double
41 #define DOUNDEF_ODTDIST
42 #endif
43 
44 #ifndef ODTORIENT
45 #define ODTORIENT double
46 #define DOUNDEF_ODTORIENT
47 #endif
48 
49 #ifndef ODTUNITLESS
50 #define ODTUNITLESS double
51 #define DOUNDEF_ODTUNITLESS
52 #endif
53 
54 #ifndef ODTDECSEP
55 #define ODTDECSEP OdInt16
56 #define DOUNDEF_ODTDECSEP
57 #endif
58 
59 #ifndef ODTARROWBLK
60 #define ODTARROWBLK OdDbHardPointerId
61 #define DOUNDEF_ODTARROWBLK
62 #endif
63 
64 #ifndef ODTTEXTSTYLEID
65 #define ODTTEXTSTYLEID OdDbHardPointerId
66 #define DOUNDEF_ODTTEXTSTYLEID
67 #endif
68 
69 
70 #ifndef ODTLINETYPEID
71 #define ODTLINETYPEID OdDbHardPointerId
72 #define DOUNDEF_ODTLINETYPEID
73 #endif
74 
75 #ifndef NullIdAllowed
76 #define NullIdAllowed true
77 #define DOUNDEF_NullIdAllowed
78 #endif
79 
80 
86 // Type Name DXF Default value Metric Def Value Reserve1 Reserve2
87 
124 //<dom_var_def>OdInt16 DIMADEC;
125 VAR_DEF(OdInt16, adec, 179, (0), (0), (), ValidateRange(0, 8))
126 
127 
164 //<dom_var_def>bool DIMALT;
165 VAR_DEF(bool, alt, 170, (false), (false), (), ValidateNone())
166 
198 //<dom_var_def>OdUInt16 DIMALTD;
199 VAR_DEF(OdUInt16, altd, 171, (2), (3), (), ValidateRange(0,8))
200 
233 //FELIX_CHANGE_BEGIN
234 VAR_DEF(double, altf, 143, (25.4), (0.03937007874016), (), ValidateRange(DBL_EPSILON,DBL_MAX))
235 //FELIX_CHANGE_END
236 
268 //<dom_var_def>double DIMALTRND;
269 VAR_DEF(ODTDIST, altrnd, 148, (0.0), (0.0), (), ValidateRange(0,DBL_MAX))
270 
303 //<dom_var_def>OdInt16 DIMALTTD;
304 VAR_DEF(OdInt16, alttd, 274, (2), (3), (), ValidateRange(0,8))
305 
351 //<dom_var_def>OdUInt8 DIMALTTZ;
352 VAR_DEF(OdUInt8, alttz, 286, (0), (0), (), ValidateRange(0,15))
353 
400 //<dom_var_def>OdInt16 DIMALTU;
401 VAR_DEF(OdInt16, altu, 273, (2), (2), (), ValidateRange(1,8))
402 
448 //<dom_var_def>OdUInt8 DIMALTZ;
449 VAR_DEF(OdUInt8, altz, 285, (0), (0), (), ValidateRange(0,15))
450 
485 //<dom_var_def>OdString DIMAPOST;
486 VAR_DEF(OdString, apost, 4, (OD_T("")), (OD_T("")), (), ValidateNone())
487 
522 //<dom_var_def>double DIMASZ;
523 VAR_DEF(ODTDIST, asz, 41, (0.18), (2.5), (), ValidateRange(0,DBL_MAX))
524 
565 //<dom_var_def>OdInt16 DIMATFIT;
566 ANNOVAR_DEF(OdInt16, atfit, 289, (3), (3), (), ValidateRange(0,3))
567 
609 //<dom_var_def>OdInt16 DIMAUNIT;
610 VAR_DEF(OdInt16, aunit, 275, (0), (0), (), ValidateRange(0,4))
611 
652 //<dom_var_def>OdInt16 DIMAZIN;
653 VAR_DEF(OdInt16, azin, 79, (0), (0), (), ValidateRange(0,3))
654 
687 //<dom_var_def>OdDbObjectId DIMBLK;
689 
722 //<dom_var_def>OdDbObjectId DIMBLK1;
724 
757 //<dom_var_def>OdDbObjectId DIMBLK2;
759 
804 //<dom_var_def>double DIMCEN;
805 VAR_DEF(ODTDIST, cen, 141, (0.09), (2.5), (), ValidateNone())
806 
845 //<dom_var_def>OdCmColor DIMCLRD;
847 
880 //<dom_var_def>OdCmColor DIMCLRE;
882 
917 //<dom_var_def>OdCmColor DIMCLRT;
919 
952 //<dom_var_def>OdInt16 DIMDEC;
953 VAR_DEF(OdInt16, dec, 271, (4), (2), (), ValidateRange(0,8))
954 
987 //<dom_var_def>double DIMDLE;
988 VAR_DEF(ODTDIST, dle, 46, (0.0), (0.0), (), ValidateRange(0,DBL_MAX))
989 
1022 //<dom_var_def>double DIMDLI;
1023 VAR_DEF(ODTDIST, dli, 43, (0.38), (3.75), (), ValidatePositive())
1024 
1056 //<dom_var_def>OdInt16 DIMDSEP;
1057 VAR_DEF(ODTDECSEP, dsep, 278, ('.'), (','), (), ValidateDecSep())
1058 
1059 
1094 //<dom_var_def>double DIMEXE;
1095 VAR_DEF(ODTDIST, exe, 44, (0.18), (1.25), (), ValidatePositive())
1096 
1131 //<dom_var_def>double DIMEXO;
1132 VAR_DEF(ODTDIST, exo, 42, (0.0625), (0.625), (), ValidatePositive())
1133 
1176 //<dom_var_def>OdInt16 DIMFRAC;
1177 VAR_DEF(OdInt16, frac, 276, (0), (0), (), ValidateRange(0,2))
1178 
1221 //<dom_var_def>double DIMGAP;
1222 VAR_DEF(ODTDIST, gap, 147, (0.09), (0.625), (), ValidateNone())
1223 
1265 //<dom_var_def>OdUInt16 DIMJUST;
1266 VAR_DEF(OdUInt16, just, 280, (0), (0), (), ValidateRange(0,4))
1267 
1305 //<dom_var_def>OdDbObjectId DIMLDRBLK;
1307 
1340 //<dom_var_def>double DIMLFAC;
1341 VAR_DEF(double, lfac, 144, (1.0), (1.0), (), ValidateNone())
1342 
1380 //<dom_var_def>bool DIMLIM;
1381 VAR_DEF(bool, lim, 72, (false), (false), (), ValidateNone())
1382 
1425 //<dom_var_def>OdInt16 DIMLUNIT;
1426 VAR_DEF(OdInt16, lunit, 277, (2), (2), (), ValidateRange(1,6))
1427 
1473 //<dom_var_def>OdDb::LineWeight DIMLWD;
1475 
1518 //<dom_var_def>OdDb::LineWeight DIMLWE;
1520 
1555 //<dom_var_def>OdString DIMPOST;
1556 VAR_DEF(OdString, post, 3, (OD_T("")), (OD_T("")), (), ValidateNone())
1557 
1590 //<dom_var_def>double DIMRND;
1591 VAR_DEF(ODTDIST, rnd, 45, (0.0), (0.0), (), ValidatePositive())
1592 
1634 //<dom_var_def>bool DIMSAH;
1635 VAR_DEF(bool, sah, 173, (false), (false), (), ValidateNone())
1636 
1683 //<dom_var_def>double DIMSCALE;
1684 VAR_DEF(double, scale, 40, (1.0), (1.0), (), ValidatePositive())
1685 
1724 //<dom_var_def>bool DIMSD1;
1725 VAR_DEF(bool, sd1, 281, (false), (false), (), ValidateNone())
1726 
1765 //<dom_var_def>bool DIMSD2;
1766 VAR_DEF(bool, sd2, 282, (false), (false), (), ValidateNone())
1767 
1806 //<dom_var_def>bool DIMSE1;
1807 VAR_DEF(bool, se1, 75, (false), (false), (), ValidateNone())
1808 
1846 //<dom_var_def>bool DIMSE2;
1847 VAR_DEF(bool, se2, 76, (false), (false), (), ValidateNone())
1848 
1887 //<dom_var_def>bool DIMSOXD;
1888 ANNOVAR_DEF(bool, soxd, 175, (false), (false), (), ValidateNone())
1889 
1934 //<dom_var_def>OdInt16 DIMTAD;
1935 VAR_DEF(OdInt16, tad, 77, (0), (1), (), ValidateRange(0,4))
1936 
1970 //<dom_var_def>OdInt16 DIMTDEC;
1971 VAR_DEF(OdInt16, tdec, 272, (4), (2), (), ValidateRange(0,8))
1972 
2004 //<dom_var_def>double DIMTFAC;
2005 VAR_DEF(double, tfac, 146, (1.0), (1.0), (), ValidatePositiveNonZero())
2006 
2045 //<dom_var_def>bool DIMTIH;
2046 VAR_DEF(bool, tih, 73, (true), (false), (), ValidateNone())
2047 
2086 //<dom_var_def>bool DIMTIX;
2087 ANNOVAR_DEF(bool, tix, 174, (false), (false), (), ValidateNone())
2088 
2121 //<dom_var_def>double DIMTM;
2122 VAR_DEF(ODTDIST, tm, 48, (0.0), (0.0), (), ValidateNone())
2123 
2166 //<dom_var_def>OdInt16 DIMTMOVE;
2167 ANNOVAR_DEF(OdInt16, tmove, 279, (0), (0), (), ValidateRange(0,2))
2168 
2206 //<dom_var_def>bool DIMTOFL;
2207 ANNOVAR_DEF(bool, tofl, 172, (false), (true), (), ValidateNone())
2208 
2246 //<dom_var_def>bool DIMTOH;
2247 VAR_DEF(bool, toh, 74, (true), (false), (), ValidateNone())
2248 
2286 //<dom_var_def>bool DIMTOL;
2287 VAR_DEF(bool, tol, 71, (false), (false), (), ValidateNone())
2288 
2328 //<dom_var_def>OdUInt8 DIMTOLJ;
2329 VAR_DEF(OdUInt8, tolj, 283, (1), (0), (), ValidateRange(0,2))
2330 
2362 //<dom_var_def>double DIMTP;
2363 VAR_DEF(ODTDIST, tp, 47, (0.0), (0.0), (), ValidateNone())
2364 
2424 //<dom_var_def>double DIMTSZ;
2425 VAR_DEF(ODTDIST, tsz, 142, (0.0), (0.0), (), ValidatePositive())
2426 
2460 //<dom_var_def>double DIMTVP;
2461 VAR_DEF(double, tvp, 145, (0.0), (0.0), (), ValidateNone())
2462 
2494 //<dom_var_def>OdDbObjectId DIMTXSTY;
2496 
2534 //<dom_var_def>double DIMTXT;
2535 VAR_DEF(ODTDIST, txt, 140, (0.18), (2.5), (), ValidatePositiveNonZero())
2536 
2582 //<dom_var_def>OdUInt8 DIMTZIN;
2583 VAR_DEF(OdUInt8, tzin, 284, (0), (8), (), ValidateRange(0,15))
2584 
2622 //<dom_var_def>bool DIMUPT;
2623 VAR_DEF(bool, upt, 288, (false), (false), (), ValidateNone())
2624 
2670 //<dom_var_def>OdUInt8 DIMZIN;
2671 VAR_DEF(OdUInt8, zin, 78, (0), (8), (), ValidateRange(0,15))
2672 
2673 
2674 //--------------------------------------------new in R21------------------------------------------------------
2675 
2709 //<dom_var_def>double DIMFXL;
2710 VAR_DEF(ODTDIST, fxl, 49, (1.0), (1.0), (), ValidateNone())
2711 
2752 //<dom_var_def>bool DIMFXLON;
2753 VAR_DEF(bool, fxlon, 290, (false), (false), (), ValidateBOOL())
2754 
2790 //<dom_var_def>double DIMJOGANG;
2792 
2835 //<dom_var_def>OdInt16 DIMTFILL;
2836 VAR_DEF(OdInt16, tfill, 69, (0), (0), (), ValidateRange(0, 2))
2837 
2872 //<dom_var_def>OdCmColor DIMTFILLCLR;
2874 
2914 //<dom_var_def>OdInt16 DIMARCSYM;
2915 VAR_DEF(OdInt16, arcsym, 90, (0), (0), (), ValidateRange(0, 2))
2916 
2948 //<dom_var_def>OdDbObjectId DIMLTYPE;
2950 
2982 //<dom_var_def>OdDbObjectId DIMLTEX1;
2984 
3016 //<dom_var_def>OdDbObjectId DIMLTEX2;
3018 
3019 //--------------------------------------------new in R24------------------------------------------------------
3020 
3036 VAR_DEF(bool, txtdirection, 294, (false), (false), (), ValidateBOOL())
3037 
3045 VAR_DEF(double, mzf, 297, (100.0), (100.0), (), ValidateNone())
3046 
3054 VAR_DEF(OdString, mzs, 298, (OD_T("")), (OD_T("")), (), ValidateNone())
3055 
3063 VAR_DEF(double, altmzf, 295, (100.0), (100.0), (), ValidateNone())
3064 
3072 VAR_DEF(OdString, altmzs, 296, (OD_T("")), (OD_T("")), (), ValidateNone())
3073 
3074 
3075 #ifdef DOUNDEF_ODTDB_LINEWEIGHT
3076 #undef ODTDB_LINEWEIGHT
3077 #undef DOUNDEF_ODTDB_LINEWEIGHT
3078 #endif
3079 
3080 #ifdef DOUNDEF_ODTDIST
3081 #undef ODTDIST
3082 #undef DOUNDEF_ODTDIST
3083 #endif
3084 
3085 #ifdef DOUNDEF_ODTUNITLESS
3086 #undef ODTUNITLESS
3087 #undef DOUNDEF_ODTUNITLESS
3088 #endif
3089 
3090 #ifdef DOUNDEF_ODTORIENT
3091 #undef ODTORIENT
3092 #undef DOUNDEF_ODTORIENT
3093 #endif
3094 
3095 #ifdef DOUNDEF_ODTDECSEP
3096 #undef ODTDECSEP
3097 #undef DOUNDEF_ODTDECSEP
3098 #endif
3099 
3100 #ifdef DOUNDEF_ODTARROWBLK
3101 #undef ODTARROWBLK
3102 #undef DOUNDEF_ODTARROWBLK
3103 #endif
3104 
3105 #ifdef DOUNDEF_ODTTEXTSTYLEID
3106 #undef ODTTEXTSTYLEID
3107 #undef DOUNDEF_ODTTEXTSTYLEID
3108 #endif
3109 
3110 #ifdef DOUNDEF_ODTLINETYPEID
3111 #undef ODTLINETYPEID
3112 #undef DOUNDEF_ODTLINETYPEID
3113 #endif
3114 
3115 #ifdef DOUNDEF_NullIdAllowed
3116 #undef NullIdAllowed
3117 #undef DOUNDEF_NullIdAllowed
3118 #endif
3119 
OdaPI4
Definition: DimVarDefs.h:2791
lwd
Definition: DimVarDefs.h:1474
tih
Definition: DimVarDefs.h:2046
jogang
Definition: DimVarDefs.h:2791
tdec
Definition: DimVarDefs.h:1971
tofl
Definition: DimVarDefs.h:2207
altd
Definition: DimVarDefs.h:199
ValidateDimBlock()) BLKVAR_DEF(ODTARROWBLK
aunit
Definition: DimVarDefs.h:610
tzin
Definition: DimVarDefs.h:2583
tol
Definition: DimVarDefs.h:2287
altf
Definition: DimVarDefs.h:234
se1
Definition: DimVarDefs.h:1807
dsep
Definition: DimVarDefs.h:1057
alttz
Definition: DimVarDefs.h:352
alt
Definition: DimVarDefs.h:165
alttd
Definition: DimVarDefs.h:304
OD_T(""))
zin
Definition: DimVarDefs.h:2671
lunit
Definition: DimVarDefs.h:1426
clrd
Definition: DimVarDefs.h:846
ValidateBOOL()) VAR_DEF(ODTORIENT
ValidateDecSep()) VAR_DEF(ODTDIST
exe
Definition: DimVarDefs.h:1095
tolj
Definition: DimVarDefs.h:2329
altmzf
Definition: DimVarDefs.h:3063
fxl
Definition: DimVarDefs.h:2710
#define ODTLINETYPEID
Definition: DimVarDefs.h:71
toh
Definition: DimVarDefs.h:2247
ValidateLinetype(true)) VAR_DEF(ODTLINETYPEID
#define ODTORIENT
Definition: DimVarDefs.h:45
upt
Definition: DimVarDefs.h:2623
#define ODTDECSEP
Definition: DimVarDefs.h:55
tfac
Definition: DimVarDefs.h:2005
#define NullIdAllowed
Definition: DimVarDefs.h:76
mzs
Definition: DimVarDefs.h:3054
fxlon
Definition: DimVarDefs.h:2753
ValidateLineWeight()) VAR_DEF(ODTDB_LINEWEIGHT
ValidateRange(0, 8)) VAR_DEF(double
tfill
Definition: DimVarDefs.h:2836
#define ODTDIST
Definition: DimVarDefs.h:40
cen
Definition: DimVarDefs.h:805
txtdirection
Definition: DimVarDefs.h:3036
dec
Definition: DimVarDefs.h:953
lfac
Definition: DimVarDefs.h:1341
asz
Definition: DimVarDefs.h:523
lim
Definition: DimVarDefs.h:1381
arcsym
Definition: DimVarDefs.h:2915
post
Definition: DimVarDefs.h:1556
blk1
Definition: DimVarDefs.h:723
ltex2
Definition: DimVarDefs.h:3017
#define ODTDB_LINEWEIGHT
Definition: DimVarDefs.h:35
tp
Definition: DimVarDefs.h:2363
exo
Definition: DimVarDefs.h:1132
#define ODTARROWBLK
Definition: DimVarDefs.h:60
tsz
Definition: DimVarDefs.h:2425
dle
Definition: DimVarDefs.h:988
clrt
Definition: DimVarDefs.h:918
frac
Definition: DimVarDefs.h:1177
dli
Definition: DimVarDefs.h:1023
altz
Definition: DimVarDefs.h:449
ValidateDouble(5.0 *OdaPI/180.0, OdaPI2)) VAR_DEF(OdInt16
tad
Definition: DimVarDefs.h:1935
altrnd
Definition: DimVarDefs.h:269
rnd
Definition: DimVarDefs.h:1591
lwe
Definition: DimVarDefs.h:1519
txsty
Definition: DimVarDefs.h:2495
ValidateNone()) VAR_DEF(OdUInt16
blk
Definition: DimVarDefs.h:688
tix
Definition: DimVarDefs.h:2087
ValidatePositiveNonZero()) VAR_DEF(bool
azin
Definition: DimVarDefs.h:653
ValidatePositive()) VAR_DEF(ODTDECSEP
tfillclr
Definition: DimVarDefs.h:2873
tm
Definition: DimVarDefs.h:2122
atfit
Definition: DimVarDefs.h:566
ltex1
Definition: DimVarDefs.h:2983
tmove
Definition: DimVarDefs.h:2167
gap
Definition: DimVarDefs.h:1222
sd1
Definition: DimVarDefs.h:1725
true
Definition: DimVarDefs.h:2046
scale
Definition: DimVarDefs.h:1684
ltype
Definition: DimVarDefs.h:2949
VAR_DEF(OdInt16, adec, 179,(0),(0),(), ValidateRange(0, 8)) VAR_DEF(bool
txt
Definition: DimVarDefs.h:2535
altmzs
Definition: DimVarDefs.h:3072
clre
Definition: DimVarDefs.h:881
#define ANNOVAR_DEF
Definition: DimVarDefs.h:31
se2
Definition: DimVarDefs.h:1847
altu
Definition: DimVarDefs.h:401
just
Definition: DimVarDefs.h:1266
false
Definition: DimVarDefs.h:165
#define ODTTEXTSTYLEID
Definition: DimVarDefs.h:65
sah
Definition: DimVarDefs.h:1635
ValidateTextStyle(NullIdAllowed)) VAR_DEF(ODTDIST
blk2
Definition: DimVarDefs.h:758
ldrblk
Definition: DimVarDefs.h:1306
sd2
Definition: DimVarDefs.h:1766
#define BLKVAR_DEF
Definition: DimVarDefs.h:27
mzf
Definition: DimVarDefs.h:3045
apost
Definition: DimVarDefs.h:486
soxd
Definition: DimVarDefs.h:1888
tvp
Definition: DimVarDefs.h:2461
ValidateColor()) VAR_DEF(OdCmColor
short OdInt16
unsigned short OdUInt16
unsigned char OdUInt8
#define OdaPI
Definition: OdaCommon.h:51
OdaPI2
Definition: SysVarDefs.h:5779
@ kLnWtByBlock
Definition: OdaDefs.h:408