CFx SDK Documentation  2023 SP0
fxdbvardefs.h
Go to the documentation of this file.
1 //
2 // (C) Copyright 2005-2022 by Graebert GmbH.
3 //
4 // Permission to use, copy, modify, and distribute this software in
5 // object code form for any purpose and without fee is hereby granted,
6 // provided that the above copyright notice appears in all copies and
7 // that both that copyright notice and the limited warranty and
8 // restricted rights notice below appear in all supporting
9 // documentation.
10 //
11 // GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
12 // GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
13 // MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
14 // DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
15 // UNINTERRUPTED OR ERROR FREE.
16 
17 // !!! If you change the order of variables you should
18 // verify that applyPartialUndo() is not broken ( UNDOCTL must be
19 // first in the list) !!!
20 
21 // Type Name Default Metric Default Filer Type ResBuf Type Range
22 #if defined( FX_VAR_DEF )
23  FX_VAR_DEF( double, CIRCLERAD, (0), (0), Double, kRtDouble, ValidatePositive() )
24  FX_VAR_DEF( OdInt16, CMDECHO, (1), (1), Int16, kRtInt16, ValidateRange(0,1) )
25  FX_VAR_DEF( double, HPANG, (0), (0), Double, kRtAngle, ValidateRange(0, Oda2PI) )
26  FX_VAR_DEF( OdInt16, HPBOUND, (1), (1), Int16, kRtInt16, ValidateRange(0,1) )
27  FX_VAR_DEF( OdInt16, HPDOUBLE, (0), (0), Int16, kRtInt16, ValidateRange(0,1) )
28  FX_VAR_DEF( OdInt16, HPDRAWORDER, (3), (3), Int16, kRtInt16, ValidateRange(0,4) )
29  FX_VAR_DEF( OdString, HPNAME, ("ANSI31"), ("ANSI31"), String, kRtString, ValidateNone() )
30  FX_VAR_DEF( double, HPSCALE, (1.0), (1.0), Double, kRtDouble, ValidatePositive() )
31  FX_VAR_DEF( double, HPSPACE, (1.0), (1.0), Double, kRtDouble, ValidatePositive() )
32 #if TD_VERSION < 40301
33  FX_VAR_DEF( OdString, HPTRANSPARENCY, (""), (""), String, kRtString, ValidateNone() )
34 #endif
35  FX_VAR_DEF( OdString, INSNAME, (""), (""), String, kRtString, ValidateNone() )
36  FX_VAR_DEF( OdString, LSPALOAD, (""), (""), String, kRtString, ValidateNone() )
37  FX_VAR_DEF( OdGePoint3d, LASTPOINT, (), (), Point3d, kRtPoint3d, ValidateNone() )
38  FX_VAR_DEF( double, OFFSETDIST, (1.0), (1.0), Double, kRtDouble, ValidateNone() )
39  FX_VAR_DEF( double, DONUTID, (0.5), (0.5), Double, kRtDouble, ValidatePositive() )
40  FX_VAR_DEF( double, DONUTOD, (1.0), (1.0), Double, kRtDouble, ValidatePositive() )
41  FX_VAR_DEF( double, FILLETRAD3D, (1.0), (1.0), Double, kRtDouble, ValidatePositive() )
42  //dim offset vars
43  FX_VAR_DEF( double, DIMRAILFIRSTOFFSET, (0.40), (10.0), Double, kRtDouble, ValidatePositive() )
44  FX_VAR_DEF( double, DIMRAILOFFSET, (0.25), (6.0), Double, kRtDouble, ValidatePositive() )
45  FX_VAR_DEF( double, DIMRAILANGLE, (Oda2PI/24.0), (Oda2PI/24.0), Double, kRtAngle, ValidatePositive() )
46  FX_VAR_DEF( OdInt16, DIMRAILSENABLED, (1), (1), Int16, kRtInt16, ValidateRange(0,1) )
47 
48  FX_VAR_DEF( double, CLEXTENSION, (0.25), (2.5), Double, kRtDouble, ValidatePositive() )
49 
50  FX_VAR_DEF( double, NUDGEOFFSET, (0.1), (2.5), Double, kRtDouble, ValidatePositive() )
51  FX_VAR_DEF( double, NUDGECONSTMULTIPLIER,(1.0), (1.0), Double, kRtDouble, ValidatePositive() )
52  FX_VAR_DEF( OdInt16, NUDGEFACTOR, (1), (1), Int16, kRtInt16, ValidateRange(1,10) )
53 
54  //Drawing Compare
55  FX_VAR_DEF( OdString, COMPARECOLORCLOUD, ("40"), ("40"), String, kRtString, ValidateStringColor() )
56  FX_VAR_DEF( OdInt16, COMPAREFRONT, (1), (1), Int16, kRtInt16, ValidateRange(1, 2) )
57  FX_VAR_DEF( OdInt16, COMPAREHATCH, (0), (0), Int16, kRtInt16, ValidateRange(0, 1) )
58  FX_VAR_DEF( OdInt16, COMPARERCMARGIN, (5), (5), Int8, kRtInt8, ValidateRange(1, 25) )
59  FX_VAR_DEF( OdInt16, COMPARERCSHAPE, (0), (0), Int16, kRtInt16, ValidateRange(0, 1) )
60  FX_VAR_DEF( OdInt16, COMPARESHOW1, (1), (1), Int16, kRtInt16, ValidateRange(0, 1) )
61  FX_VAR_DEF( OdInt16, COMPARESHOW2, (1), (1), Int16, kRtInt16, ValidateRange(0, 1) )
62  FX_VAR_DEF( OdInt16, COMPARESHOWCOMMON, (1), (1), Int16, kRtInt16, ValidateRange(0, 1) )
63  FX_VAR_DEF( OdInt16, COMPARETEXT, (1), (1), Int16, kRtInt16, ValidateRange(0, 1) )
64  FX_VAR_DEF( OdInt16, COMPARETOLERANCE, (6), (6), Int8, kRtInt8, ValidateRange(0, 14) )
65 
66  FX_VAR_DEF( OdInt16, ANNOMONITOR, (-2), (-2), Int16, kRtInt16, ValidateRange(-2, 2) )
67 
68 #endif // FX_VAR_DEF
69 
70 #if defined( FX_VAR_DEF_RO )
71  FX_VAR_DEF_RO( OdInt16, UNDOCTL, (53), (53), Int16, kRtInt16, ValidateNone() )
72 
73  FX_VAR_DEF_RO( double, AREA, (0.0), (0.0), Double, kRtDouble, ValidateNone() )
74 
75  FX_VAR_DEF_RO( OdInt16, CMDACTIVE, (0), (0), Int16, kRtInt16, ValidateRange(0, 127) )
76  FX_VAR_DEF_RO( OdString, CMDNAMES, (""), (""), String, kRtString, ValidateNone() )
77 
78  FX_VAR_DEF_RO( OdInt16, DIASTAT, (0), (0), Int16, kRtInt16, ValidateNone() )
79  FX_VAR_DEF_RO( double, DISTANCE, (0.0), (0.0), Double, kRtDouble, ValidateNone() )
80 
81  FX_VAR_DEF_RO( OdInt16, ERRNO, (0), (0), Int16, kRtInt16, ValidateNone() )
82 
83  FX_VAR_DEF_RO( OdInt16, HANDLES, (1), (1), Int16, kRtInt16, ValidateNone() )
84 
85  FX_VAR_DEF_RO( double, LASTANGLE, (0), (0), Double, kRtDouble, ValidateNone() )
86  FX_VAR_DEF_RO( OdString, LOGFILENAME, ("output.log"), ("output.log"), String, kRtString, ValidateNone() )
87 
88  FX_VAR_DEF_RO( OdInt16, OPENFORMATVERSION, (0), (0), Int16, kRtInt16, ValidateNone() )
89 
90  FX_VAR_DEF_RO( double, PERIMETER, (0.0), (0.0), Double, kRtDouble, ValidateNone() )
91  FX_VAR_DEF_RO( OdString, PREVCMD, (""), (""), String, kRtString, ValidateNone() )
92 
93  //FX_VAR_DEF_RO( double, TDCREATE, (0.0), (0.0), Double, kRtDouble, ValidateNone() )
94  //FX_VAR_DEF_RO( double, TDUPDATE, (0.0), (0.0), Double, kRtDouble, ValidateNone() )
95 
96  FX_VAR_DEF_RO( OdGePoint3d, VSMAX, (), (), Point3d, kRtPoint3d, ValidateNone() )
97  FX_VAR_DEF_RO( OdGePoint3d, VSMIN, (), (), Point3d, kRtPoint3d, ValidateNone() )
98 
99  FX_VAR_DEF_RO( OdInt16, WRITESTAT, (1), (1), Int16, kRtInt16, ValidateRange(0,1) )
100  FX_VAR_DEF_RO( OdInt16, DBMOD, (0), (0), Int16, kRtInt16, ValidateNone() )
101 
102 #endif // FX_VAR_DEF_RO
103 
ValidateRange(0, 8)) VAR_DEF(double
ValidateNone()) VAR_DEF(OdUInt16
ValidatePositive()) VAR_DEF(ODTDECSEP
#define FX_VAR_DEF_RO(type, name, def_val, metric_def_value, filerType, rbType, validation)
Definition: FxDatabase.h:242
#define FX_VAR_DEF(type, name, def_val, metric_def_value, filerType, rbType, validation)
Definition: FxDatabase.h:241
short OdInt16
#define Oda2PI
Definition: OdaCommon.h:57
HPTRANSPARENCY
Definition: SysVarDefs.h:6831
@ String
Definition: Tf.h:402
@ Point3d
Definition: Tf.h:409
@ Double
Definition: Tf.h:400