/////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2002-2016, Open Design Alliance (the "Alliance"). // All rights reserved. // // This software and its documentation and related materials are owned by // the Alliance. The software may only be incorporated into application // programs owned by members of the Alliance, subject to a signed // Membership Agreement and Supplemental Software License Agreement with the // Alliance. The structure and organization of this software are the valuable // trade secrets of the Alliance and its suppliers. The software is also // protected by copyright law and international treaty provisions. Application // programs incorporating this software must include the following statement // with their copyright notices: // // This application incorporates Teigha(R) software pursuant to a license // agreement with Open Design Alliance. // Teigha(R) Copyright (C) 2002-2016 by Open Design Alliance. // All rights reserved. // // By use of this software, its documentation or related materials, you // acknowledge and accept the above terms. /////////////////////////////////////////////////////////////////////////////// /********************************************************* // Macros description: /********************************************************* VAR_DEF(type, VarName,...) Variable support is generated in OdDbDatabase::getVarName/setVarName() and OdDbDatabase::get/setSysVar() RO_VAR_DEF(type, VarName,...) Read-only Variable support is generated in OdDbDatabase::getVarName() and OdDbDatabase::getSysVar() VAR_DEF_H(type, VarName,...) Variable support is generated in OdDbDatabase::getVarName/setVarName() only. If get/setSysVar() is available see QuasiVarDefs.h Note: Such variables may work differently in OdDbDatabase::get/setXXX()and get/setSysVar() For example: There are get/set OdDbDatabase methods for both EXTMIN(MS) and PEXTMIN(PS) but get/setSysVar() is for EXTMIN only. It works with extents of current space. RO_VAR_DEF_H(type, VarName,...) The same as VAR_DEF_H but only OdDbDatabase::getVarName() is generated. VAR_DEF_2 Similar to VAR_DEF but some special processing in set methods is required and OdDbDatabase::setVarName() method is implemented manually. Example - OdDbDatabase::setTEXTSTYLE() also changes TEXTSIZE. And OdDbDatabase::setTEXTSIZE() changes prior size in current Text Style DICR15VAR DICR21VAR DICR24VAR DICR27VAR Similar to VAR_DEF. Difference is that in some file versions these variables present in Database header and in minor file versions they are round-tripped via Variables Dictionary MLEADERSTYLE_VAR_DEF ANNO_VAR_DEF A special cases of DICR21VAR, used to differentiate CANNOSCALE and CMLEADERSCALE from other usual system variables in some cases. By default is equal to DICR21VAR. REGVAR_DEF(type, VarName,...) Variable support is generated in OdDbHostAppServices (getVarName/setVarName) and OdDbDatabase::get/setSysVar() */ #ifndef RO_VAR_DEF #define RO_VAR_DEF VAR_DEF /* {Secret} */ #define DOUNDEF_RO_VAR_DEF #endif #ifndef RO_VAR_DEF_H #define RO_VAR_DEF_H RO_VAR_DEF /* {Secret} */ #define DOUNDEF_RO_VAR_DEF_H #endif #ifndef VAR_DEF_H #define VAR_DEF_H VAR_DEF /* {Secret} */ #define DOUNDEF_VAR_DEF_H #endif #ifndef DICR15VAR #define DOUNDEF_DICR15VAR #define DICR15VAR VAR_DEF /* {Secret} */ #endif #ifndef DICR21VAR #define DOUNDEF_DICR21VAR #define DICR21VAR VAR_DEF /* {Secret} */ #define DOUNDEF_DICR21VAR_H #define DICR21VAR_H VAR_DEF_H /* {Secret} */ #else #define DOUNDEF_DICR21VAR_H #define DICR21VAR_H DICR21VAR /* {Secret} */ #endif #ifndef DICR24VAR #define DOUNDEF_DICR24VAR #define DICR24VAR DICR21VAR /* {Secret} */ #define DOUNDEF_DICR24VAR_H #define DICR24VAR_H DICR21VAR_H /* {Secret} */ #else #define DOUNDEF_DICR24VAR_H #define DICR24VAR_H DICR24VAR /* {Secret} */ #endif #ifndef DICR27VAR #define DOUNDEF_DICR27VAR #define DICR27VAR DICR21VAR /* {Secret} */ #define DOUNDEF_DICR27VAR_H #define DICR27VAR_H DICR21VAR_H /* {Secret} */ #else #define DOUNDEF_DICR27VAR_H #define DICR27VAR_H DICR27VAR /* {Secret} */ #endif #ifndef ANNO_VAR_DEF #define DOUNDEF_ANNO_VAR_DEF #define ANNO_VAR_DEF DICR21VAR /* {Secret} */ #endif #ifndef MLEADERSTYLE_VAR_DEF #define DOUNDEF_MLEADERSTYLE_VAR_DEF #define MLEADERSTYLE_VAR_DEF DICR21VAR /* {Secret} */ #endif #ifndef VAR_DEF_2 #define DOUNDEF_VAR_DEF_2 #define VAR_DEF_2 VAR_DEF /* {Secret} */ #endif #ifndef ODTBOOL #define ODTBOOL bool /* {Secret} */ #endif #ifndef ODTDIST #define ODTDIST double /* {Secret} */ #endif #ifndef ODTORIENT #define ODTORIENT double /* {Secret} */ #endif #ifndef ODTUNITLESS4 #define ODTUNITLESS4 double /* {Secret} */ #endif #ifndef ODTUNITLESS8 #define ODTUNITLESS8 double /* {Secret} */ #endif #ifndef ODTDB_MEASUREMENTVALUE #define ODTDB_MEASUREMENTVALUE OdDb::MeasurementValue /* {Secret} */ #endif #ifndef ODTDB_LINEWEIGHT #define ODTDB_LINEWEIGHT OdDb::LineWeight /* {Secret} */ #endif #ifndef ODTDB_JOINSTYLE #define ODTDB_JOINSTYLE OdDb::JoinStyle /* {Secret} */ #endif #ifndef ODTDB_UNITSVALUE #define ODTDB_UNITSVALUE OdDb::UnitsValue /* {Secret} */ #endif #ifndef ODTDB_PROXYIMAGE #define ODTDB_PROXYIMAGE OdDb::ProxyImage /* {Secret} */ #endif #ifndef ODTDB_MEASUREMENTVALUE #define ODTDB_MEASUREMENTVALUE OdDb::MeasurementValue /* {Secret} */ #endif #ifndef ODTDB_ENDCAPS #define ODTDB_ENDCAPS OdDb::EndCaps /* {Secret} */ #endif #ifndef ODTDB_JOINSTYLE #define ODTDB_JOINSTYLE OdDb::JoinStyle /* {Secret} */ #endif #ifndef ODTDB_PLOTSTYLENAMETYPE #define ODTDB_PLOTSTYLENAMETYPE OdDb::PlotStyleNameType /* {Secret} */ #endif #ifndef ODDBOBJECTID #define ODDBOBJECTID OdDbObjectId /* {Secret} */ #endif #ifndef ODDBHARDPOINTERID #define ODDBHARDPOINTERID ODDBOBJECTID /* {Secret} */ #endif #ifndef ODTTEXTSTYLEID #define ODTTEXTSTYLEID ODDBOBJECTID /* {Secret} */ #endif #ifndef ODTLAYERID #define ODTLAYERID ODDBOBJECTID /* {Secret} */ #endif #ifndef ODTLAYERIDDEF #define ODTLAYERIDDEF ODTLAYERID /* {Secret} */ #endif #ifndef ODTLINETYPEID #define ODTLINETYPEID ODDBOBJECTID /* {Secret} */ #endif #ifndef ODTDIMSTYLEID #define ODTDIMSTYLEID ODDBOBJECTID /* {Secret} */ #endif #ifndef ODTUCSID #define ODTUCSID ODDBOBJECTID /* {Secret} */ #endif #ifndef ODTMLSTYLEID #define ODTMLSTYLEID ODDBOBJECTID /* {Secret} */ #endif #ifndef ODTDB_TIMEZONE #define ODTDB_TIMEZONE OdDb::TimeZone /* {Secret} */ #endif #ifndef ODTDB_SHADOWFLAGS #define ODTDB_SHADOWFLAGS OdGiSubEntityTraits::ShadowFlags /* {Secret} */ #endif #ifndef ODVISTYLEID #define ODVISTYLEID ODDBOBJECTID /* {Secret} */ #endif #ifndef ODTMATERIALID #define ODTMATERIALID ODDBOBJECTID /* {Secret} */ #endif #ifndef ODTDB_LOFTPARAMTYPE #define ODTDB_LOFTPARAMTYPE OdDb::LoftParamType /* {Secret} */ #endif #ifndef ODTDB_LOFTNORMALSTYPE #define ODTDB_LOFTNORMALSTYPE OdDb::LoftNormalsType /* {Secret} */ #endif #ifndef ODTTABLESTYLEID #define ODTTABLESTYLEID ODDBOBJECTID /* {Secret} */ #endif #ifndef ODTMLEADERSTYLEID #define ODTMLEADERSTYLEID ODDBOBJECTID /* {Secret} */ #endif #ifndef ODTVIEWDETAILSTYLEID #define ODTVIEWDETAILSTYLEID ODDBOBJECTID /* {Secret} */ #endif #ifndef ODTVIEWSECTIONSTYLEID #define ODTVIEWSECTIONSTYLEID ODDBOBJECTID /* {Secret} */ #endif #ifndef ODANNOSCALE #define ODANNOSCALE OdDbAnnotationScalePtr /* {Secret} */ #endif #ifndef ODTTRANSPARENCYDEF #define ODTTRANSPARENCYDEF OdCmTransparency #endif #ifndef VAR_DEF /* {Secret} */ #define VAR_DEF(a,b,c,d,r1,r2) /* {Secret} */ #define DOUNDEF_VAR_DEF #endif #define SVARS_FUNC_MODIFIER virtual // Type Name Default Metric default Reserve1 Reserve2 /*** VARDOCS: "\n ANGBASE specifies the direction of angle 0 with respect to the UCS." "\n All angles are expressed in radians." */ VAR_DEF( ODTORIENT, ANGBASE, (0.0), (0.0), (), ValidateNone()) /*** VARDOCS: "\n ANGDIR controls the direction of positive angles with respect to the UCS. "\n" "\n @table" "\n Value Positive Angles" "\n false Counterclockwise" "\n true Clockwise */ VAR_DEF( ODTBOOL, ANGDIR, (false), (false), (), ValidateBOOL()) /*** VARDOCS: "\n INSBASE specifies the WCS insertion base point of model space." */ VAR_DEF_H( OdGePoint3d, INSBASE, (0.0, 0.0, 0.0), (0.0, 0.0, 0.0), (), ValidateNone()) /*** VARDOCS: "\n EXTMIN specifies the lower-left corner of the extents of model space." */ VAR_DEF_H( OdGePoint3d, EXTMIN, (1.E+20, 1.E+20, 1.E+20), (1.E+20, 1.E+20, 1.E+20), (), ValidateNone()) /*** VARDOCS: "\n EXTMAX specifies the upper-right corner of the extents of model space." */ VAR_DEF_H( OdGePoint3d, EXTMAX, (-1.E+20, -1.E+20, -1.E+20), (-1.E+20, -1.E+20, -1.E+20), (), ValidateNone()) /*** VARDOCS: "\n LIMMIN specifies the lower-left corner of the grid limits for model space." */ VAR_DEF_H( OdGePoint2d, LIMMIN, (0.0, 0.0), (0.0, 0.0), (), ValidateNone()) /*** VARDOCS: "\n LIMMAX specifies the upper-right corner of the grid limits for model space." */ VAR_DEF_H( OdGePoint2d, LIMMAX, (12.0, 9.0), (420.0, 297.0), (), ValidateNone()) /*** VARDOCS: "\n ORTHOMODE controls the constraint of cursor movement to the perpendicular." "\n" "\n @table" "\n Value Description" "\n false Not constrained" "\n true Constrained" */ VAR_DEF( ODTBOOL, ORTHOMODE, (false), (false), (), ValidateBOOL()) /*** VARDOCS: "\n REGENMODE controls automatic regeneration." "\n" "\n @table" "\n Value Description" "\n false Disabled" "\n true Enabled" */ VAR_DEF( ODTBOOL, REGENMODE, (true), (true), (), ValidateBOOL()) /*** VARDOCS: "\n FILLMODE controls the rendering of Hatches, 2D Solids, and wide Polylines." "\n" "\n @table" "\n Value Description" "\n false Disabled" "\n true Enabled" */ VAR_DEF( ODTBOOL, FILLMODE, (true), (true), (), ValidateBOOL()) /*** VARDOCS: "\n QTEXT controls the display of text. "\n" "\n @table" "\n Value Description" "\n false Text is displayed" "\n true Bounding box is displayed" */ VAR_DEF( ODTBOOL, QTEXTMODE, (false), (false), (), ValidateBOOL()) /*** VARDOCS: "\n MIRRTEXT controls the mirroring of Text with the MIRROR command." "\n" "\n @table" "\n Value Description" "\n false Not mirrored" "\n true Mirrored" */ VAR_DEF( ODTBOOL, MIRRTEXT, (true), (true), (), ValidateBOOL()) /*** VARDOCS: "\n LTSCALE specifies the global linetype scale factor." */ VAR_DEF( ODTUNITLESS4, LTSCALE, (1.0), (1.0), (), ValidatePositiveNonZero()) /*** VARDOCS: "\n ATTMODE controls the display of attributes." "\n" "\n @table" "\n Value Description" "\n 0 All attributes are invisible." "\n 1 Visible attributes are visible, and invisible, invisible." "\n 2 All attributes are visible." */ VAR_DEF( OdInt16, ATTMODE, (1), (1), (), ValidateRange(0,2)) /*** VARDOCS: "\n TEXTSIZE specifies the default size for new text entities in the current text style." */ VAR_DEF_2( ODTDIST, TEXTSIZE, (0.2), (2.5), (), ValidateGr(0.)) /*** VARDOCS: "\n TRACEWID is default width for new trace entities." */ VAR_DEF( ODTDIST, TRACEWID, (0.05), (1.0), (), ValidateEqGr(0.)) /*** VARDOCS: "\n TEXTSTYLE specifies the default style for new text entities." */ VAR_DEF_2( ODTTEXTSTYLEID, TEXTSTYLE, (OdDbObjectId::kNull), (OdDbObjectId::kNull), (), ValidateTextStyle()) /*** VARDOCS: "\n CLAYER specifies the default layer for new entities." */ VAR_DEF( ODTLAYERID, CLAYER, (OdDbObjectId::kNull), (OdDbObjectId::kNull), (), ValidateLayer()) /*** VARDOCS: "\n CELTYPE specifies the default linetype for new entities." */ VAR_DEF( ODTLINETYPEID, CELTYPE, (OdDbObjectId::kNull), (OdDbObjectId::kNull), (), ValidateLinetype()) /*** VARDOCS: "\n CECOLOR specifies the default color for new entities." */ VAR_DEF( OdCmColor, CECOLOR, (OdCmEntityColor::kByLayer), (OdCmEntityColor::kByLayer), (), ValidateNone()) /*** VARDOCS: "\n CELTSCALE specifies the default linetype scale for new entities." */ VAR_DEF( ODTUNITLESS4, CELTSCALE, (1.0), (1.0), (), ValidateGr(0.)) /*** VARDOCS: "\n CHAMFERA specifies the default first chamfer distance." */ VAR_DEF( ODTDIST, CHAMFERA, (0.0), (0.0), (), ValidateEqGr(0.)) /*** VARDOCS: "\n CHAMFERB specifies the default second chamfer distance." */ VAR_DEF( ODTDIST, CHAMFERB, (0.0), (0.0), (), ValidateEqGr(0.)) /*** VARDOCS: "\n CHAMFERC specifies the default chamfer length." */ VAR_DEF( ODTDIST, CHAMFERC, (0.0), (0.0), (), ValidateEqGr(0.)) /*** VARDOCS: "\n CHAMFERD specifies the default chamfer angle." "\n All angles are expressed in radians." */ VAR_DEF( ODTORIENT, CHAMFERD, (0.0), (0.0), (), ValidateNone()) /*** VARDOCS: "\n DISPSILH controls the display of silhouette curve edges and meshes." "\n" "\n @table" "\n Value Curve Edges Meshes" "\n false Not displayed Displayed" "\n true Displayed Not displayed" */ VAR_DEF( ODTBOOL, DISPSILH, (false), (false), (), ValidateBOOL()) /*** VARDOCS: "\n DIMSTYLE specifies the default dimension style for new entities." */ VAR_DEF( ODTDIMSTYLEID, DIMSTYLE, (OdDbObjectId::kNull), (OdDbObjectId::kNull), (), ValidateDimStyle()) /*** VARDOCS: "\n DIMASO controls the creation of dimension objects." "\n" "\n @table" "\n Value Description" "\n false Creates exploded dimensions (lines, arrowheads, text as separate entities." "\n true Creates single dimension entity." "\n DIMASO is depreciated, but is included for compatibility purposes." */ VAR_DEF( ODTBOOL, DIMASO, (true), (true), (), ValidateBOOL()) /*** VARDOCS: "\n DIMSHO controls the updating of associative dimension objects while dragging. "\n" "\n @table" "\n Value Description" "\n false Disabled" "\n true Enabled" "\n DIMSHO is depreciated, but is included for compatibility purposes." */ VAR_DEF( bool, DIMSHO, (true), (true), (), ValidateNone()) /*** VARDOCS: "\n LUNITS controls the display of linear units." "\n" "\n @table" "\n Value Description" "\n 1 Scientific" "\n 2 Decimal" "\n 3 Engineering" "\n 4 Architectural" "\n 5 Fractional" "\n LUNITS does not control the formatting of dimension text." */ VAR_DEF( OdInt16, LUNITS, (2), (2), (), ValidateRange(1,5)) /*** VARDOCS: "\n LUPREC specifies the number of decimal places in the display of linear units." "\n LUPREC does not control the formatting of dimension text." */ VAR_DEF( OdInt16, LUPREC, (4), (4), (), ValidateRange(0,8)) /*** VARDOCS: "\n SKETCHINC specifies the recording increment for the SKETCH command." */ VAR_DEF( ODTDIST, SKETCHINC, (0.1), (1.0), (), ValidateNone()) /*** VARDOCS: "\n FILLETRAD specifies the default fillet radius." */ VAR_DEF( ODTDIST, FILLETRAD, (0.5), (10.0), (), ValidateEqGr(0.)) /*** VARDOCS: "\n AUNITS controls the display of angular units." "\n" "\n @table" "\n Value Description" "\n 0 Degrees" "\n 1 Degrees-Minutes-Seconds" "\n 2 Gradians" "\n 3 Radians" "\n 4 Surveyor Units" "\n AUNITS does not control the formatting of dimension text." */ VAR_DEF( OdInt16, AUNITS, (0), (0), (), ValidateRange(0,4)) /*** VARDOCS: "\n AUPREC specifies the number of decimal places in the display of angular units." "\n AUPREC does not control the formatting of display of dimension text." */ VAR_DEF( OdInt16, AUPREC, (0), (0), (), ValidateRange(0,8)) /*** VARDOCS: "\n MENUNAME returns the path and filename of the customization file." */ VAR_DEF_H( OdString, MENUNAME, (OD_T(".")), (OD_T(".")), (), ValidateNone()) /*** VARDOCS: "\n ELEVATION specifies the default elevation for new entities in model space." */ VAR_DEF_H( ODTDIST, ELEVATION, (0.0), (0.0), (), ValidateNone()) /*** VARDOCS: "\n PELEVATION specifies the default elevation for new entities in the current paper space." */ VAR_DEF_H( ODTDIST, PELEVATION, (0.0), (0.0), (), ValidateNone()) /*** VARDOCS: "\n THICKNESS specifies the default 3D thickness for new entities." */ VAR_DEF( ODTDIST, THICKNESS, (0.0), (0.0), (), ValidateNone()) /*** VARDOCS: "\n LIMCHECK controls the specification of objects in model space by points outside the grid limits of" " model space. "\n" "\n @table" "\n Value Description" "\n false Points outside limits allowed" "\n true Points outside limits disallowed" */ VAR_DEF_H( ODTBOOL, LIMCHECK, (false), (false), (), ValidateBOOL()) /*** VARDOCS: "\n SKPOLY controls the generation of polylines during the SKETCH command." "\n" "\n @table" "\n Value Description" "\n false Generates Lines." "\n true Generates Polylines." */ VAR_DEF( ODTBOOL, SKPOLY, (false), (false), (), ValidateBOOL()) /*** VARDOCS: "\n TDUCREATE represents the time and date, in Universal Time, that the *database* was created." "\n odDbSetTDUCREATE" */ RO_VAR_DEF(OdDbDate, TDUCREATE, (OdDbDate::kInitZero), (OdDbDate::kInitZero), (), ValidateNone()) /*** VARDOCS: "\n TDUUPDATE represents the time and date, in Universal Time, that the *database* was last saved." "\n odDbSetTDUUPDATE" */ RO_VAR_DEF(OdDbDate, TDUUPDATE, (OdDbDate::kInitZero), (OdDbDate::kInitZero), (), ValidateNone()) /*** VARDOCS: "\n TDINDWG represents the total editing time of the database." "\n odDbSetTDINDWG" */ RO_VAR_DEF(OdDbDate, TDINDWG, (OdDbDate::kInitZero), (OdDbDate::kInitZero), (), ValidateNone()) /*** VARDOCS: "\n TDUSRTIMER represents the user-elapsed timer." "\n odDbSetTDUSRTIMER" */ RO_VAR_DEF(OdDbDate, TDUSRTIMER, (OdDbDate::kInitZero), (OdDbDate::kInitZero), (), ValidateNone()) /*** VARDOCS: "\n USRTIMER controls the user elapsed timer." "\n" "\n @table" "\n Value Description" "\n false Disabled" "\n true Enabled" */ VAR_DEF_H( ODTBOOL, USRTIMER, (true), (true), (), ValidateBOOL()) /*** VARDOCS: "\n PDMODE specifies the display of Point entities." */ VAR_DEF( OdInt16, PDMODE, (0), (0), (), ValidatePDMODE()) /*** VARDOCS: "\n PDSIZE specifies the display size of point entities." "\n" "\n @table" "\n Value Description" "\n < 0 Fraction of viewport size in drawing units." "\n 0 5% of viewport size in drawing units." "\n > 0 Size in drawing units." */ VAR_DEF( ODTDIST, PDSIZE, (0.0), (0.0), (), ValidateNone()) /*** VARDOCS: "\n PLINEWID specifies the default width for new Polyline entities." */ VAR_DEF( ODTDIST, PLINEWID, (0.0), (0.0), (), ValidateNone()) /*** VARDOCS: "\n SPLFRAME controls the display of control polygons for Splines and spline-fit Polylines." "\n" "\n @table" "\n Value Description" "\n false Disabled" "\n true Enabled" */ VAR_DEF( ODTBOOL, SPLFRAME, (false), (false), (), ValidateBOOL()) /*** VARDOCS: "\n SPLINETYPE specifies the type of spline generated by the PEDIT/Spline command." "\n" "\n @table" "\n Value Description" "\n 5 Quadratic B-spline." "\n 6 Cubic B-spline." */ VAR_DEF( OdInt16, SPLINETYPE, (6), (6), (), ValidateRange(5,6)) /*** VARDOCS: "\n SPLINESEGS specifies the number of segments generated by the PEDIT/Spline command." "\n" "\n Negative values produce arc segments, while positive values generate line segments." */ VAR_DEF( OdInt16, SPLINESEGS, (8), (8), (), ValidateNonZero()) /*** VARDOCS: "\n SURFTAB1 specifies the number of tabulations generated in the M direction by the" " EDGESURF, REVSURF, RULESURF, and TABSURF commands." */ VAR_DEF( OdInt16, SURFTAB1, (6), (6), (), ValidateNone()) /*** VARDOCS: "\n SURFTAB2 specifies the number of tabulations generated in the N direction by the EDGESURF and REVSURF commands." */ VAR_DEF( OdInt16, SURFTAB2, (6), (6), (), ValidateNone()) /*** VARDOCS: "\n SURFTYPE specifies the type of surface fitting for the PEDIT/Smooth command." "\n" "\n @table" "\n Value Description" "\n 5 Quadratic B-spline surface." "\n 6 Cubic B-spline surface" "\n 8 Bezier surface." */ VAR_DEF( OdInt16, SURFTYPE, (6), (6), (), ValidateRange(5,8)) /*** VARDOCS: "\n SURFU specifies the surface density in the M direction for the PEDIT/Smooth command." */ VAR_DEF( OdInt16, SURFU, (6), (6), (), ValidateRange(0,200)) /*** VARDOCS: "\n SURFV specifies the surface density in the N direction for the PEDIT/Smooth command." */ VAR_DEF( OdInt16, SURFV, (6), (6), (), ValidateRange(0,200)) /*** VARDOCS: "\n USERI1 is 'reserved for user applications.'" */ VAR_DEF( OdInt16, USERI1, (0), (0), (), ValidateNone()) /*** VARDOCS: "\n USERI2 is 'reserved for user applications.'" */ VAR_DEF( OdInt16, USERI2, (0), (0), (), ValidateNone()) /*** VARDOCS: "\n USERI3 is 'reserved for user applications.'" */ VAR_DEF( OdInt16, USERI3, (0), (0), (), ValidateNone()) /*** VARDOCS: "\n USERI4 is 'reserved for user applications.'" */ VAR_DEF( OdInt16, USERI4, (0), (0), (), ValidateNone()) /*** VARDOCS: "\n USERI5 is 'reserved for user applications.'" */ VAR_DEF( OdInt16, USERI5, (0), (0), (), ValidateNone()) /*** VARDOCS: "\n USERR1 is 'reserved for user applications.'" */ VAR_DEF( ODTDIST, USERR1, (0.0), (0.0), (), ValidateNone()) /*** VARDOCS: "\n USERR2 is 'reserved for user applications.'" */ VAR_DEF( ODTDIST, USERR2, (0.0), (0.0), (), ValidateNone()) /*** VARDOCS: "\n USERR3 is 'reserved for user applications.'" */ VAR_DEF( ODTDIST, USERR3, (0.0), (0.0), (), ValidateNone()) /*** VARDOCS: "\n USERR4 is 'reserved for user applications.'" */ VAR_DEF( ODTDIST, USERR4, (0.0), (0.0), (), ValidateNone()) /*** VARDOCS: "\n USERR5 is 'reserved for user applications.'" */ VAR_DEF( ODTDIST, USERR5, (0.0), (0.0), (), ValidateNone()) /*** VARDOCS: "\n WORLDVIEW controls the switching of the UCS to the WCS for the duration of the" "3DORBIT, DVIEW and VPOINT commands." "\n" "\n @table" "\n Value Description" "\n false UCS is unchanged." "\n true UCS switches to WCS." */ VAR_DEF( ODTBOOL, WORLDVIEW, (true), (true), (), ValidateBOOL()) /*** VARDOCS: "\n SHADEDGE specifies the rendering of faces and edges with the SHADE command." "\n" "\n @table" "\n Value Faces Edges" "\n 0 Shaded Not highlighted" "\n 1 Shaded Background color" "\n 2 Not filled Object Color" "\n 3 Object color Background Color" */ VAR_DEF( OdInt16, SHADEDGE, (3), (3), (), ValidateRange(0,3)) /*** VARDOCS: "\n SHADEDIF specifies the percentage of diffuse reflective light (vs. ambient light)" " when (SHADEDGE == 0) || (SHADEDGE == 1)." */ VAR_DEF( OdInt16, SHADEDIF, (70), (70), (), ValidateRange(0,100)) /*** VARDOCS: "\n TILEMODE controls the active tab." "\n" "\n @table" "\n Value Description" "\n false A Layout tab is active." "\n true The Model tab is active." "\n The last active Layout tab will be activated when TILEMODE is changed from true to false." */ VAR_DEF_2( ODTBOOL, TILEMODE, (true), (true), (), ValidateBOOL()) /*** VARDOCS: "\n MAXACTVP specifies the maximum of active viewports in a layout." */ VAR_DEF( OdInt16, MAXACTVP, (64), (64), (), ValidateRange(2,64)) /*** VARDOCS: "\n PINSBASE specifies the WCS insertion base point of the current paper space." */ VAR_DEF_H( OdGePoint3d, PINSBASE, (0.0, 0.0, 0.0), (0.0, 0.0, 0.0), (), ValidateNone()) /*** VARDOCS: "\n PLIMCHECK controls the specification of objects in paper space by points outside the grid limits of" " the current paper space. "\n" "\n @table" "\n Value Description" "\n false Points outside limits allowed" "\n true Points outside limits disallowed" */ VAR_DEF_H( ODTBOOL, PLIMCHECK, (false), (false), (), ValidateBOOL()) /*** VARDOCS: "\n PEXTMIN specifies the lower-left corner of the extents of the current paper space." */ VAR_DEF_H( OdGePoint3d, PEXTMIN, (1.E+20, 1.E+20, 1.E+20), (1.E+20, 1.E+20, 1.E+20), (), ValidateNone()) /*** VARDOCS: "\n PEXTMAX specifies the upper-right corner of the extents of the current paper space." */ VAR_DEF_H( OdGePoint3d, PEXTMAX, (-1.E+20, -1.E+20, -1.E+20), (-1.E+20, -1.E+20, -1.E+20), (), ValidateNone()) /*** VARDOCS: "\n PLIMMIN specifies the lower-left corner of the grid limits for the current paper space." */ VAR_DEF_H( OdGePoint2d, PLIMMIN, (0.0, 0.0), (0.0, 0.0), (), ValidateNone()) /*** VARDOCS: "\n PLIMMAX specifies the upper-right corner of the grid limits for the current paper space." */ VAR_DEF_H( OdGePoint2d, PLIMMAX, (12.0, 9.0), (420.0, 297.0), (), ValidateNone()) /*** VARDOCS: "\n UCSNAME specifies the current UCS for the current viewport of model space." */ VAR_DEF_H( ODDBHARDPOINTERID, UCSNAME, (OdDbObjectId::kNull), (OdDbObjectId::kNull), (), ValidateUcsRec()) /*** VARDOCS: "\n PUCSNAME specifies the current UCS for the current paper space." */ VAR_DEF_H( ODDBHARDPOINTERID, PUCSNAME, (OdDbObjectId::kNull), (OdDbObjectId::kNull), (), ValidateUcsRec()) /*** VARDOCS: "\n UNITMODE specifies the unit display format for Architectural Units and Surveyor's Units." "\n" "\n @table" "\n Value Architectural Units Surveyor's Units" "\n 0 12'-5 1/4\" N 48d0'0\" E" "\n 1 12'5-1/4\" N48d0'0\"E" "\n" "\n When UNITMODE = 1, the displayed units are in a format suitable for input." */ VAR_DEF( OdInt16, UNITMODE, (0), (0), (), ValidateRange(0,1)) /*** VARDOCS: "\n VISRETAIN specifies the precedence of layer settings for externally referenced databases." "\n" "\n @table" "\n Value Description" "\n false Settings are saved in the external reference." "\n true Settings are saved in the current *database*." "\n" "\n Layer settings include color, linetype, lineweight, plot styles, on/off and freeze/thaw" */ VAR_DEF( ODTBOOL, VISRETAIN, (true), (true), (), ValidateBOOL()) /*** VARDOCS: "\n PLINEGEN controls the generation of linetypes for Polylines." "\n" "\n @table" "\n Value Description" "\n false Each segment starts and ends in a dash." "\n true Linetype generation is continuous, ignoring the vertices." */ VAR_DEF( ODTBOOL, PLINEGEN, (false), (false), (), ValidateBOOL()) /*** VARDOCS: "\n PSLTSCALE controls the generation of linetypes for Polylines in paper space." "\n" "\n @table" "\n Value Description" "\n false Dash lengths in model space are based on model space drawing units." "\n true Dash lengths in model space are based on paper space drawing units." "\n" "\n When PSLTSCALE is true, linetypes in viewports will appear the same size as those in paper space." */ VAR_DEF( ODTBOOL, PSLTSCALE, (true), (true), (), ValidateBOOL()) /*** VARDOCS: "\n TREEDEPTH specifies depth of the spatial index." "\n" "\n" Spatial indexing, along with layer indexing, is used to maximize performance" " of demand loading and entity selection." "\n" "\n @table" "\n Value Description" "\n < 0 2D indexing. An integer in the form -MMMPP specifies the depths for model space (MMM) and paper space (PP)" "\n 0 Disables spatial indexing." "\n > 0 3D indexing. An integer in the form MMMPP specifies the depths for model space (MMM) and paper space (PP)." */ VAR_DEF( OdInt16, TREEDEPTH, (3020), (3020), (), ValidateNone()) /*** VARDOCS: "\n CMLSTYLE specifies the default style for new multiline entities." */ VAR_DEF( ODTMLSTYLEID, CMLSTYLE, (OdDbObjectId::kNull), (OdDbObjectId::kNull), (), ValidateMLStyle()) /*** VARDOCS: "\n CMLJUST specifies the default justification for new multiline entities." "\n" "\n @table" "\n Value Description" "\n 0 Top" "\n 1 Middle" "\n 2 Bottom" */ VAR_DEF( OdInt16, CMLJUST, (0), (0), (), ValidateRange(0,2)) /*** VARDOCS: "\n CMLSCALE specifies the default width scale for new multiline entities." */ VAR_DEF( ODTUNITLESS4, CMLSCALE, (1.0), (20.0), (), ValidateNone()) /*** VARDOCS: "\n PROXYGRAPHICS controls the saving of proxy images with the *database*." "\n" "\n @table" "\n Value Description" "\n 0 No proxy images." "\n 1 Proxy images saved with *database*." "\n PROXYGRAPHICS is called SAVEIMAGES in R13." */ VAR_DEF( OdInt16, PROXYGRAPHICS,(1), (1), (), ValidateRange(0,1)) /*** VARDOCS: "\n MEASUREMENT controls the use of metric vs. imperial linetype and hatch pattern files." "\n" "\n @table" "\n Name Value Registry Settings Used Default Settings" "\n OdDb::kEnglish 0 ANSILinetype & ANSIHatch acad.lin & acad.pat" "\n OdDb::kMetric 1 ISOLinetype & ISOHatch. acadiso.lin & acadiso.pat" */ VAR_DEF( ODTDB_MEASUREMENTVALUE, MEASUREMENT, (OdDb::kEnglish), (OdDb::kMetric), (), ValidateRange(OdDb::kEnglish,OdDb::kMetric)) /*** VARDOCS: "\n CELWEIGHT specifies the default lineweight for new entities." */ VAR_DEF( ODTDB_LINEWEIGHT, CELWEIGHT, (OdDb::kLnWtByLayer), (OdDb::kLnWtByLayer), (), ValidateLineWeight()) /*** VARDOCS: "\n ENDCAPS specifies the lineweight endcaps for new entities." "\n" "\n @table" "\n Name Value Description" "\n OdDb::kEndCapNone 0 None" "\n OdDb::kEndCapRound 1 Round" "\n OdDb::kEndCapAngle 2 Angle" "\n OdDb::kEndCapSquare 3 Square" */ VAR_DEF_H( ODTDB_ENDCAPS, ENDCAPS, (OdDb::kEndCapNone), (OdDb::kEndCapNone), (), ValidateRange(OdDb::kEndCapNone, OdDb::kEndCapSquare)) /*** VARDOCS: "\n JOINSTYLE specifies the lineweight join style for new entities." "\n" "\n @table" "\n Name Value Description" "\n OdDb::kJnStylNone 0 None" "\n OdDb::kJnStylRound 1 Round" "\n OdDb::kJnStylAngle 2 Angle" "\n OdDb::kJnStylFlat 3 Flat" */ VAR_DEF_H( ODTDB_JOINSTYLE, JOINSTYLE, (OdDb::kJnStylNone), (OdDb::kJnStylNone), (), ValidateRange(OdDb::kJnStylNone,OdDb::kJnStylFlat)) /*** VARDOCS: "\n LWDISPLAY controls the display of lineweights." "\n" "\n @table" "\n Value Description" "\n false Not displayed." "\n true Displayed." */ VAR_DEF( bool, LWDISPLAY, (false), (false), (), ValidateBOOL()) /*** VARDOCS: "\n INSUNITS specifies the drawing units used in the automatic scaling of blocks," " Xrefs, and images inserted into or attached to this *database*." "\n" "\n @table" "\n Name Value Description" "\n OdDb::kUnitsUndefined 0 Undefined" "\n OdDb::kUnitsInches 1 Inches" "\n OdDb::kUnitsFeet 2 Feet" "\n OdDb::kUnitsMiles 3 Miles" "\n OdDb::kUnitsMillimeters 4 Millimeters" "\n OdDb::kUnitsCentimeters 5 Centimeters" "\n OdDb::kUnitsMeters 6 Meters" "\n OdDb::kUnitsKilometers 7 Kilometers" "\n OdDb::kUnitsMicroinches 8 Microinches" "\n OdDb::kUnitsMils 9 Mils" "\n OdDb::kUnitsYards 10 Yards" "\n OdDb::kUnitsAngstroms 11 Angstroms" "\n OdDb::kUnitsNanometers 12 Nanometers" "\n OdDb::kUnitsMicrons 13 Microns" "\n OdDb::kUnitsDecimeters 14 Decimeters" "\n OdDb::kUnitsDekameters 15 Dekameters" "\n OdDb::kUnitsHectometers 16 Hectometers" "\n OdDb::kUnitsGigameters 17 Gigameters" "\n OdDb::kUnitsAstronomical 18 Astronomical" "\n OdDb::kUnitsLightYears 19 LightYears" "\n OdDb::kUnitsParsecs 20 Parsecs" */ VAR_DEF( ODTDB_UNITSVALUE, INSUNITS, (OdDb::kUnitsInches), (OdDb::kUnitsMillimeters), (), ValidateRange(OdDb::kUnitsUndefined,OdDb::kUnitsMax)) /*** VARDOCS: "\n TSTACKALIGN controls the alignment of stacked text." "\n" "\n @table" "\n Value Description" "\n 0 Bottom" "\n 1 Center" "\n 2 Top" */ VAR_DEF( OdUInt16, TSTACKALIGN, (1), (1), (), ValidateRange(0,2)) /*** VARDOCS: "\n TSTACKSIZE specifies the size of stacked text as a percentage of the current text height." */ VAR_DEF( OdUInt16, TSTACKSIZE, (70), (70), (), ValidateRange(25,125)) /*** VARDOCS: "\n HYPERLINKBASE specifies the base path for relative hyperlinks in this *database*." "\n" "\n If HYPERLINKBASE is an empty string, the *database* path is used." */ VAR_DEF( OdString, HYPERLINKBASE,(OD_T("")), (OD_T("")), (), ValidateNone()) /*** VARDOCS: "\n STYLESHEET specifies the *name* of the style sheet for the active layout." */ VAR_DEF_H( OdString, STYLESHEET, (OD_T("")), (OD_T("")), (), ValidateNone()) /*** VARDOCS: "\n XEDIT controls if this *database*, when an Xref, can be edited in-place." "\n" "\n @table" "\n Value Description" "\n false Not edited in-place." "\n true Edited in-place." */ VAR_DEF( ODTBOOL, XEDIT, (true), (true), (), ValidateBOOL()) /*** VARDOCS: "\n CEPSNTYPE specifies the plot style name type for new entities." "\n" "\n @table" "\n Name Value" "\n OdDb::kPlotStyleNameByLayer 0" "\n OdDb::kPlotStyleNameByBlock 1" "\n OdDb::kPlotStyleNameIsDictDefault 2" "\n OdDb::kPlotStyleNameById 3" */ VAR_DEF_H( ODTDB_PLOTSTYLENAMETYPE, CEPSNTYPE, (OdDb::kPlotStyleNameByLayer), (OdDb::kPlotStyleNameByLayer), (), ValidateNone()) /*** VARDOCS: "\n CEPSNID specifies the plot style for new entities when CEPSNTYPE == OdDb::kPlotStyleNameById" */ VAR_DEF_H( ODDBHARDPOINTERID, CEPSNID, (OdDbObjectId::kNull), (OdDbObjectId::kNull), (), ValidatePSName()) /*** VARDOCS: "\n PSTYLEMODE specifies if this *database* is in a color-dependent or named plot style mode." "\n" "\n @table" "\n Value Description" "\n false Named plot style mode." "\n true Color-dependent plot style mode." */ RO_VAR_DEF(ODTBOOL, PSTYLEMODE, (true), (true), (), ValidateBOOL()) /*** VARDOCS: "\n FINGERPRINTGUID uniquely identifies a *database*." "\n" "\n FINGERPRINTGUID is set when the *database* is created." */ VAR_DEF_H( OdString, FINGERPRINTGUID,(odInitFINGERPRINTGUID()), (odInitFINGERPRINTGUID()), (), ValidateNone()) /*** VARDOCS: "\n VERSIONGUID uniquely identifies a specific version of a *database*." "\n" "\n VERSIONGUID is updated each time the *database* is saved. */ VAR_DEF_H( OdString, VERSIONGUID, (odInitVERSIONGUID()), (odInitVERSIONGUID()), (), ValidateNone()) /*** VARDOCS: "\n EXTNAMES specifies if symbol tables follow the R14- or R2000+ naming conventions." "\n" "\n @table" "\n Value Version Length Character Set" "\n false R14- 31 characters [A-Z], [0-9], $, _, -" "\n true R2000+ 255 characters All except \, /, :, *, ?, \", <, >, |" */ VAR_DEF( ODTBOOL, EXTNAMES, (true), (true), (), ValidateBOOL()) /*** VARDOCS: "\n PSVPSCALE specifies the view scale (PS/MS) for new viewports." "\n" "\n A scale of 0.0 specifies Scaled to Fit. */ VAR_DEF( ODTUNITLESS8, PSVPSCALE, (0.0), (0.0), (), ValidateEqGr(0.)) /*** VARDOCS: "\n OLESTARTUP specifies if the OLE source applications load when plotting." " This may improve the plot quality." "\n" "\n @table" "\n Value Description" "\n false Not loaded." "\n true Loaded." */ VAR_DEF( ODTBOOL, OLESTARTUP, (false), (false), (), ValidateBOOL()) /*** VARDOCS: "\n PELLIPSE specifies if polylines or ellipses are to be generated by the ELLIPSE command." "\n" "\n @table" "\n Value Description" "\n false Ellipses." "\n true Polylines" */ VAR_DEF( ODTBOOL, PELLIPSE, (false), (false), (), ValidateBOOL()) /*** VARDOCS: "\n ISOLINES specifies the number of isolines displayed per surface on 3D solids." */ VAR_DEF( OdUInt16, ISOLINES, (4), (4), (), ValidateRange(0,2047)) /*** VARDOCS: "\n TEXTQLTY specifies the rendering quality of TrueType fonts while plotting." */ VAR_DEF( OdUInt16, TEXTQLTY, (50), (50), (), ValidateRange(0,100)) /*** VARDOCS: "\n FACETRES specifies the quality of hidden, shaded, and rendered objects." */ VAR_DEF( ODTUNITLESS4, FACETRES, (.5), (.5), (), ValidateRange(0.01,10.0)) /*** VARDOCS: "\n UCSORG specifies the WCS origin of the current UCS for the current viewport in model space." */ RO_VAR_DEF_H(OdGePoint3d, UCSORG, (0.0, 0.0, 0.0), (0.0, 0.0, 0.0), (), ValidateNone()) // READ ONLY IN R2000 /*** VARDOCS: "\n UCSXDIR specifies the WCS x-direction of the current UCS for the current viewport in model space." */ RO_VAR_DEF_H(OdGeVector3d, UCSXDIR, (1.0, 0.0, 0.0), (1.0, 0.0, 0.0), (), ValidateNone()) // READ ONLY IN R2000 /*** VARDOCS: "\n UCSYDIR specifies the WCS y-direction of the current UCS for the current viewport in model space." */ RO_VAR_DEF_H(OdGeVector3d, UCSYDIR, (0.0, 1.0, 0.0), (0.0, 1.0, 0.0), (), ValidateNone()) // READ ONLY IN R2000 /*** VARDOCS: "\n PUCSBASE specifies the UCS that defines the" " orthographic UCS base for the current paper space." */ VAR_DEF( ODTUCSID, PUCSBASE, (OdDbObjectId::kNull), (OdDbObjectId::kNull), (), ValidateUcsRec()) /*** VARDOCS: "\n PUCSORG specifies the WCS origin of the current UCS of the current paper space." */ RO_VAR_DEF_H(OdGePoint3d, PUCSORG, (0.0, 0.0, 0.0), (0.0, 0.0, 0.0), (), ValidateNone()) /*** VARDOCS: "\n PUCSXDIR specifies the WCS x-direction of the current UCS of the current paper space." */ RO_VAR_DEF_H(OdGeVector3d, PUCSXDIR, (1.0, 0.0, 0.0), (1.0, 0.0, 0.0), (), ValidateNone()) /*** VARDOCS: "\n PUCSYDIR specifies the WCS y-direction of the current UCS of the current paper space." */ RO_VAR_DEF_H(OdGeVector3d, PUCSYDIR, (0.0, 1.0, 0.0), (0.0, 1.0, 0.0), (), ValidateNone()) /*** VARDOCS: "\n PUCSORTHOVIEW specifies the orthographic UCS with respect to the base UCS for the current paper space." "\n" "\n @table" "\n Value Description" "\n 0 Non-orthographic" "\n 1 Top" "\n 2 Bottom" "\n 3 Front" "\n 4 Back" "\n 5 Left" "\n 6 Right" */ VAR_DEF_H( OdInt16, PUCSORTHOVIEW,(0), (0), (), ValidateRange(0,6)) /*** VARDOCS: "\n PUCSORGTOP specifies the WCS origin of the top-orthographic" " UCS with respect to the base UCS for the current paper space." */ VAR_DEF_H( OdGePoint3d, PUCSORGTOP, (0.0, 0.0, 0.0), (0.0, 0.0, 0.0), (), ValidateNone()) /*** VARDOCS: "\n PUCSORGBOTTOM specifies the WCS origin of the bottom-orthographic" " UCS with respect to the base UCS for the current paper space." */ VAR_DEF_H( OdGePoint3d, PUCSORGBOTTOM,(0.0, 0.0, 0.0), (0.0, 0.0, 0.0), (), ValidateNone()) /*** VARDOCS: "\n PUCSORGLEFT specifies the WCS origin of the left-orthographic" " UCS with respect to the base UCS for the current paper space." */ VAR_DEF_H( OdGePoint3d, PUCSORGLEFT, (0.0, 0.0, 0.0), (0.0, 0.0, 0.0), (), ValidateNone()) /*** VARDOCS: "\n PUCSORGRIGHT specifies the WCS origin of the right-orthographic" " UCS with respect to the base UCS for the current paper space." */ VAR_DEF_H( OdGePoint3d, PUCSORGRIGHT, (0.0, 0.0, 0.0), (0.0, 0.0, 0.0), (), ValidateNone()) /*** VARDOCS: "\n PUCSORGFRONT specifies the WCS origin of the front-orthographic" " UCS with respect to the base UCS for the current paper space." */ VAR_DEF_H( OdGePoint3d, PUCSORGFRONT, (0.0, 0.0, 0.0), (0.0, 0.0, 0.0), (), ValidateNone()) /*** VARDOCS: "\n PUCSORGBACK specifies the WCS origin of the back-orthographic" " UCS with respect to the base UCS for the current paper space." */ VAR_DEF_H( OdGePoint3d, PUCSORGBACK, (0.0, 0.0, 0.0), (0.0, 0.0, 0.0), (), ValidateNone()) /*** VARDOCS: "\n UCSBASE specifies the UCS that defines the orthographic UCS for model space." */ VAR_DEF( ODTUCSID, UCSBASE, (OdDbObjectId::kNull), (OdDbObjectId::kNull), (), ValidateUcsRec()) /*** VARDOCS: "\n UCSORTHOVIEW specifies the model space orthographic UCS with respect to the base UCS." "\n" "\n @table" "\n Value Description" "\n 0 Non-orthographic" "\n 1 Top" "\n 2 Bottom" "\n 3 Front" "\n 4 Back" "\n 5 Left" "\n 6 Right" */ VAR_DEF_H( OdInt16, UCSORTHOVIEW, (0), (0), (), ValidateRange(0,6)) /*** VARDOCS: "\n UCSORGTOP specifies the WCS origin of the model space top-orthographic UCS with respect to the base model space UCS." */ VAR_DEF_H( OdGePoint3d, UCSORGTOP, (0.0, 0.0, 0.0), (0.0, 0.0, 0.0), (), ValidateNone()) /*** VARDOCS: "\n UCSORGBOTTOM specifies the WCS origin of the model space bottom-orthographic UCS with respect to the base model space UCS." */ VAR_DEF_H( OdGePoint3d, UCSORGBOTTOM, (0.0, 0.0, 0.0), (0.0, 0.0, 0.0), (), ValidateNone()) /*** VARDOCS: "\n UCSORGLEFT specifies the WCS origin of the model space left-orthographic UCS with respect to the base model space UCS." */ VAR_DEF_H( OdGePoint3d, UCSORGLEFT, (0.0, 0.0, 0.0), (0.0, 0.0, 0.0), (), ValidateNone()) /*** VARDOCS: "\n UCSORGRIGHT specifies the WCS origin of the model space right-orthographic UCS with respect to the base model space UCS." */ VAR_DEF_H( OdGePoint3d, UCSORGRIGHT, (0.0, 0.0, 0.0), (0.0, 0.0, 0.0), (), ValidateNone()) /*** VARDOCS: "\n UCSORGFRONT specifies the WCS origin of the model space front-orthographic UCS with respect to the base model space UCS." */ VAR_DEF_H( OdGePoint3d, UCSORGFRONT, (0.0, 0.0, 0.0), (0.0, 0.0, 0.0), (), ValidateNone()) /*** VARDOCS: "\n UCSORGBACK specifies the WCS origin of the model space back-orthographic UCS with respect to the base model space UCS." */ VAR_DEF_H( OdGePoint3d, UCSORGBACK, (0.0, 0.0, 0.0), (0.0, 0.0, 0.0), (), ValidateNone()) /*** VARDOCS: "\n DWGCODEPAGE specifies the system code page when the database was created." "\n" "\n @table" "\n Name Value Description" "\n CP_UNDEFINED 0 undefined" "\n CP_ASCII 1 ascii" "\n CP_8859_1 2 iso8859-1" "\n CP_8859_2 3 iso8859-2" "\n CP_8859_3 4 iso8859-3" "\n CP_8859_4 5 iso8859-4" "\n CP_8859_5 6 iso8859-5" "\n CP_8859_6 7 iso8859-6" "\n CP_8859_7 8 iso8859-7" "\n CP_8859_8 9 iso8859-8" "\n CP_8859_9 10 iso8859-9" "\n CP_DOS437 11 dos437" "\n CP_DOS850 12 dos850" "\n CP_DOS852 13 dos852" "\n CP_DOS855 14 dos855" "\n CP_DOS857 15 dos857" "\n CP_DOS860 16 dos860" "\n CP_DOS861 17 dos861" "\n CP_DOS863 18 dos863" "\n CP_DOS864 19 dos864" "\n CP_DOS865 20 dos865" "\n CP_DOS869 21 dos869" "\n CP_DOS932 22 dos932" "\n CP_MACINTOSH 23 mac-roman" "\n CP_BIG5 24 big5" "\n CP_KSC5601 25 ksc5601" "\n CP_JOHAB 26 johab" "\n CP_DOS866 27 dos866" "\n CP_ANSI_1250 28 ansi 1250" "\n CP_ANSI_1251 29 ansi 1251" "\n CP_ANSI_1252 30 ansi 1252" "\n CP_GB2312 31 gb2312" "\n CP_ANSI_1253 32 ansi 1253" "\n CP_ANSI_1254 33 ansi 1254" "\n CP_ANSI_1255 34 ansi 1255" "\n CP_ANSI_1256 35 ansi 1256" "\n CP_ANSI_1257 36 ansi 1257" "\n CP_ANSI_874 37 ansi 874" "\n CP_ANSI_932 38 ansi 932" "\n CP_ANSI_936 39 ansi 936" "\n CP_ANSI_949 40 ansi 949" "\n CP_ANSI_950 41 ansi 950" "\n CP_ANSI_1361 42 ansi 1361" "\n CP_ANSI_1200 43 ansi 1200" "\n CP_ANSI_1258 44 ansi 1258" */ RO_VAR_DEF(OdCodePageId, DWGCODEPAGE, (CP_ANSI_1252), (CP_ANSI_1252), (), ValidateNone()) // New in Red Deer DICR21VAR( ODTTABLESTYLEID, CTABLESTYLE, (OdDbObjectId::kNull), (OdDbObjectId::kNull), (), ValidateTableStyle()) // New in AC2008 /*** VARDOCS: "\n CMLEADERSTYLE specifies the active multileader style, which will be assigned to the new multileaders in setDatabaseDefaults()" */ MLEADERSTYLE_VAR_DEF( ODTMLEADERSTYLEID, CMLEADERSTYLE, (OdDbObjectId::kNull), (OdDbObjectId::kNull), (), ValidateMLeaderStyle()) /*** VARDOCS: "\n CANNOSCALE specifies the current annotation scale." "\n Unlike OdDbDatabase::cannoscale(), CANNOSCALE depends on the active viewport if the current layout is not model space." */ ANNO_VAR_DEF( ODANNOSCALE, CANNOSCALE, (ODANNOSCALE()), (ODANNOSCALE()), (), ValidateNone()) DICR21VAR( ODTBOOL, ANNOALLVISIBLE, (true), (true), (), ValidateBOOL()) DICR21VAR(OdInt8, ANNOTATIVEDWG, (0), (0), (), ValidateANNOTATIVEDWG()) DICR21VAR( ODTBOOL, MSLTSCALE, (true), (true), (), ValidateBOOL()) DICR21VAR( OdInt16, LAYEREVAL, (1), (1), (), ValidateRange(0,2)) DICR21VAR( OdInt16, LAYERNOTIFY, (15), (15), (), ValidateRange(-63,63)) DICR21VAR( OdInt16, LIGHTINGUNITS, (2), (2), (), ValidateRange(0,2)) // Default value since ACAD 2009 is 2 if drawing was created from scratch. But default acad template contains 0 value. DICR21VAR( OdInt16, LIGHTSINBLOCKS, (1), (1), (), ValidateRange(0,1)) /*** VARDOCS: "\n DBCSTATE controls the display of the dbConnect Manager," " whether or not the dbConnect Manager is active." "\n" "\n @table" "\n Value Description" "\n 0 Not displayed" "\n 1 Displayed" */ DICR15VAR( OdInt16, DBCSTATE, (0), (0), (), ValidateRange(0,1)) /*** VARDOCS: "\n INTERSECTIONCOLOR specifies the ACI color index of intersection polylines." "\n" "\n Intersection polylines are displayed at the intersections of 3D surfaces" " if and only if INTERSECTIONDISPLAY == true. "\n" "\n @table" "\n Name Value Description" "\n kACIbyBlock 0 ByBlock." "\n kACIforeground 7 Foreground color." "\n kACIbyLayer 256 ByLayer." "\n kACIRed 1 Red." "\n kACIYellow 2 Yellow." "\n kACIGreen 3 Green." "\n kACICyan 4 Cyan." "\n kACIBlue 5 Blue." "\n kACIMagenta 6 Magenta." "\n .. 8-255 Defined by display device." "\n kACInone 257 No color." */ DICR15VAR( OdInt16, INTERSECTIONCOLOR, (257), (257), (), ValidateRange(0,257)) /*** VARDOCS: "\n INTERSECTIONDISPLAY controls the display of intersection polylines." "\n" "\n Intersection polylines are displayed at the intersections of 3D surfaces." "\n" "\n @table" "\n Value Description" "\n false Not displayed" "\n true Displayed" */ DICR15VAR( bool, INTERSECTIONDISPLAY, (false), (false), (), ValidateBOOL()) /*** VARDOCS: "\n HALOGAP specifies the gap to be displayed where one 3D object hides another." "\n" "\n HALOGAP is zoom independent, and is specified as a percentage of one drawing unit." */ DICR15VAR( OdInt16, HALOGAP, (0), (0), (), ValidateNone()) /*** VARDOCS: "\n OBSCUREDCOLOR specifies the ACI color index of obscured lines." "\n" "\n @table" "\n Name Value Description" "\n kACIbyBlock 0 ByBlock." "\n kACIforeground 7 Foreground color." "\n kACIbyLayer 256 ByLayer." "\n kACIRed 1 Red." "\n kACIYellow 2 Yellow." "\n kACIGreen 3 Green." "\n kACICyan 4 Cyan." "\n kACIBlue 5 Blue." "\n kACIMagenta 6 Magenta." "\n .. 8-255 Defined by display device." "\n kACInone 257 No color." */ DICR15VAR( OdInt16, OBSCUREDCOLOR, (257), (257), (), ValidateRange(0,257)) /*** VARDOCS: "\n OBSCUREDLTYPE specifies the display and linetype of obscured lines." "\n" "\n @table" "\n Value Description" "\n 0 Off" "\n 1 Solid" "\n 2 Dashed" "\n 3 Dotted" "\n 4 Short Dash" "\n 5 Medium Dash" "\n 6 Long Dash" "\n 7 Double Short Dash" "\n 8 Double Medium Dash" "\n 9 Double Long Dash" "\n 10 Medium Long Dash" "\n 11 Sparse Dot" */ DICR15VAR( OdInt16, OBSCUREDLTYPE, (0), (0), (), ValidateRange(0,11)) // these was dictvardefs in old versions /*** VARDOCS: "\n INDEXCTL specifies the creation of layer and spatial indices in the *database*." "\n" "\n @table" "\n Value Description" "\n 0 None created." "\n 1 Layer index created." "\n 2 Spatial Index created." "\n 3 Both created." */ DICR15VAR( OdInt16, INDEXCTL, (0), (0), (), ValidateRange(0,3)) /*** VARDOCS: "\n PROJECTNAME specifies the project name associated with the *database*." */ DICR15VAR( OdString, PROJECTNAME, (OdString::kEmpty), (OdString::kEmpty), (), ValidateNone()) /*** VARDOCS: "\n SORTENTS controls the object sort order." "\n" "\n" SORTENTS will be a combination of the following:" "\n" "\n @table" "\n Value Description" "\n 0 No sorting" "\n 1 Object selection sorting" "\n 2 Object snap sorting" "\n 4 Clear all checkboxes" "\n 8 MSLIDE command sorting" "\n 16 REGEN command sorting" "\n 32 Plotting sorting" "\n 64 Clear all checkboxes" "\n The SORTENTS system variable has been depreciated." "\n DRAWORDERCTL" */ DICR15VAR( OdInt16, SORTENTS, (127), (127), (), ValidateRange(0,127)) /*** VARDOCS: "\n DIMASSOC controls the associativity of new dimension entities." "\n" "\n @table" "\n Value Description" "\n 0 Creates exploded dimensions." "\n 1 Creates un-associative dimension entities." "\n 2 Creates associative dimension entities." */ DICR15VAR( OdInt16, DIMASSOC, (2), (2), (), ValidateRange(0,2)) /*** VARDOCS: "\n HIDETEXT controls the participation of Text and MText entities in HIDE commands." "\n" "\n @table" "\n Value Description" "\n false Don't hide and are not hidden." "\n true Hide and are hidden" */ DICR15VAR( bool, HIDETEXT, (true), (true), (), ValidateBOOL()) /*** VARDOCS: "\n DRAWORDERCTL controls the display update and inheritance of" " draworder when using certain editing commands." "\n" "\n The following commands are affected by DRAWORDERCTL, BREAK, EXPLODE, FILLET, " " HATCH, HATCHEDIT, JOIN, OFFSET, PEDIT, and TRIM." "\n" "\n With Draworder Inheritance on, entities created with these commands assume" " the draw order of the original objects." "\n" "\n With Draworder Inheritance off," " they assume the default draworder (top)." "\n" "\n With Display update on, entities created with the aforementioned editing" " commands are displayed correctly according to their Draworder." "\n" "\n With Display Update" " off, they are displayed on top, until the next regeneration." "\n" "\n @table" "\n Value Draworder Inheritance Display Update" "\n 0 Off Off" "\n 1 Off On" "\n 2 On Off" "\n 3 On On" */ DICR21VAR( OdInt8, DRAWORDERCTL, (3), (3), (), ValidateRange(0,3)) // 2006 support /*** VARDOCS: "\n HPINHERIT specifies the hatch origin when hatch properties" " are inherited with the HATCH and HATCHEDIT commands." "\n" "\n @table" "\n Value Hatch Origin" "\n false From HPORIGIN" "\n true From Source" */ DICR21VAR( ODTBOOL, HPINHERIT, (false), (false), (), ValidateBOOL()) /*** VARDOCS: "\n HPORIGIN specifies the hatch origin for new hatch entities relative to the current UCS." */ DICR21VAR( OdGePoint2d, HPORIGIN, (OdGePoint2d::kOrigin), (OdGePoint2d::kOrigin), (), ValidateNone()) /*** VARDOCS: "\n FIELDEVAL specifies when fields are updated. " "\n" "\n FIELDEVAL will be a combination of one or more of the following values:" "\n" "\n @table" "\n Name Value Description" "\n OdDbField::kDisable 0 Disable evaluation of field." "\n OdDbField::kOnOpen 0x01 Evaluate on *database* open." "\n OdDbField::kOnSave 0x02 Evaluate on *database* save." "\n OdDbField::kOnPlot 0x04 Evaluate on *database* plot." "\n OdDbField::kOnEtransmit 0x08 Evaluate on *database* Etransmit." "\n OdDbField::kOnRegen 0x10 Evaluate on *database* regen." "\n OdDbField::kOnDemand 0x20 Evaluate on demand." "\n OdDbField::kAutomatic 0x3F Evaluate automatically." */ DICR21VAR( OdInt16, FIELDEVAL, (31), (31), (), ValidateRange(0,31)) DICR21VAR( double, MSOLESCALE, (1.0), (1.0), (), ValidateEqGr(0.)) DICR21VAR( OdInt16, UPDATETHUMBNAIL, (15), (15), (), ValidateRange(0,31)) //----------------------------------------- // Variables added in AC 2007 //----------------------------------------- /*** VARDOCS: "\n SOLIDHIST controls the default Show History property setting for all solids." "\n" "\n When enabled, a history of the solids comprising a composite solid is retained." "\n" "\n @table" "\n Value Description" "\n 0 Disabled." "\n 1 Enabled." */ VAR_DEF( OdInt8, SOLIDHIST, (0), (0), (), ValidateRange(0,1)) /*** VARDOCS: "\n SHOWHIST controls the History display for solids in a drawing." "\n" "\n @table" "\n Value Description" "\n 0 Hides all history." "\n 1 Uses the individual solid Show History properties." "\n 2 Displays all history. */ VAR_DEF( OdInt8, SHOWHIST, (1), (1), (), ValidateRange(0,2)) /*** VARDOCS: "\n PSOLWIDTH specifies the default width for swept solids." */ DICR15VAR( ODTDIST, PSOLWIDTH, (0.25), (5.0), (), ValidateRange(DBL_MIN,DBL_MAX)) /*** VARDOCS: "\n LOFTPARAM controls the shape of lofted solids and surfaces." "\n" "\n LOFTPARAM will be a combination of one or more of the following:" "\n" "\n @table" "\n Name Value Description" "\n kLoftNoParam 0x00 No parameters. "\n kLoftNoTwist 0x01 No twist between cross sections." "\n kLoftAlignDirection 0x02 Align directions of cross sections." "\n kLoftSimplify 0x04 Create simple solids and surfaces." "\n kLoftClose 0x08 Close between the starting and ending cross sections." "\n kLoftDefault 0x07 kLoftNoTwist | kLoftAlignDirection | kLoftSimplify " */ VAR_DEF( ODTDB_LOFTPARAMTYPE, LOFTPARAM, (OdDb::kLoftDefault), (OdDb::kLoftDefault), (), ValidateRange(OdDb::kLoftNoParam,ODTDB_LOFTPARAMTYPE(OdDb::kLoftNoTwist|OdDb::kLoftAlignDirection|OdDb::kLoftSimplify|OdDb::kLoftClose))) /*** VARDOCS: "\n LOFTNORMALS controls the normals of lofted objects as they pass through cross sections." "\n" "\n It is ignored when a path or guide curve is specified." "\n" "\n @table" "\n Name Value Description" "\n kLoftRuled 0 Ruled surface." "\n kLoftSmooth 1 Smooth surface." "\n kLoftFirstNormal 2 Surface is normal to the first cross section." "\n kLoftLastNormal 3 Surface is normal to the last cross section." "\n kLoftEndsNormal 4 Surface is normal to the first and last cross sections." "\n kLoftAllNormal 5 Surface is normal to all cross sections." "\n kLoftUseDraftAngles 6 Surface uses draft angle and magnitude." */ VAR_DEF( ODTDB_LOFTNORMALSTYPE, LOFTNORMALS, (OdDb::kLoftSmooth), (OdDb::kLoftSmooth), (), ValidateRange(OdDb::kLoftRuled,OdDb::kLoftUseDraftAngles)) /*** VARDOCS: "\n LOFTANG1 specifies the draft angle through the first cross section in a loft operation." "\n" "\n 0 is measured in the plane of the curve, outward from the curve." "\n Positive angles are measured toward the next cross section." */ VAR_DEF( ODTORIENT, LOFTANG1, (OdaPI2), (OdaPI2), (), ValidateRange(0, Oda2PI)) /*** VARDOCS: "\n LOFTANG1 specifies the draft angle through the first cross section in a loft operation." "\n" "\n 0 is measured in the plane of the curve, outward from the curve." "\n Positive angles are measured toward the next previous cross section." */ VAR_DEF( ODTORIENT, LOFTANG2, (OdaPI2), (OdaPI2), (), ValidateRange(0, Oda2PI)) /*** VARDOCS: "\n LOFTMAG1 specifies the draft angle magnitude through the first cross section" "\n of a lofted solid." */ VAR_DEF( ODTUNITLESS8, LOFTMAG1, (0.), (0.), (), ValidateRange(0.,1.e100)) /*** VARDOCS: "\n LOFTMAG2 specifies the draft angle magnitude through the first cross section" "\n of a lofted solid." */ VAR_DEF( ODTUNITLESS8, LOFTMAG2, (0.), (0.), (), ValidateRange(0., 1.e100)) /*** VARDOCS: "\n LATITUDE specifies the drawing model latitude in decimal degrees." "\n" "\n The default is determined by the country code in the operating system." "\n All angles are expressed in degrees." "\n" "\n North latitudes are positive." */ VAR_DEF( ODTORIENT, LATITUDE, (37.7950), (37.7950), (), ValidateRange(-90., 90.)) /*** VARDOCS: "\n LONGITUDE specifies the drawing model longitude in decimal degrees." "\n" "\n The default is determined by the country code in the operating system." "\n All angles are expressed in degrees." "\n" "\n West longitudes are positive" */ VAR_DEF( ODTORIENT, LONGITUDE, (-122.3940), (-122.3940), (), ValidateRange(-180., 180.)) /*** VARDOCS: "\n NORTHDIRECTION specifies the angle of the Sun from North." "\n All angles are expressed in degrees." "\n" "\n This angle is in the context of the WCS." */ VAR_DEF( ODTORIENT, NORTHDIRECTION, (0.), (0.), (), ValidateNone()) /*** VARDOCS: "\n TIMEZONE sets the time zone for sun studies in the drawing." "\n" "\n" TIMEZONE represents hours and minutes away from Greenwich Mean Time." "\n Setting a geographic location sets TIMEZONE." */ VAR_DEF( ODTDB_TIMEZONE, TIMEZONE, (OdDb::kPacific), (OdDb::kPacific), (), ValidateRange(OdDb::kInternationalDateLine,OdDb::kTonga)) /*** VARDOCS: "\n LIGHTGLYPHDISPLAY controls the display of light glyphs." "\n" "\n" "\n @table" "\n Value Description" "\n 0 Not displayed." "\n 1 Displayed." */ VAR_DEF( OdInt8, LIGHTGLYPHDISPLAY, (1), (1), (), ValidateRange(0,1)) /*** VARDOCS: "\n TILEMODELIGHTSYNCH controls the synchronization of lighting in all model space viewports." "\n" "\n This system variable has no effect on layout viewports." "\n" "\n @table" "\n Value Description" "\n 0 Not synchronized." "\n 1 Synchronized" */ VAR_DEF( OdInt8, TILEMODELIGHTSYNCH, (1), (1), (), ValidateRange(0,1)) /*** VARDOCS: "\n INTERFERECOLOR specifies the color of interference objects." */ VAR_DEF( OdCmColor, INTERFERECOLOR, (OdCmEntityColor::kByLayer), (OdCmEntityColor::kByLayer), (), ValidateNone()) /*** VARDOCS: "\n INTERFEREOBJVS specifies the interference object visual style." */ VAR_DEF( ODVISTYLEID, INTERFEREOBJVS, (OdDbObjectId::kNull), (OdDbObjectId::kNull), (), ValidateVisualStyle()) /*** VARDOCS: "\n INTERFEREVPVS specifies the interference checking visual style for the viewport." */ VAR_DEF( ODVISTYLEID, INTERFEREVPVS, (OdDbObjectId::kNull), (OdDbObjectId::kNull), (), ValidateVisualStyle()) /*** VARDOCS: "\n DRAGVS specifies the drag visual style." */ VAR_DEF( ODVISTYLEID, DRAGVS, (OdDbObjectId::kNull), (OdDbObjectId::kNull), (), ValidateVisualStyle()) /*** VARDOCS: "\n CSHADOW controls shadows for 3D objects." "\n" "\n @table" "\n Name Value Description" "\n kShadowsCastAndReceive 0x00 Shadows cast and received." "\n kShadowsDoesNotReceive 0x01 Shadows cast, but not received." "\n kShadowsDoesNotCast 0x02 Shadows received but not cast." "\n kShadowsIgnore 0x03 Shadows neither cast nor received." "\n It order be displayed, shadows must be turned enabled in the visual style that is applied" "\n to the viewport." */ VAR_DEF(ODTDB_SHADOWFLAGS, CSHADOW, (OdGiSubEntityTraits::kShadowsCastAndReceive), (OdGiSubEntityTraits::kShadowsCastAndReceive), (), ValidateRange(OdGiSubEntityTraits::kShadowsCastAndReceive,OdGiSubEntityTraits::kShadowsIgnore)) /*** VARDOCS: "\n SHADOWPLANELOCATION specifies the location, on the current Z-axis, of an invisible ground plane" "\n used to display shadows." "\n" "\n The shadow plane casts and receives shadows." */ VAR_DEF( ODTDIST, SHADOWPLANELOCATION, (0.), (0.), (), ValidateNone()) /*** VARDOCS: "\n CAMERADISPLAY controls the display of camera glyphs." "\n" "\n @table" "\n Value Description" "\n false Not displayed." "\n true Displayed." */ VAR_DEF( ODTBOOL, CAMERADISPLAY, (false), (false), (), ValidateBOOL()) /*** VARDOCS: "\n LENSLENGTH specifies the length, in millimeters, of the lens used in perspective viewing." */ VAR_DEF( ODTDIST, LENSLENGTH, (50.), (50.), (), ValidateNone()) /*** VARDOCS: "\n CAMERAHEIGHT specifies the default height, in drawing units, for new camera objects." */ VAR_DEF( ODTDIST, CAMERAHEIGHT, (0.), (0.), (), ValidateNone()) /*** VARDOCS: "\n STEPSPERSEC specifies the number of steps taken per second " "\n in walk or fly mode." */ VAR_DEF( ODTDIST, STEPSPERSEC, (2.), (2.), (), ValidateRange(1,30)) /*** VARDOCS: "\n STEPSIZE specifies the size of each step, in drawing units, in walk or fly mode." */ VAR_DEF( ODTDIST, STEPSIZE, (6.), (6.), (), ValidateRange(1e-6,1e+6)) /*** VARDOCS: "\n 3DDWFPREC specifies the 3D DWF publishing precision." */ VAR_DEF( ODTDIST, 3DDWFPREC, (2.), (2.), (), ValidateRange(1,6)) /*** VARDOCS: "\n PSOLHEIGHT specifies the default height, in drawing units," "\n used by the POLYSOLID command, for swept solid objects." */ DICR15VAR( ODTDIST, PSOLHEIGHT, (4.), (80.), (), ValidateNone()) /*** VARDOCS: "\n CMATERIAL specifies the material of new objects." */ VAR_DEF( ODTMATERIALID, CMATERIAL, (OdDbObjectId::kNull), (OdDbObjectId::kNull), (), ValidateMaterial()) /*** VARDOCS: "\n DWFFRAME controls the visibility and plotting of the DWF underlay frame." "\n" "\n @table" "\n Value Description" "\n 0 Not visible and not plotted." "\n 1 Visible and plotted." "\n 2 Visible but not plotted." */ DICR21VAR_H( OdInt8, DWFFRAME, (2), (2), (), ValidateRange(0,2)) /*** VARDOCS: "\n DGNFRAME controls the visibility and plotting of the DGN frame." "\n" "\n @table" "\n Value Description" "\n 0 Not visible and not plotted." "\n 1 Visible and plotted." "\n 2 Visible but not plotted." */ VAR_DEF_H( OdInt8, DGNFRAME, (2), (2), (), ValidateRange(0,2)) /*** VARDOCS: "\n REALWORLDSCALE controls the rendering of materials with units set to real-world scale." "\n" "\n @table" "\n Value Description" "\n false Not rendered." "\n true Rendered." */ VAR_DEF( bool, REALWORLDSCALE, (true), (true), (), ValidateBOOL()) //----------------------------------------- // Variables added in AC 2008 //----------------------------------------- DICR21VAR( OdInt16, DXEVAL, (12), (12), (), ValidateRange(0,511)) //----------------------------------------- // Variables added in AC 2009 //----------------------------------------- DICR21VAR( OdInt16, GEOLATLONGFORMAT, (1), (1), (), ValidateRange(0,1)) DICR21VAR( OdInt16, GEOMARKERVISIBILITY, (1), (1), (), ValidateRange(0,1)) DICR21VAR( OdInt16, PREVIEWTYPE, (0), (0), (), ValidateRange(0,1)) //----------------------------------------- // Variables added in AC 2010 //----------------------------------------- // DIMTXTDIRECTION - defined in DimVarDefs.h /*** VARDOCS: "\n EXPORTMODELSPACE specifies what part of the drawing to export to a DWF, DWFx, or PDF file from Model space" "\n" "\n @table" "\n Value Description" "\n 0 Display" "\n 1 Extents" "\n 2 Window" */ DICR24VAR( OdInt16, EXPORTMODELSPACE, (0), (0), (), ValidateRange(0,2)) /*** VARDOCS: "\n EXPORTPAPERSPACE specifies what part of the drawing to export to a DWF, DWFx, or PDF file from paper space" "\n" "\n @table" "\n Value Description" "\n 0 Current Layout" "\n 1 All Layouts" */ DICR24VAR( OdInt16, EXPORTPAPERSPACE, (0), (0), (), ValidateRange(0,1)) /*** VARDOCS: "\n EXPORTPAGESETUP specifies whether to export to a DWF, DWFx, or PDF file with the current page setup" "\n" "\n @table" "\n Value Description" "\n 0 Default" "\n 1 Override" */ DICR24VAR( OdInt16, EXPORTPAGESETUP, (0), (0), (), ValidateRange(0,1)) /*** VARDOCS: "\n FRAME controls the visibility of frames for external references, images and underlays. It overrides the individual IMAGEFRAME, DWFFRAME, PDFFRAME, DGNFRAME, and XCLIPFRAME settings" "\n" "\n @table" "\n Value Description" "\n 0 Invisible" "\n 1 Is displayed and plotted" "\n 2 Is displayed but not plotted" "\n 3 The individual setting varies for different underlays, external references and images" */ DICR24VAR_H( OdInt16, FRAME, (3), (3), (), ValidateRange(0,3)) /*** VARDOCS: "\n PDFFRAME controls the visibility of PDF underlay frames." "\n" "\n @table" "\n Value Description" "\n 0 Invisible" "\n 1 Is displayed and plotted" "\n 2 Is displayed but not plotted" */ /* This variable was bool in previous version */ DICR24VAR_H( OdInt16, PDFFRAME, (1), (1), (), ValidateRange(0,2)) /*** VARDOCS: "\n XCLIPFRAME controls the visibility of Xref clip boundaries." "\n" "\n @table" "\n Value Description" "\n 0 Invisible" "\n 1 Is displayed and plotted" "\n 2 Is displayed but not plotted" */ /* This variable was bool (with initial value "false") in previous version */ DICR24VAR_H( OdInt16, XCLIPFRAME, (2), (2), (), ValidateRange(0,2)) /*** VARDOCS: "\n MESHTYPE Controls the type of mesh that is created by REVSURF, TABSURF, RULESURF and EDGESURF" "\n" "\n @table" "\n Value Description" "\n 0 Creates legacy polygon or polyface mesh when you use REVSURF, TABSURF, RULESURF, or EDGESURF" "\n 1 Creates full-featured mesh objects when you use REVSURF, TABSURF, RULESURF, or EDGESURF (recommended)" */ DICR24VAR( OdInt16, MESHTYPE, (1), (1), (), ValidateRange(0,1)) /*** VARDOCS: "\n SKYSTATUS Determines if the sky illumination is computed at render time" "\n" "\n @table" "\n Value Description" "\n 0 Sky off" "\n 1 Sky background" "\n 2 Sky background and illumination" */ DICR24VAR( OdInt16, SKYSTATUS, (0), (0), (), ValidateRange(0,2)) //----------------------------------------- // Variables added in AC 2011 //----------------------------------------- /*** VARDOCS: "\n HPLAYER specifies the default layer for new Hatch entities." */ DICR27VAR(OdString, HPLAYER, (OdString(OD_T("."))), (OdString(OD_T("."))), (), ValidateNone()) DICR27VAR(OdInt16, MIRRHATCH, (0), (0), (), ValidateRange(0,1)) /*** VARDOCS: "\n HPTRANSPARENCY variable sets the transparency assigned to new Hatch entities" "\n" "\n @table" "\n Value Description" "\n ErrorValue Use CETRANSPARENCY for Hatch "\n ByLayer Transparency value by layer." "\n ByBlock Transparency value by block." "\n 0 No transparency." "\n 1-90 Transparency value is a percentage (max. 90%)." */ DICR27VAR(ODTTRANSPARENCYDEF, HPTRANSPARENCY, ((const OdCmTransparency&) OdCmTransparency(OdCmTransparency::kErrorValue)), ((const OdCmTransparency&) OdCmTransparency(OdCmTransparency::kErrorValue)), (), ValidateNone()) //----------------------------------------- // Variables added in AC 2013 //----------------------------------------- RO_VAR_DEF( OdInt64, REQUIREDVERSIONS, (0), (0), (), ValidateNone()) /*** VARDOCS: "\n CETRANSPARENCY variable sets the transparency assigned to new entities" "\n" "\n @table" "\n Value Description" "\n ByLayer Transparency value by layer." "\n ByBlock Transparency value by block." "\n 0 No transparency." "\n 1-90 Transparency value is a percentage (max. 90%)." */ DICR27VAR(OdCmTransparency, CETRANSPARENCY, ((const OdCmTransparency&) OdCmTransparency()), ((const OdCmTransparency&) OdCmTransparency()), (), ValidateTransparency()) /*** VARDOCS: "\n CVIEWDETAILSTYLE variable sets the current detail view style." "\n" "\n @table" "\n Value Description" "\n Imperial24 Detail view style used for imperial drawings." "\n Metric50 Detail view style used for metric drawings." */ DICR27VAR(ODTVIEWDETAILSTYLEID, CVIEWDETAILSTYLE, (OdDbObjectId::kNull), (OdDbObjectId::kNull), (), ValidateViewDetailStyle()) /*** VARDOCS: "\n CVIEWSECTIONSTYLE variable sets the current section view style." "\n" "\n @table" "\n Value Description" "\n Imperial24 Section view style used for imperial drawings." "\n Metric50 Section view style used for metric drawings." */ DICR27VAR(ODTVIEWSECTIONSTYLEID, CVIEWSECTIONSTYLE, (OdDbObjectId::kNull), (OdDbObjectId::kNull), (), ValidateViewSectionStyle()) /*** VARDOCS: "\n WIPEOUTFRAME controls the visibility of wipeout object frames." "\n" "\n @table" "\n Value Description" "\n 0 Invisible" "\n 1 Is displayed and plotted" "\n 2 Is displayed but not plotted" */ DICR27VAR( OdInt16, WIPEOUTFRAME, (1), (1), (), ValidateRange(0,2)) /*** VARDOCS: "\n POINTCLOUDCLIPFRAME controls the visibility of point cloud object clipping boundary." "\n" "\n @table" "\n Value Description" "\n 0 Invisible" "\n 1 Is displayed and plotted" "\n 2 Is displayed but not plotted" */ DICR27VAR( OdInt16, POINTCLOUDCLIPFRAME, (2), (2), (), ValidateRange(0,2)) /*** VARDOCS: "\n MLEADERSCALE controls the overall scale factor applied to multileaders." "\n" "\n @table" "\n Value Description" "\n 0.0 " "\n >0 " */ DICR27VAR( double, MLEADERSCALE, (1.0), (1.0), (), ValidateMeaderScale()) /*** VARDOCS: "\n DYNCONSTRAINTDISPLAY controls visibility of dynamic constraints." "\n" "\n @table" "\n Value Description" "\n false Hide" "\n true Display" */ VAR_DEF( ODTBOOL, DYNCONSTRAINTDISPLAY, (false), (false), (), ValidateBOOL()) /*** VARDOCS: "\n VIEWUPDATEAUTO controls automatic update of drawing views." "\n" "\n @table" "\n Value" "\n 0 Drawing views are not updated automatically when the source model changes." "\n 1 Drawing views are automatically updated when the source model changes." */ DICR27VAR(OdInt16, VIEWUPDATEAUTO, (1), (1), (), ValidateRange(0,1)) /*** VARDOCS: "\n VSACURVATUREHIGH controls the value at which a surface displays as green during curvature analysis." */ DICR24VAR(ODTDIST, VSACURVATUREHIGH, (1.), (1.), (), ValidateNone()) /*** VARDOCS: "\n VSACURVATURELOW controls the value at which a surface displays as blue during curvature analysis." */ DICR24VAR(ODTDIST, VSACURVATURELOW, (-1.), (-1.), (), ValidateNone()) /*** VARDOCS: "\n VSACURVATURETYPE controls the type of curvature analysis." "\n" "\n @table" "\n Value" "\n 0 Gaussian curvature type." "\n 1 Mean curvature type." "\n 2 Maximum curvature type." "\n 3 Minimum curvature type." */ DICR24VAR(OdInt16, VSACURVATURETYPE, (0), (0), (), ValidateRange(0,3)) /*** VARDOCS: "\n VSADRAFTANGLEHIGH controls the value at which a model displays as green during draft analysis." "\n" "\n @table" "\n Value Description" "\n -90.0 Opposite to the construction plane." "\n 0.0 Perpendicular to the construction plane." "\n 90.0 Parallel to the construction plane." */ DICR24VAR(ODTDIST, VSADRAFTANGLEHIGH, (3.), (3.), (), ValidateDouble(-90.,90.)) /*** VARDOCS: "\n VSADRAFTANGLELOW controls the value at which a model displays as blue during draft analysis." "\n" "\n @table" "\n Value Description" "\n -90.0 Opposite to the construction plane." "\n 0.0 Perpendicular to the construction plane." "\n 90.0 Parallel to the construction plane." */ DICR24VAR(ODTDIST, VSADRAFTANGLELOW, (-3.), (-3.), (), ValidateDouble(-90.,90.)) /*** VARDOCS: "\n VSAZEBRACOLOR1 controls the first color for zebra analysis." */ DICR24VAR(OdString, VSAZEBRACOLOR1, (OdString(OD_T("RGB:255,255,255"))),(OdString(OD_T("RGB:255,255,255"))),(), ValidateNone()) /*** VARDOCS: "\n VSAZEBRACOLOR2 controls the second color for zebra analysis." */ DICR24VAR(OdString, VSAZEBRACOLOR2, (OdString(OD_T("RGB:0,0,0"))),(OdString(OD_T("RGB:0,0,0"))),(), ValidateNone()) /*** VARDOCS: "\n VSAZEBRADIRECTION controls the angle for zebra analysis." "\n" "\n @table" "\n Value" "\n 0 Horizontal." "\n 90 Vertical." */ DICR24VAR(OdInt16, VSAZEBRADIRECTION, (90), (90), (), ValidateRange(0,90)) /*** VARDOCS: "\n VSAZEBRASIZE controls the width for zebra analysis." */ DICR24VAR(OdInt16, VSAZEBRASIZE, (45), (45), (), ValidateRange(-32768,32767)) /*** VARDOCS: "\n VSAZEBRATYPE controls type of zebra analysis." "\n" "\n @table" "\n Value" "\n 0 Chrome ball type." "\n 1 Cylinder type." */ DICR24VAR(OdInt16, VSAZEBRATYPE, (1), (1), (), ValidateRange(0,1)) //----------------------------------------- // Variables added in AC 2014 //----------------------------------------- DICR27VAR(double, GEOMARKPOSITIONSIZE, (1.), (1.), (), ValidateEqGr(0.)) //----------------------------------------- // Variables added in AC 2015 //----------------------------------------- DICR27VAR(OdInt16, POINTCLOUDPOINTSIZE, (2), (2), (), ValidateRange(1,10)) //----------------------------------------- // Variables added in AC 2016 //----------------------------------------- /*** VARDOCS: "\n DIMLAYER specifies the default layer for new dimention entities." */ DICR27VAR(ODTLAYERIDDEF, DIMLAYER, (OdDbObjectId::kNull), (OdDbObjectId::kNull), (), ValidateLayer(true)) DICR27VAR(ODTDIST, SECTIONOFFSETINC, (6.), (6.), (), ValidateNone()) DICR27VAR(ODTDIST, SECTIONTHICKNESSINC, (1.), (1.), (), ValidateNone()) DICR27VAR(OdInt16, XREFOVERRIDE, (0), (0), (), ValidateRange(0, 1)) //----------------------------------------- // Variables added in AC 2017 //----------------------------------------- DICR27VAR(OdString, CENTERCROSSGAP, (OdString(OD_T("0.05x"))),(OdString(OD_T("0.05x"))),(), ValidateNone()) DICR27VAR(OdString, CENTERCROSSSIZE,(OdString(OD_T("0.1x"))), (OdString(OD_T("0.1x"))), (), ValidateNone()) DICR27VAR(double, CENTEREXE, (0.12), (3.5),(), ValidateNone()) DICR27VAR(OdString, CENTERLAYER, (OdString(OD_T("."))), (OdString(OD_T("."))), (), ValidateNone()) DICR27VAR(double, CENTERLTSCALE, (1.0), (1.0), (), ValidatePositiveNonZero()) DICR27VAR(OdString, CENTERLTYPE, (OdString(OD_T("CENTER2"))), (OdString(OD_T("CENTER2"))), (), ValidateNone()) DICR27VAR(OdString, CENTERLTYPEFILE,(OdString(OD_T("acad.lin"))), (OdString(OD_T("acadiso.lin"))),(), ValidateNone()) DICR27VAR(ODTBOOL, CENTERMARKEXE, (true), (true), (), ValidateBOOL()) #undef SVARS_FUNC_MODIFIER #define SVARS_FUNC_MODIFIER /////////////////////////////////////////////////////////////////////// // New Database variables section // To not break binary compatibility for new variables // non-virtual functions are generated // Add new Database variables here #ifdef DOUNDEF_VAR_DEF #undef VAR_DEF #undef DOUNDEF_VAR_DEF #endif #ifdef DOUNDEF_RO_VAR_DEF #undef RO_VAR_DEF #undef DOUNDEF_RO_VAR_DEF #endif #ifdef DOUNDEF_VAR_DEF_H #undef VAR_DEF_H #undef DOUNDEF_VAR_DEF_H #endif #ifdef DOUNDEF_RO_VAR_DEF_H #undef RO_VAR_DEF_H #undef DOUNDEF_RO_VAR_DEF_H #endif #ifdef DOUNDEF_DICR15VAR #undef DICR15VAR #undef DOUNDEF_DICR15VAR #endif #ifdef DOUNDEF_DICR21VAR_H #undef DICR21VAR_H #undef DOUNDEF_DICR21VAR_H #endif #ifdef DOUNDEF_DICR21VAR #undef DICR21VAR #undef DOUNDEF_DICR21VAR #endif #ifdef DOUNDEF_DICR24VAR_H #undef DICR24VAR_H #undef DOUNDEF_DICR24VAR_H #endif #ifdef DOUNDEF_DICR24VAR #undef DICR24VAR #undef DOUNDEF_DICR24VAR #endif #ifdef DOUNDEF_DICR27VAR_H #undef DICR27VAR_H #undef DOUNDEF_DICR27VAR_H #endif #ifdef DOUNDEF_DICR27VAR #undef DICR27VAR #undef DOUNDEF_DICR27VAR #endif #ifdef DOUNDEF_VAR_DEF_2 #undef VAR_DEF_2 #undef DOUNDEF_VAR_DEF_2 #endif #ifdef DOUNDEF_ANNO_VAR_DEF #undef ANNO_VAR_DEF #undef DOUNDEF_ANNO_VAR_DEF #endif #ifdef DOUNDEF_MLEADERSTYLE_VAR_DEF #undef MLEADERSTYLE_VAR_DEF #undef DOUNDEF_MLEADERSTYLE_VAR_DEF #endif #undef SVARS_FUNC_MODIFIER #ifdef REGVAR_DEF #define SVARS_FUNC_MODIFIER virtual #define ODTDB_PROXYIMAGE OdDb::ProxyImage /* {Secret} */ /*** VARDOCS: "\n PLOTTRANSPARENCYOVERRIDE Controls whether object transparency is plotted." "\n" "\n @table" "\n Value Description" "\n 0 Does not plot object transparency" "\n 1 Uses the setting specified in the Page Setup or the Plot dialog boxes" "\n 2 Plots object transparency" */ REGVAR_DEF(OdUInt16, PLOTTRANSPARENCYOVERRIDE, (1), (), ValidateRange(0, 2)) /*** VARDOCS: "\n ATTREQ controls the requesting of attribute values during the INSERT command." "\n" "\n @table" "\n Value Description" "\n false Attributes assume their defaults." "\n true Attributes are requested." "setATTDIA getATTDIA" */ REGVAR_DEF(ODTBOOL, ATTREQ, (true), (), ValidateBOOL()) /*** VARDOCS: "\n ATTDIA specifies if attribute values are requested via a dialog box during the INSERT command." "\n" "\n @table" "\n Value Description" "\n false Attributes are requested via the command prompt." "\n true Attributes are requested via a dialog box." Attributes are requested if and only if ATTREQ = true; "setATTREQ getATTREQ" */ REGVAR_DEF(ODTBOOL, ATTDIA, (false), (), ValidateBOOL()) /*** VARDOCS: "\n BLIPMODE controls the display of marker blips." "\n" "\n @table" "\n Value Description" "\n false Not displayed." "\n true Displayed." */ REGVAR_DEF(ODTBOOL, BLIPMODE, (false), (), ValidateBOOL()) /*** VARDOCS: "\n DELOBJ controls the deletion of objects used to create solid objects and regions." "\n" "\n Commands affected are REGION, EXTRUDE, and REVOLVE." "\n" "\n @table" "\n Value Description" "\n false Objects are not deleted." "\n true Objects are deleted." */ REGVAR_DEF(ODTBOOL, DELOBJ, (true), (), ValidateBOOL()) /*** VARDOCS: "\n FILEDIA controls the display of file navigation dialog boxes." "\n" "\n @table" "\n Value Description" "\n false Command prompt input." "\n true Dialog boxes displayed." */ REGVAR_DEF(ODTBOOL, FILEDIA, (true), (), ValidateBOOL()) /*** VARDOCS: "\n COORDS controls the display of coordinate information in the status bar." "\n" "\n @table" "\n Value Description" "\n 0 Absolute coordinates updated when points are picked." "\n 1 Absolute coordinates updated continuously." "\n 2 Absolute coordinates updated continuously, with polar coordinates displayed when appropriate." */ REGVAR_DEF(OdInt16, COORDS, (1), (), ValidateRange(0,3)) /*** VARDOCS: "\n DRAGMODE controls the display of dragged objects. This includes both objects being moved from" "\n place to place, as well as objects being created; e.g., Circles." "\n" "\n @table" "\n Value Mode Description" "\n 0 Off Off" "\n 1 On Displays dragged objects if and only if \"drag\" is entered at the command line while dragging." "\n 2 Auto Always displays dragged objects" */ REGVAR_DEF(OdInt16, DRAGMODE, (2), (), ValidateRange(0,2)) /*** VARDOCS: "\n OSMODE specifies the running object snaps. OSMODE will be a combination of one or more of the following:" "\n" "\n @table" "\n Value Description" "\n 0x00 NONe" "\n 0x01 ENDpoint" "\n 0x02 MIDpoint" "\n 0x04 CENter" "\n 0x08 NODe" "\n 0x10 QUAdrant" "\n 0x20 INTersection" "\n 0x40 INSertion" "\n 0x80 PERpendicular" "\n 0x100 TANgent" "\n 0x200 NEArest" "\n 0x400 Clears all object snaps" "\n 0x800 APParent intersection" "\n 0x1000 EXTension" "\n 0x2000 PARallel" "\n 0x4000 Disable all" */ REGVAR_DEF(OdInt16, OSMODE, (37), (), ValidateRange(0,32767)) /*** VARDOCS: "\n PICKFIRST controls noun-verb object selection." "\n" "\n @table" "\n Value Description" "\n false Disabled" "\n true Enabled" */ REGVAR_DEF(ODTBOOL, PICKFIRST, (1), (), ValidateBOOL()) /*** VARDOCS: "\n PICKBOX specifies the object selection target height, in pixels." */ REGVAR_DEF(OdInt16, PICKBOX, (3), (), ValidateRange(0,50)) /*** VARDOCS: "\n PICKADD controls subsequent selections behaviour." "\n" "\n @table" "\n Value State Description" "\n 0 Off Remove previously selected entities, add more entities to selection if SHIFT key pressed" "\n 1 On Add new entities to previously selected, remove entities from selection if SHIFT key pressed" "\n 2 On Add new entities to previously selected, remove entities from selection if SHIFT key pressed. Keep entities selected after SELECT command" */ REGVAR_DEF(OdInt16, PICKADD, (2), (), ValidateRange(0,2)) /*** VARDOCS: "\n PICKSTYLE controls group and associative hatch selection." "\n" "\n @table" "\n Value Group Associative Hatch" "\n 0 Disabled Disabled" "\n 1 Enabled Disabled" "\n 2 Disabled Enabled" "\n 3 Enabled Enabled" */ REGVAR_DEF(OdInt16, PICKSTYLE, (1), (), ValidateRange(0,3)) // Range (0.1 - 1.0) lineweight setting slider /*** VARDOCS: "\n LWDISPSCALE emulates the lineweight setting slider." */ REGVAR_DEF(ODTUNITLESS4, LWDISPSCALE, (0.55), (), ValidateRange(0.1, 1.)) /*** VARDOCS: "\n LWDEFAULT specifies the actual value used to display entities having \"default\" lineweight." */ REGVAR_DEF(ODTDB_LINEWEIGHT, LWDEFAULT, (OdDb::kLnWt025), (), ValidateLineWeight()) /*** VARDOCS: "\n FONTALT specifies the filename of the font file to be used when the font specified" " by a text style cannot be found." */ REGVAR_DEF(OdString, FONTALT, (OD_T("simplex.shx")), (), ValidateNone()) /*** VARDOCS: "\n PLINETYPE controls polyline creation and conversion from OdDb2dPolyline to OdDbPolyline when a database file is opened." "\n" "\n @table" "\n Value Conversions New Polylines" "\n 0 Disabled OdDb2dPolyline" "\n 1 Disabled OdDbPolyline" "\n 2 Enabled OdDbPolyline" */ REGVAR_DEF(OdInt16, PLINETYPE, (2), (), ValidateRange(0,2)) /*** VARDOCS: "\n PROXYSHOW controls the display of proxy graphics." "\n" "\n @table" "\n Name Value Description" "\n OdDb::kProxyNotShow 0 Proxy graphics are not displayed." "\n OdDb::kProxyShow 1 Proxy graphics are displayed." "\n OdDb::kProxyBoundingBox 2 Proxy bounding boxes are displayed." */ REGVAR_DEF(ODTDB_PROXYIMAGE, PROXYSHOW, (OdDb::kProxyShow), (), ValidateRange(OdDb::kProxyNotShow, OdDb::kProxyBoundingBox)) /*** VARDOCS: "\n TEXTFILL controls the filling of TrueType fonts." "\n" "\n @table" "\n Value Description" "\n false Disabled" "\n true Enabled" */ REGVAR_DEF(ODTBOOL, TEXTFILL, (true), (), ValidateBOOL()) // New in Red Deer (2004) /*** VARDOCS: "\n " GRIPHOVER specifies the ACI color index of unselected grips when the cursor hovers over them. */ REGVAR_DEF(OdInt16, GRIPHOVER, (3), (), ValidateRange(1,255)) /*** VARDOCS: "\n GRIPOBJLIMIT specifies the number of selected objects beyond which grips are suppressed." " for a selection set." */ REGVAR_DEF(OdInt16, GRIPOBJLIMIT, (100), (), ValidateRange(0,32767)) /*** VARDOCS: "\n GRIPTIPS controls the display of grip tips for custom objects." "\n" "\n @table" "\n Value Description" "\n 0 Disabled" "\n 1 Enabled" */ REGVAR_DEF(OdInt16, GRIPTIPS, (1), (), ValidateRange(0,1)) /*** VARDOCS: "\n HPASSOC controls the associativity of new hatch patterns and gradient fills." "\n" "\n @table" "\n Value Description" "\n 0 Not associative" "\n 1 Associative" */ REGVAR_DEF(OdInt16, HPASSOC, (1), (), ValidateRange(0,1)) /*** VARDOCS: "\n LOCALROOTPREFIX specifies the complete path to the local customization files." */ REGVAR_DEF(OdString, LOCALROOTPREFIX,(OD_T("")), (), ValidateNone()) /*** VARDOCS: "\n LOGFILEMODE controls the output of the text window to a log file." "\n" "\n @table" "\n Value Description" "\n 0 Not written" "\n 1 Written" */ REGVAR_DEF(OdInt16, LOGFILEMODE, (0), (), ValidateRange(0,1)) /*** VARDOCS: "\n MAXHATCHDENSITY specifies the maximum number of lines in a Hatch entity." */ REGVAR_DEF(OdUInt32, MAXHATCHDENSITY,(1000000), (), ValidateNone()) /*** VARDOCS: "\n FIELDDISPLAY controls the display of field backgrounds in text." "\n" "\n @table" "\n Value Description" "\n 0 No background" "\n 1 Gray background" */ REGVAR_DEF(OdInt16, FIELDDISPLAY, (1), (), ValidateRange(0,1)) REGVAR_DEF(OdInt8, AcisProxyMode,(1), (), ValidateRange(0,1)) /*** VARDOCS: "\n UCSVIEW controls the saving of the current UCS with a named view." "\n" "\n @table" "\n Value Description" "\n 0 Not saved" "\n 1 Saved" */ REGVAR_DEF(OdInt16, UCSVIEW, (1), (), ValidateRange(0,1)) /*** VARDOCS: "\n GRIPBLOCK Controls how grips are displayed on a block after you select it. If this option is selected, all grips are displayed for each object in the block. If this option is cleared, one grip is displayed at the insertion point of the block." "\n" "\n @table" "\n Value Description" "\n false Assigns a grip only to the insertion point of the block" "\n true Assigns grips to objects within the block" */ REGVAR_DEF(OdInt16, GRIPBLOCK, (0), (), ValidateRange(0,1)) /*** VARDOCS: "\n Controls the color of nonselected grips" */ REGVAR_DEF(OdInt16, GRIPCOLOR, (160), (), ValidateRange(1,255)) /*** VARDOCS: "\n Controls the color of custom grips for dynamic blocks" */ REGVAR_DEF(OdInt16, GRIPDYNCOLOR, (140), (), ValidateRange(1,255)) /*** VARDOCS: "\n Controls the color of custom grips for dynamic blocks" */ REGVAR_DEF(OdInt16, GRIPHOT, (1), (), ValidateRange(1,255)) /*** VARDOCS: "\n Controls the use of selection set grips." */ REGVAR_DEF(OdInt16, GRIPS, (1), (), ValidateRange(0,1)) /*** VARDOCS: "\n Sets the size of the grip box in pixels." */ REGVAR_DEF(OdInt16, GRIPSIZE, (5), (), ValidateRange(1,255)) /*** VARDOCS: "\n Controls whether the drawing is saved with visual fidelity." "\n" "\n @table" "\n Value Description" "\n 0 Saved without visual fidelity" "\n 1 Saved with visual fidelity" */ REGVAR_DEF(OdInt16, SAVEFIDELITY, (1), (), ValidateRange(0,1)) /*** VARDOCS: "\n DWFOSNAP controls whether object snapping is active for geometry in DWF underlays "\n" "\n @table" "\n Value Description" "\n false Disabled" "\n true Enabled" */ REGVAR_DEF(ODTBOOL, DWFOSNAP, (1), (), ValidateBOOL()) /*** VARDOCS: "\n DGNOSNAP controls whether object snapping is active for geometry in DGN underlays "\n" "\n @table" "\n Value Description" "\n false Disabled" "\n true Enabled" */ REGVAR_DEF(ODTBOOL, DGNOSNAP, (1), (), ValidateBOOL()) REGVAR_DEF(OdUInt8, OLEQUALITY, (3), (), ValidateRange(0, 3)) REGVAR_DEF(OdInt8, OLEHIDE, (0), (), ValidateRange(0, 3)) //------------------------- // Introduced in R13 //------------------------- REGVAR_DEF(OdInt16, ISAVEPERCENT, (50), (), ValidateRange(0, 100)) //------------------------- // Introduced in R14 //------------------------- /*** VARDOCS: "\n DEMANDLOAD controls demand loading of .tx modules" "\n" "\n @table" "\n Value Description" "\n bit 1 on demand loading of .tx modules is enabled in case file containing custom objects is being open" */ REGVAR_DEF(OdInt16, DEMANDLOAD, (3), (), ValidateRange(0, 3)) //----------------------------------------- // Variables added in AC 2008 //----------------------------------------- REGVAR_DEF(OdInt16, LAYLOCKFADECTL, (50), (), ValidateRange(-90, 90)) //----------------------------------------- // Variables added in AC 2009 //----------------------------------------- REGVAR_DEF(OdInt16, THUMBSIZE, (3), (), ValidateRange(0,8)) REGVAR_DEF(OdInt16, PUBLISHHATCH, (1), (), ValidateRange(0,1)) REGVAR_DEF(OdInt16, OPENPARTIAL, (1), (), ValidateRange(0,1)) REGVAR_DEF(double, DGNIMPORTMAX, (0.0), (), ValidateNone()) /*** VARDOCS: "\n PLINECONVERTMODE specifies the fit method used when converting splines to polylines." "\n" "\n @table" "\n Value Polyline's segments type" "\n 0 Polylines are created with linear segments" "\n 1 Polylines are created with arc segments" */ REGVAR_DEF(OdInt16, PLINECONVERTMODE, (0), (), ValidateRange(0,1)) //----------------------------------------- // Variables added in AC 2010 //----------------------------------------- /*** VARDOCS: "\n PDFOSNAP controls whether object snapping is active for geometry in PDF underlays "\n" "\n @table" "\n Value Description" "\n false Disabled" "\n true Enabled" */ REGVAR_DEF(ODTBOOL, PDFOSNAP, (1), (), ValidateBOOL()) REGVAR_DEF(OdInt16, XFADECTL, (50), (), ValidateRange(0,90)) REGVAR_DEF(OdInt16, XDWGFADECTL, (50), (), ValidateRange(-90, 90)) /*** VARDOCS: "\n PARAMETERCOPYMODE controls copying of constraints and related parameters when entities are copied." "\n" "\n @table" "\n Value Description" "\n 0 Do not copy constraints." "\n 1 Replace all expressions with constants." "\n 2 Use existing parameters, if parameter is missing replace it with constant." "\n 3 Use existing parameters, create new parameter if it is missing." "\n 4 Use existing parameters, create new parameter if it is missing or has different value." */ REGVAR_DEF(OdInt16, PARAMETERCOPYMODE, (1), (), ValidateRange(0,4)) //----------------------------------------- // Variables added in AC 2011 //----------------------------------------- REGVAR_DEF(OdInt16, OBJECTISOLATIONMODE, (0), (), ValidateRange(0,1)) //----------------------------------------- // Variables added in AC 2012 //----------------------------------------- REGVAR_DEF(OdInt16, ARRAYTYPE , (0), (), ValidateRange(0,2)) REGVAR_DEF(OdInt16, POINTCLOUDAUTOUPDATE, (1), (), ValidateRange(0,1)) REGVAR_DEF(OdInt16, POINTCLOUDDENSITY, (15), (), ValidateRange(1,100)) REGVAR_DEF(OdInt16, POINTCLOUDLOCK, (0), (), ValidateRange(0,1)) REGVAR_DEF(OdInt16, POINTCLOUDRTDENSITY, (5), (), ValidateRange(1,100)) //----------------------------------------- // Variables added in AC 2013 //----------------------------------------- REGVAR_DEF(OdInt16, ARRAYASSOCIATIVITY, (1), (), ValidateRange(0,1)) REGVAR_DEF(OdInt16, POINTCLOUDBOUNDARY, (1), (), ValidateRange(0,1)) REGVAR_DEF(OdUInt32, POINTCLOUDPOINTMAX, (1500000), (), ValidateNone()) //----------------------------------------- // Variables added in AC 2014 //----------------------------------------- REGVAR_DEF(OdInt16, TEXTALIGNMODEMODE, (9), (), ValidateRange(0,11)) //----------------------------------------- // Variables added in AC 2015 //----------------------------------------- /*** VARDOCS: "\n LINESMOOTHING controls the lines anti-aliasing. "\n" "\n @table" "\n Value Description" "\n 0 Disabled" "\n 1 Enabled" */ REGVAR_DEF(OdInt16, LINESMOOTHING, (0), (), ValidateRange(0,1)) REGVAR_DEF(OdInt16, HPLINETYPE, (0), (), ValidateRange(0,1)) REGVAR_DEF(OdInt32, POINTCLOUDPOINTMAXLEGACY, (1500000), (), ValidateRange(1500000,10000000)) REGVAR_DEF(OdInt16, POINTCLOUDLOD, (10), (), ValidateRange(1,10)) //----------------------------------------- // Variables added in AC 2016 //----------------------------------------- REGVAR_DEF(OdInt16, REVCLOUDCREATEMODE, (1), (), ValidateRange(0,2)) REGVAR_DEF(OdInt16, REVCLOUDGRIPS, (1), (), ValidateRange(0,1)) //----------------------------------------- // Variables added in AC 2017 //----------------------------------------- REGVAR_DEF(ODTBOOL, LTGAPSELECTION, (0), (), ValidateBOOL()) /////////////////////////////////////////// // Teigha-specific system variables /////////////////////////////////////////// /*** VARDOCS: "\n SAVEROUNDTRIP controls the saving of information in a *database* file" " to allow round-tripping of object types not supported in the save file format." "\n" "\n @table" "\n Value Description" "\n false Disabled" "\n true Enabled" */ REGVAR_DEF(bool, SAVEROUNDTRIP, (true), (), ValidateBOOL()) /*** VARDOCS: "\n R12SaveDeviation controls the deviation for saving ellipses and splines to R12." */ REGVAR_DEF(ODTDIST, R12SaveDeviation,(0.), (), ValidateNone()) /*** VARDOCS: "\n R12SaveAccuracy controls the number of segments between spline control" " segments or on 90° elliptical arcs for saving ellipses and splines to R12." */ REGVAR_DEF(OdInt16, R12SaveAccuracy,(8), (), ValidateNone()) /*** VARDOCS: "\n AcisSaveAsMode controls the exploding mode of ACIS entities (3DSolids, Bodies, Regions) " while saving to R12, exploding geometry." "\n @table" "\n Value Description" "\n 0 Save meshes" "\n 1 Save edges only" */ REGVAR_DEF(OdInt16, AcisSaveAsMode,(0), (), ValidateRange(0,1)) /*** VARDOCS: "\n AcisProxyMode controls saving to proxy's graphics metafile mode of ACIS entities (3DSolids, Bodies, Regions)." "\n" "\n @table" "\n Value Description" "\n 0 Save meshes" "\n 1 Save edges only" */ /*** VARDOCS: "\n PLINECACHE controls creation the cache of vertexes for OdDb2dPolyline when a database file is opened." "\n" "\n @table" "\n Value Cache" "\n false Disabled" "\n true Enabled" */ REGVAR_DEF(ODTBOOL, PLINECACHE, (false), (), ValidateBOOL()) /*** VARDOCS: "\n DxfTextAdjustAlignment controls if adjustAlignment() is called" " at the end of loading OdDbText from DXF file." "\n" "\n @table" "\n Value Description" "\n false Disabled" "\n true Enabled" */ REGVAR_DEF(bool, DxfTextAdjustAlignment, (false), (), ValidateBOOL()) /*** VARDOCS: "\n DimBlocksRecomputing controls if Dimension Blocks are recomputed" " if Dimension entity is modified." "\n" "\n @table" "\n Value Description" "\n false Disabled" "\n true Enabled - RecomputeDimBlocks module is required" */ REGVAR_DEF(bool, RecomputeDimBlocksRequired, (true), (), ValidateBOOL()) /*** VARDOCS: "\n AllowSavingEmptyAcisObjects controls how to resolve situation if ACIS data cannot be converted to other version." "It may happen in case if no modeler module loaded, so conversion engine is unavailable. "\n" "\n @table" "\n Value Description" "\n false Disabled - exception will be thrown to prevent data loses." "\n true Enabled - empty entity will be saved." */ REGVAR_DEF(bool, AllowSavingEmptyAcisObjects, (false), (), ValidateBOOL()) /*** VARDOCS: "\n RestoreHatchFromBlkRef controls if an attempt is made to restore " " Hatch entity from round-trip XData of Block Reference to anonymous block " " representing Hatch in R12 files" "\n" "\n @table" "\n Value Description" "\n false Disabled" "\n true Enabled" */ REGVAR_DEF(bool, RestoreHatchFromBlkRef, (true), (), ValidateBOOL()) /*** VARDOCS: "\n MtMode controls if multi-threading is used (bit-coded)" "\n" "\n @table" "\n Value Description" "\n bit 1 on multi-threaded file loading is used" "\n bit 2 on multi-threaded regeneration is used" */ REGVAR_DEF(OdInt16, MtMode, (1), (), ValidateNone()) #undef ODTDB_PROXYIMAGE #undef SVARS_FUNC_MODIFIER #define SVARS_FUNC_MODIFIER /////////////////////////////////////////////////////////////////////// // New AppServices variables section // To not break binary compatibility for new variables // non-virtual functions are generated // Add new REGVARs here // Teigha-specific /*** VARDOCS: "\n VerticalApplicationsMode controls behavior of vertical applications" "\n" Bit-coded "\n If bit set application creates its default objects in every drawing "\n If not application does not create its default objects "\n (enabler behavior) "\n It also affects hatch rendering: empty stroke hatch is rendered as solid fill for Architecture" "\n @table" "\n Value Description" "\n bit 1 Teigha Architecture "\n bit 2 Teigha Civil "\n bit 4 Teigha Mechanical */ /*** VARDOCS: "\n PersistentUndoMode (experimental) enables saving editing history in a file" */ REGVAR_DEF(OdUInt32, VerticalApplicationsMode, (0xFFFFFFFF), (), ValidateNone()) REGVAR_DEF(bool, PersistentUndoMode, (false), (), ValidateBOOL()) #undef SVARS_FUNC_MODIFIER #endif //#ifdef REGVAR_DEF #undef ODTBOOL #undef ODTDIST #undef ODTORIENT #undef ODTUNITLESS4 #undef ODTUNITLESS8 #undef ODTDB_MEASUREMENTVALUE #undef ODTDB_LINEWEIGHT #undef ODTDB_JOINSTYLE #undef ODTDB_UNITSVALUE #undef ODTDB_PROXYIMAGE #undef ODTDB_MEASUREMENTVALUE #undef ODTTEXTSTYLEID #undef ODTLAYERID #undef ODTLAYERIDDEF #undef ODTLINETYPEID #undef ODTDIMSTYLEID #undef ODTUCSID #undef ODTMLSTYLEID #undef ODTDB_ENDCAPS #undef ODTDB_JOINSTYLE #undef ODTDB_PLOTSTYLENAMETYPE #undef ODTDB_TIMEZONE #undef ODTMATERIALID #undef ODVISTYLEID #undef ODTTABLESTYLEID #undef ODTMLEADERSTYLEID #undef ODTVIEWDETAILSTYLEID #undef ODTVIEWSECTIONSTYLEID #undef ODANNOSCALE #undef ODDBHARDPOINTERID #undef ODDBOBJECTID #undef ODTTRANSPARENCY