CFx SDK Documentation  2020SP3
fxdbvardefs.h
Go to the documentation of this file.
1 //
2 // (C) Copyright 2005-2020 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 #endif // FX_VAR_DEF
55 
56 #if defined( FX_VAR_DEF_RO )
57  FX_VAR_DEF_RO( OdInt16, UNDOCTL, (53), (53), Int16, kRtInt16, ValidateNone() )
58 
59  FX_VAR_DEF_RO( double, AREA, (0.0), (0.0), Double, kRtDouble, ValidateNone() )
60 
61  FX_VAR_DEF_RO( OdInt16, CMDACTIVE, (0), (0), Int16, kRtInt16, ValidateRange(0, 127) )
62  FX_VAR_DEF_RO( OdString, CMDNAMES, (""), (""), String, kRtString, ValidateNone() )
63 
64  FX_VAR_DEF_RO( OdInt16, DIASTAT, (0), (0), Int16, kRtInt16, ValidateNone() )
65  FX_VAR_DEF_RO( double, DISTANCE, (0.0), (0.0), Double, kRtDouble, ValidateNone() )
66 
67  FX_VAR_DEF_RO( OdInt16, ERRNO, (0), (0), Int16, kRtInt16, ValidateNone() )
68 
69  FX_VAR_DEF_RO( OdInt16, HANDLES, (1), (1), Int16, kRtInt16, ValidateNone() )
70 
71  FX_VAR_DEF_RO( double, LASTANGLE, (0), (0), Double, kRtDouble, ValidateNone() )
72  FX_VAR_DEF_RO( OdString, LOGFILENAME, ("output.log"), ("output.log"), String, kRtString, ValidateNone() )
73 
74  FX_VAR_DEF_RO( OdInt16, OPENFORMATVERSION, (0), (0), Int16, kRtInt16, ValidateNone() )
75 
76  FX_VAR_DEF_RO( double, PERIMETER, (0.0), (0.0), Double, kRtDouble, ValidateNone() )
77  FX_VAR_DEF_RO( OdString, PREVCMD, (""), (""), String, kRtString, ValidateNone() )
78 
79  //FX_VAR_DEF_RO( double, TDCREATE, (0.0), (0.0), Double, kRtDouble, ValidateNone() )
80  //FX_VAR_DEF_RO( double, TDUPDATE, (0.0), (0.0), Double, kRtDouble, ValidateNone() )
81 
82  FX_VAR_DEF_RO( OdGePoint3d, VSMAX, (), (), Point3d, kRtPoint3d, ValidateNone() )
83  FX_VAR_DEF_RO( OdGePoint3d, VSMIN, (), (), Point3d, kRtPoint3d, ValidateNone() )
84 
85  FX_VAR_DEF_RO( OdInt16, WRITESTAT, (1), (1), Int16, kRtInt16, ValidateRange(0,1) )
86  FX_VAR_DEF_RO( OdInt16, DBMOD, (0), (0), Int16, kRtInt16, ValidateNone() )
87 
88 #endif // FX_VAR_DEF_RO
89 
OdString
Definition: OdString.h:95
Oda2PI
#define Oda2PI
Definition: OdaCommon.h:57
FX_VAR_DEF_RO
#define FX_VAR_DEF_RO(type, name, def_val, metric_def_value, filerType, rbType, validation)
Definition: FxDatabase.h:242
OdInt16
short OdInt16
Definition: OdPlatformSettings.h:756
OdGePoint3d
Definition: GePoint3d.h:55
HPTRANSPARENCY
HPTRANSPARENCY
Definition: SysVarDefs.h:6831
OdTf::Point3d
@ Point3d
Definition: Tf.h:409
OdTf::String
@ String
Definition: Tf.h:402
ValidateNone
ValidateNone()) VAR_DEF(OdUInt16
ValidateRange
ValidateRange(0, 8)) VAR_DEF(double
FX_VAR_DEF
#define FX_VAR_DEF(type, name, def_val, metric_def_value, filerType, rbType, validation)
Definition: FxDatabase.h:241
ValidatePositive
ValidatePositive()) VAR_DEF(ODTDECSEP
OdTf::Double
@ Double
Definition: Tf.h:400