CFx SDK Documentation 2024 SP0
|
Go to the source code of this file.
Macros | |
#define | DOUNDEF_QVAR_DEF_RO |
#define | QVAR_DEF_RO QVAR_DEF /*!DOM*/ |
#define | ODTDIST double /*!DOM*/ |
#define | DOUNDEF_ODTDIST |
#define | ODTORIENT double /*!DOM*/ |
#define | DOUNDEF_ODTORIENT |
#define | ODTANGLE double /*!DOM*/ |
#define | DOUNDEF_ODTANGLE |
#define | ODTLAYOUTID OdDbObjectId /*!DOM*/ |
#define | DOUNDEF_ODTLAYOUTID |
#define | ODTTEXTSTYLEID OdDbObjectId /*!DOM*/ |
#define | DOUNDEF_ODTTEXTSTYLEID |
#define | ODTBOOL bool /*!DOM*/ |
#define | DOUNDEF_ODTBOOL |
#define | UNDEF_QVAR_DEF_2 |
#define | QVAR_DEF_2 QVAR_DEF |
#define | UNDEF_QVAR_DEF_RO_2 |
#define | QVAR_DEF_RO_2 QVAR_DEF_RO |
Functions | |
QVAR_DEF_2 (OdInt8, DGNFRAME, ValidateRange(0, 2)) QVAR_DEF_2(double | |
ValidatePositiveNonZero ()) QVAR_DEF(OdInt16 | |
ValidateRange (0, 1)) QVAR_DEF(OdInt16 | |
ValidateRange (0, 2)) QVAR_DEF(OdInt16 | |
ValidateRange (0, 180)) QVAR_DEF(OdInt16 | |
ValidateRange (0, 3)) QVAR_DEF(OdInt16 | |
ValidateRange (0, 100)) QVAR_DEF(OdInt16 | |
ValidateRange (0, 11)) QVAR_DEF(OdInt16 | |
#define DOUNDEF_ODTANGLE |
Definition at line 49 of file QuasiVarDefs.h.
#define DOUNDEF_ODTBOOL |
Definition at line 64 of file QuasiVarDefs.h.
#define DOUNDEF_ODTDIST |
Definition at line 39 of file QuasiVarDefs.h.
#define DOUNDEF_ODTLAYOUTID |
Definition at line 54 of file QuasiVarDefs.h.
#define DOUNDEF_ODTORIENT |
Definition at line 44 of file QuasiVarDefs.h.
#define DOUNDEF_ODTTEXTSTYLEID |
Definition at line 59 of file QuasiVarDefs.h.
#define DOUNDEF_QVAR_DEF_RO |
Definition at line 27 of file QuasiVarDefs.h.
#define ODTANGLE double /*!DOM*/ |
Definition at line 48 of file QuasiVarDefs.h.
#define ODTBOOL bool /*!DOM*/ |
Definition at line 63 of file QuasiVarDefs.h.
#define ODTDIST double /*!DOM*/ |
Definition at line 38 of file QuasiVarDefs.h.
#define ODTLAYOUTID OdDbObjectId /*!DOM*/ |
Definition at line 53 of file QuasiVarDefs.h.
#define ODTORIENT double /*!DOM*/ |
Definition at line 43 of file QuasiVarDefs.h.
#define ODTTEXTSTYLEID OdDbObjectId /*!DOM*/ |
Definition at line 58 of file QuasiVarDefs.h.
#define QVAR_DEF_2 QVAR_DEF |
Definition at line 78 of file QuasiVarDefs.h.
#define QVAR_DEF_RO QVAR_DEF /*!DOM*/ |
Definition at line 28 of file QuasiVarDefs.h.
#define QVAR_DEF_RO_2 QVAR_DEF_RO |
Definition at line 83 of file QuasiVarDefs.h.
#define UNDEF_QVAR_DEF_2 |
Definition at line 77 of file QuasiVarDefs.h.
#define UNDEF_QVAR_DEF_RO_2 |
Definition at line 82 of file QuasiVarDefs.h.
QVAR_DEF_2 | ( | OdInt8 | , |
DGNFRAME | , | ||
ValidateRange(0, 2) | |||
) |
<title BACKZ> <toctitle BACKZ>
Type double Initial value 0.0 Read-Only Yes Saved In Database Versions R12+
BACKZ specifies the back clipping distance for the current viewport.
Access Methods OdDbDatabase::getSysVar()
Type OdDbObjectId Initial value Model Layout Id Read-Only No Saved In Database Versions 2000+
CTAB specifies the current tab (model or layout) in the database.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
<group TD_SysVars_C> <title CPLOTSTYLE> <toctitle CPLOTSTYLE>
Type OdString Initial value "ByColor" Read-Only No Saved In Database Versions 2000+
CPLOTSTYLE specifies the default plot style for new entities.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
Type OdInt16 Initial value 2 Read-Only No Saved In Database Versions R12+
CVPORT specifies the ID of the current viewport. CVPORT == 1 specifies the current overall paper space viewport.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
<group TD_SysVars_C> <title DWGNAME> <toctitle DWGNAME>
Type OdString Initial value "" Read-Only Yes Saved In Not saved Versions R12+
DWGNAME specifies the name of the file associated with this database. The path is not returned. The extension is returned.
Access Methods OdDbDatabase::getSysVar()
Type OdString Initial value "" Read-Only Yes Saved In Not saved Versions R12+
DWGPREFIX specifies the folder of the file associated with this database. The returned string, if not empty, ends in a delimiter ('/' or '\').
Access Methods OdDbDatabase::getSysVar()
Type bool Initial value false Read-Only Yes Saved In Not saved Versions R12+
DWGTITLED specifies whether a filename has been assigned to the database.
Value Description false Not assigned true Assigned
Access Methods OdDbDatabase::getSysVar()
<group TD_SysVars_D> <title FRONTZ> <toctitle FRONTZ>
Type double Initial value 0.0 Read-Only Yes Saved In Database Versions R12+
FRONTZ specifies the front clipping distance for the current viewport.
Access Methods OdDbDatabase::getSysVar()
Type bool Initial value false Read-Only No Saved In Database Versions R12+
GRIDMODE controls the display of the grid in the current viewport.
Value Description false Not displayed true Displayed
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
<group TD_SysVars_G> <title GRIDUNIT> <toctitle GRIDUNIT>
Type OdGePoint2d Initial value (0.5, 0.5) | (10.0, 10.0) Read-Only No Saved In Database Versions R12+
GRIDUNIT specifies the XY grid spacing in the current viewport.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
<group TD_SysVars_G> <title SNAPANG> <toctitle SNAPANG>
Type double Initial value 0.0 Read-Only No Saved In Database Versions R12+
SNAPANG controls the rotation in the current UCS of the snap and grid in the current viewport.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
Note: All angles are expressed in radians. <group TD_SysVars_S> <title SNAPBASE> <toctitle SNAPBASE>
Type OdGePoint2d Initial value (0.0, 0.0) Read-Only No Saved In Database Versions R12+
SNAPBASE controls the origin in the current UCS of the snap and grid in the current viewport.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
<group TD_SysVars_S> <title SNAPISOPAIR> <toctitle SNAPISOPAIR>
Type OdInt16 Initial value 0 Read-Only No Saved In Database Versions R12+
SNAPISOPAIR specifies the isometric plane for the current viewport.
Value Description 0 Left 1 Top 2 Bottom
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
Type OdInt16 Initial value 0 Read-Only No Saved In Database Versions R12+
SNAPMODE controls the snap mode in the current viewport.
Value Description 0 Disabled 1 Enabled
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
<group TD_SysVars_S> <title SNAPSTYL> <toctitle SNAPSTYL>
Type OdInt16 Initial value 0 Read-Only No Saved In Database Versions R12+
SNAPSTYL controls the snap style in the current viewport.
Value Description 0 Rectangular snap 1 Isometric snap
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
Type OdGePoint2d Initial value (0.5, 0.5) | (10.0, 10.0) Read-Only No Saved In Database Versions R12+
SNAPUNIT specifies the XY snap spacing in the current viewport.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
<group TD_SysVars_S> <title SYSCODEPAGE> <toctitle SYSCODEPAGE>
Type OdCodePageId Initial value Varies Read-Only Yes Saved In Nondatabase, Quasi variable Versions R12+
The SYSCODEPAGE variable specifies the operating system's code page. The value can be:
Name Value Description CP_UNDEFINED 0 undefined CP_ASCII 1 ascii CP_8859_1 2 iso8859-1 CP_8859_2 3 iso8859-2 CP_8859_3 4 iso8859-3 CP_8859_4 5 iso8859-4 CP_8859_5 6 iso8859-5 CP_8859_6 7 iso8859-6 CP_8859_7 8 iso8859-7 CP_8859_8 9 iso8859-8 CP_8859_9 10 iso8859-9 CP_DOS437 11 dos437 CP_DOS850 12 dos850 CP_DOS852 13 dos852 CP_DOS855 14 dos855 CP_DOS857 15 dos857 CP_DOS860 16 dos860 CP_DOS861 17 dos861 CP_DOS863 18 dos863 CP_DOS864 19 dos864 CP_DOS865 20 dos865 CP_DOS869 21 dos869 CP_DOS932 22 dos932 CP_MACINTOSH 23 mac-roman CP_BIG5 24 big5 CP_KSC5601 25 ksc5601 CP_JOHAB 26 johab CP_DOS866 27 dos866 CP_ANSI_1250 28 ansi 1250 CP_ANSI_1251 29 ansi 1251 CP_ANSI_1252 30 ansi 1252 CP_GB2312 31 gb2312 CP_ANSI_1253 32 ansi 1253 CP_ANSI_1254 33 ansi 1254 CP_ANSI_1255 34 ansi 1255 CP_ANSI_1256 35 ansi 1256 CP_ANSI_1257 36 ansi 1257 CP_ANSI_874 37 ansi 874 CP_ANSI_932 38 ansi 932 CP_ANSI_936 39 ansi 936 CP_ANSI_949 40 ansi 949 CP_ANSI_950 41 ansi 950 CP_ANSI_1361 42 ansi 1361 CP_ANSI_1200 43 ansi 1200 CP_ANSI_1258 44 ansi 1258
Access Methods OdDbDatabase::getSysVar() OdDbHostAppServices::setSystemCodePage()
Type OdGePoint3d Initial value (0.0, 0.0, 0.0) Read-Only Yes Saved In Database Versions R12+
TARGET specifies the target point for the current viewport.
Access Methods OdDbDatabase::getSysVar()
<group TD_SysVars_T> <title UCSFOLLOW> <toctitle UCSFOLLOW>
Type bool Initial value false Read-Only No Saved In Database Versions R12+
UCSFOLLOW controls the generation of plan views in the current viewport whenever the UCS changes.
Value Description false View unchanged true View changes to plan view in the new UCS
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
<group TD_SysVars_U> <title UCSICON> <toctitle UCSICON>
Type OdInt16 Initial value 3 Read-Only No Saved In Database Versions R12+
UCSICON controls the display of the UCS icon.
Value At Origin On 0 No No 1 No Yes 2 Yes No 3 Yes Yes
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
<group TD_SysVars_U> <title UCSVP> <toctitle UCSVP>
Type bool Initial value false Read-Only No Saved In Database Versions 2000+
UCSVP controls the saving of the current UCS with the current viewport.
Value Description false UCS associated with the current viewport is unchanged. true Saves the UCS with the current viewport.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
<group TD_SysVars_U>
<title VIEWCTR> <toctitle VIEWCTR>
Type OdGePoint3d Initial value Varies Read-Only Yes Saved In Database Versions R12+
VIEWCTR specifies the UCS center of the view for the current viewport.
Access Methods OdDbDatabase::getSysVar()
<group TD_SysVars_V> <title VIEWDIR> <toctitle VIEWDIR>
Type OdGePoint3d Initial value (0.0, 0.0, 1.0) Read-Only Yes Saved In Database Versions R12+
VIEWDIR specifies the vector from the target point for the current viewport to the camera point.
Access Methods OdDbDatabase::getSysVar()
<group TD_SysVars_V> <title VIEWMODE> <toctitle VIEWMODE>
Type OdInt16 Initial value 0 Read-Only Yes Saved In Database Versions R12+
VIEWMODE specifies the view mode for the current viewport. VIEWMODE will be the sum of zero or more of the following:
Value Description 0x00 Disabled 0x01 Perspective enabled 0x02 Front clip enabled 0x04 Back clip enabled 0x08 UCS follow enabled 0x10 Front clipping plane not at eye
Access Methods OdDbDatabase::getSysVar()
<group TD_SysVars_V> <title VIEWSIZE> <toctitle VIEWSIZE>
Type double Initial value Varies Read-Only Yes Saved In Database Versions R12+
VIEWSIZE specifies the UCS height of the view for the current viewport.
Access Methods OdDbDatabase::getSysVar()
<group TD_SysVars_V> <title VIEWTWIST> <toctitle VIEWTWIST>
Type double Initial value 0.0 Read-Only Yes Saved In Database Versions R12+
VIEWTWIST specifies the view twist for the current viewport.
Access Methods OdDbDatabase::getSysVar()
Note: All angles are expressed in radians. <group TD_SysVars_V> <title WORLDUCS> <toctitle WORLDUCS>
Type OdInt16 Initial value 1 Read-Only Yes Saved In Not saved Versions R12+
WORLDUCS indicates if the current UCS is the same as the WCS.
Value Description 0 Different 1 Same
Access Methods OdDbDatabase::getSysVar()
<group TD_SysVars_W> <title CANNOSCALEVALUE> <toctitle CANNOSCALEVALUE>
Type double Initial value 1.0 Read-Only Yes Saved In Drawing Versions 2008+
The CANNOSCALEVALUE variable stores a default value of the annotation scale to be used in the current drawing.
Access Methods OdDbDatabase::getSysVar()
<group TD_SysVars_C> <title DIMANNO> <toctitle DIMANNO>
Type bool Initial value false Read-Only Yes Saved In Database Versions 2008+
DIMANNO indicates whether or not the current dimension style is annotative.
Value Description false Current dimension style is not annotative. true Current dimension style is annotative.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::getDIMANNO()
<group TD_SysVars_D>
"\n IMAGEFRAME Controls whether image frames are displayed and plotted" "\n" "\n @table" "\n Value Description" "\n 0 Invisible" "\n 1 Is displayed and plotted" "\n 2 Is displayed but not plotted"
</properties>
ValidatePositiveNonZero | ( | ) |
<title GRIDDISPLAY> <toctitle GRIDDISPLAY>
Type OdInt16 Initial value 2 Range 0 ... 15 Read-Only No Saved In Nondatabase, Quasi variable Versions 2007+
The GRIDDISPLAY variable controls the display behavior and display limits of the grid. The setting is stored as a bitcode using the sum of the following values:
Value Description 0 Restricts the grid to the area specified by the LIMITS command. 1 Does not restrict the grid to the area specified by the LIMITS command. 2 Turns on adaptive grid display, which limits the density of the grid when zoomed out. 4 If the grid is set to adaptive display and when zoomed in, generates additional, more closely spaced grid lines in the same proportion as the intervals of the major grid lines. 8 Changes the grid plane to follow the XY plane of the dynamic UCS (if value is 2, this setting is ignored).
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
<group TD_SysVars_G> <title GRIDMAJOR> <toctitle GRIDMAJOR>
Type OdInt16 Initial value 5 Read-Only No Saved In Nondatabase, Quasi variable Versions 2007+
The GRIDMAJOR variable specifies the frequency of major grid lines compared to minor grid lines in the range 1 to 100.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
For example, to get the value: OdRusBufPtr pRb = pDb->getSysVar(L"GRIDMAJOR"); OdInt16 major = pRb->getInt16(); odPrintConsoleString(L"nGrid major = %d", major);
For example, to set the value: OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtInt16, 10); pDb->setSysVar(L"GRIDMAJOR", pRb);
<group TD_SysVars_G>
const OdCmTransparency const OdCmTransparency const OdCmColor const OdCmColor const OdCmColor const OdCmColor const OdCmTransparency const OdCmTransparency ValidateRange | ( | 0 | , |
1 | |||
) |
<title VSEDGECOLOR> <toctitle VSEDGECOLOR>
Type OdString Initial value "ByEntity" Read-Only No Saved In Database Versions 2007+
The VSEDGECOLOR variable stores the tint of edges in the visual style for the current viewport. TrueColor value is set as follows: "RGB:XXX,XXX,XXX", where XXX is the color component value in the range 0 to 255. Value 0 defines a color ByBlock, value 256 defines a color ByLayer, value 257 defines a color ByEntity, values 1 to 255 define the ACI color.
Note: An existing visual style is not changed when the system variable gets a new value. Temporary visual style will be created as a clone of visual style assigned for current viewport.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
For example, to get the value: OdRusBufPtr pRb = pDb->getSysVar(L"VSEDGECOLOR"); OdString tint = pRb->getString(); odPrintConsoleString(L"nColor of edges = %s", tint);
For example, to set the value: OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtString, L"RGB:128,128,128"); pDb->setSysVar(L"VSEDGECOLOR", pRb);
<group TD_SysVars_G> <title VSEDGEJITTER> <toctitle VSEDGEJITTER>
Type OdInt16 Initial value (–2) Read-Only No Saved In Database Versions 2010+
The VSEDGEJITTER variable switches the display of edges to be viewed with several linear streaks, as if the edges were sketched using a pencil. The value defines the number of jitters which can be:
Value Description 1 Low jitters 2 Medium jitters 3 High jitters
A negative value turns off the sketch effect, but the variable continues to store the number of jitters.
Note: An existing visual style is not changed when the system variable gets a new value. Temporary visual style will be created as a clone of visual style assigned for current viewport.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
For example, to get the value: OdRusBufPtr pRb = pDb->getSysVar(L"VSEDGEJITTER"); OdInt16 jitters = pRb->getInt16(); odPrintConsoleString(L"nJitters = %d", jitters);
For example, to set the value: OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtInt16, 1); pDb->setSysVar(L"VSEDGEJITTER", pRb)
<group TD_SysVars_V> <title VSEDGELEX> <toctitle VSEDGELEX>
Type OdInt16 Initial value (–6) Read-Only No Saved In Nondatabase, Quasi variable Versions 2011+
The VSEDGELEX variable allows edges to extend beyond their intersection for 3D entities. The admissible range is 1 to 100 pixels. A negative value turns off the line extensions effect, but the variable continues to store the previous setting.
Note: An existing visual style is not changed when the system variable gets a new value. Temporary visual style will be created as a clone of visual style assigned for current viewport.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
For example, to get the value: OdRusBufPtr pRb = pDb->getSysVar(L"VSEDGELEX"); OdInt16 effect = pRb->getInt16(); odPrintConsoleString(L"nLine extensions effect = %d", effect);
For example, to set the value: OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtInt16, 10); pDb->setSysVar(L"VSEDGELEX", pRb);
<group TD_SysVars_V> <title VSEDGEOVERHANG> <toctitle VSEDGEOVERHANG>
Type OdInt16 Initial value (–6) Read-Only No Saved In Nondatabase, Quasi variable Versions 2007+
The VSEDGEOVERHANG variable overhangs edges that extend beyond their intersections for 3D entities. The value can be in the range 1 to 100 pixels. A negative value turns off the overhang effect, but the variable continues to store the setting.
Note: An existing visual style is not changed when the system variable gets a new value. Temporary visual style will be created as a clone of visual style assigned for current viewport.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
For example, to get the value: OdRusBufPtr pRb = pDb->getSysVar(L"VSEDGEOVERHANG"); OdInt16 effect = pRb->getInt16(); odPrintConsoleString(L"nOverhang effect = %d", effect);
For example, to set the value: OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtInt16, 10); pDb->setSysVar(L"VSEDGEOVERHANG", pRb);
<group TD_SysVars_V> <title VSEDGES> <toctitle VSEDGES>
Type OdInt16 Initial value 1 Read-Only No Saved In Nondatabase, Quasi variable Versions 2007+
The VSEDGES variable stores the type of edges which are used for displaying in the current viewport. The value can be:
Value Description 0 Edges are not displayed 1 Isolines of edges are displayed 2 Facet edges are displayed
Note: An existing visual style is not changed when the system variable gets a new value. Temporary visual style will be created as a clone of visual style assigned for current viewport.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
For example, to get the value: OdRusBufPtr pRb = pDb->getSysVar(L"VSEDGES"); OdInt16 type = pRb->getInt16(); odPrintConsoleString(L"nEdge type = %d", type);
For example, to set the value: OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtInt16, 1); pDb->setSysVar(L"VSEDGES", pRb);
<group TD_SysVars_V>
<title VSINTERSECTIONLTYPE> <toctitle VSINTERSECTIONLTYPE>
Type OdInt16 Initial value 1 Read-Only No Saved In Nondatabase, Quasi variable Versions 2007+
The VSINTERSECTIONLTYPE variable stores the linetype number defining the shape of intersection lines in the visual style for the current viewport. The value can be:
Value Description 1 Solid line 2 Dashed line 3 Dotted line 4 Short dashed line 5 Medium dashed line 6 Long dashed line 7 Double short dashed line 8 Double medium dashed line 9 Double long dashed line 10 Medium long dashed line 11 Sparse dotted line
Note: An existing visual style is not changed when the system variable gets a new value. Temporary visual style will be created as a clone of visual style assigned for current viewport.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
For example, to get the value: OdRusBufPtr pRb = pDb->getSysVar(L"VSINTERSECTIONLTYPE"); OdInt16 linetype = pRb->getInt16(); odPrintConsoleString(L"nIntersection linetype = %d", linetype);
For example, to set the value: OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtInt16, 5); pDb->setSysVar(L"VSINTERSECTIONLTYPE", pRb);
<group TD_SysVars_V>
<title VSLIGHTINGQUALITY> <toctitle VSLIGHTINGQUALITY>
Type OdInt16 Initial value 1 Read-Only No Saved In Nondatabase, Quasi variable Versions 2007+
The VSLIGHTINGQUALITY variable stores the light quality mode in the visual style for the current viewport. The value can be:
Value Description 0 Faceted – uses a single color for each face. 1 Smooth – computes colors of faces as a gradient between the vertices. 2 Smoothest – computes colors of faces for individual pixels using the per-pixel lighting setting.
Note: An existing visual style is not changed when the system variable gets a new value. Temporary visual style will be created as a clone of visual style assigned for current viewport.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
For example, to get the value: OdRusBufPtr pRb = pDb->getSysVar(L"VSLIGHTINGQUALITY"); OdInt16 mode = pRb->getInt16(); odPrintConsoleString(L"nLight quality mode = %d", mode);
For example, to set the value: OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtInt16, 2); pDb->setSysVar(L"VSLIGHTINGQUALITY", pRb);
<group TD_SysVars_V>
<title VSOCCLUDEDLTYPE> <toctitle VSOCCLUDEDLTYPE>
Type OdInt16 Initial value Depends on the visual style Read-Only No Saved In Nondatabase, Quasi variable Versions 2011+
The VSOCCLUDEDLTYPE variable stores the linetype number defining the shape of occluded (hidden) lines in the visual style for the current viewport. The value can be:
Value Description 1 Solid line 2 Dashed line 3 Dotted line 4 Short dashed line 5 Medium dashed line 6 Long dashed line 7 Double short dashed line 8 Double medium dashed line 9 Double long dashed line 10 Medium long dashed line 11 Sparse dotted line
The current visual style defines the initial value:
Value Description 1 2D Wireframe 1 Conceptual 2 Hidden 1 Shaded 2 Shaded with Edges 1 Shades of Gray 1 Sketchy 1 Wireframe 1 X-ray 1 Realistic
Note: An existing visual style is not changed when the system variable gets a new value. Temporary visual style will be created as a clone of visual style assigned for current viewport.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
For example, to get the value: OdRusBufPtr pRb = pDb->getSysVar(L"VSOCCLUDEDLTYPE"); OdInt16 linetype = pRb->getInt16(); odPrintConsoleString(L"nOccluded linetype = %d", linetype);
For example, to set the value: OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtInt16, 5); pDb->setSysVar(L"VSOCCLUDEDLTYPE", pRb);
<group TD_SysVars_V>
<title VSSILHWIDTH> <toctitle VSSILHWIDTH>
Type OdInt16 Initial value 5 Read-Only No Saved In Nondatabase, Quasi variable Versions 2007+
The VSSILHWIDTH variable stores the width in pixels of silhouette edges in the visual style for the current viewport. The value can be in the range 0 to 25.
Note: An existing visual style is not changed when the system variable gets a new value. Temporary visual style will be created as a clone of visual style assigned for current viewport.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
For example, to get the value: OdRusBufPtr pRb = pDb->getSysVar(L"VSSILHWIDTH"); OdInt16 width = pRb->getInt16(); odPrintConsoleString(L"nSilhouette width = %d", width);
For example, to set the value: OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtInt16, 12); pDb->setSysVar(L"VSSILHWIDTH", pRb);
<group TD_SysVars_V>
<title MEASUREMENT> <toctitle MEASUREMENT>
Type OdDb::MeasurementValue Initial value OdDb::kEnglish | OdDb::kMetric Read-Only No Saved In Database Versions R14+
MEASUREMENT controls the use of metric vs. imperial linetype and hatch pattern files.
Name Value Registry Settings Used Default Settings OdDb::kEnglish 0 ANSILinetype & ANSIHatch acad.lin & acad.pat OdDb::kMetric 1 ISOLinetype & ISOHatch acadiso.lin & acadiso.pat
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar() OdDbDatabase::getMEASUREMENT() OdDbDatabase::setMEASUREMENT()
<group TD_SysVars_M>
<title DBCSTATE> <toctitle DBCSTATE>
Type OdInt16 Initial value 0 Read-Only No Saved In Database Versions 2000+
DBCSTATE controls the display of the dbConnect Manager, whether or not the dbConnect Manager is active.
Value Description 0 Not displayed. 1 Displayed.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar() OdDbDatabase::getDBCSTATE() OdDbDatabase::setDBCSTATE()
<group TD_SysVars_D>
<title INTERSECTIONCOLOR> <toctitle INTERSECTIONCOLOR>
Type OdInt16 Initial value 257 Read-Only No Saved In Database Versions 2004+
Currently not supported.
INTERSECTIONCOLOR specifies the ACI color index of intersection polylines. Intersection polylines are displayed at the intersections of 3D surfaces if and only if INTERSECTIONDISPLAY == true.
Name Value Description kACIbyBlock 0 ByBlock kACIRed 1 Red kACIYellow 2 Yellow kACIGreen 3 Green kACICyan 4 Cyan kACIBlue 5 Blue kACIMagenta 6 Magenta kACIforeground 7 Foreground color .. 8-255 Defined by display device kACIbyLayer 256 ByLayer kACInone 257 No color
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar() OdDbDatabase::getINTERSECTIONCOLOR() OdDbDatabase::setINTERSECTIONCOLOR()
<group TD_SysVars_I>
<title SHOWHIST> <toctitle SHOWHIST>
Type OdInt8 Initial value 1 Read-Only No Saved In Database Versions 2007+
Currently not supported.
SHOWHIST controls the History display for solids in a drawing.
Value Description 0 Hides all history. 1 Uses the individual solid Show History properties. 2 Displays all history.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar() OdDbDatabase::getSHOWHIST() OdDbDatabase::setSHOWHIST()
<group TD_SysVars_S>
<title TILEMODELIGHTSYNCH> <toctitle TILEMODELIGHTSYNCH>
Type OdInt8 Initial value 1 Read-Only No Saved In Database Versions N/A
TILEMODELIGHTSYNCH controls the sychronization of lighting in all model space viewports.
Value Description 0 Not synchronized 1 Synchronized
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar() OdDbDatabase::getTILEMODELIGHTSYNCH() OdDbDatabase::setTILEMODELIGHTSYNCH()
<group TD_SysVars_T>
<title INTERFERECOLOR> <toctitle INTERFERECOLOR>
Type OdCmColor Initial value OdCmEntityColor::kByLayer Read-Only No Saved In Database Versions 2007+
INTERFERECOLOR specifies the color of interference objects.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar() OdDbDatabase::getINTERFERECOLOR() OdDbDatabase::setINTERFERECOLOR()
<group TD_SysVars_I>
<title GEOMARKERVISIBILITY> <toctitle GEOMARKERVISIBILITY>
Type OdInt16 Initial value 1 Range 0 ... 1 Read-Only No Saved In Database Versions 2009+
GEOMARKERVISIBILITY controls the visibility of the geolocation marker.
Value Description 0 Geolocation marker is invisible. 1 Geolocation marker is visible.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar() OdDbDatabase::getGEOMARKERVISIBILITY() OdDbDatabase::setGEOMARKERVISIBILITY()
<group TD_SysVars_G>
<title EXPORTMODELSPACE> <toctitle EXPORTMODELSPACE>
Type OdInt16 Initial value 0 Range 0 ... 2 Read-Only No Saved In Database Versions N/A
The EXPORTMODELSPACE variable specifies what part of the drawing to export to a DWF, DWFx, or PDF file from model space.
Value Description 0 Display 1 Extents 2 Window
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar() OdDbDatabase::getEXPORTMODELSPACE() OdDbDatabase::setEXPORTMODELSPACE()
<group TD_SysVars_E>
<title EXPORTPAGESETUP> <toctitle EXPORTPAGESETUP>
Type OdInt16 Initial value 0 Range 0 ... 1 Read-Only No Saved In Database Versions N/A
The EXPORTPAGESETUP variable specifies whether to export to a DWF, DWFx, or PDF file with the current page setup.
Value Description 0 Default 1 Override
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar() OdDbDatabase::getEXPORTPAGESETUP() OdDbDatabase::setEXPORTPAGESETUP()
<group TD_SysVars_E>
<title FRAME> <toctitle FRAME>
Type OdInt16 Initial value 3 Range 0 ... 3 Read-Only No Saved In Database Versions N/A
The FRAME variable controls the visibility of frames for external references, images and underlays. It overrides the individual IMAGEFRAME, DWFFRAME, PDFFRAME, DGNFRAME, and XCLIPFRAME variable settings.
Value Description 0 Invisible 1 Displayed and plotted 2 Displayed but not plotted 3 The individual setting varies for different underlays, external references and images
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar() OdDbDatabase::getFRAME() OdDbDatabase::setFRAME()
<group TD_SysVars_F>
<title SKYSTATUS> <toctitle SKYSTATUS>
Type OdInt16 Initial value 0 Range 0 ... 2 Read-Only No Saved In Database Versions N/A
The SKYSTATUS variable determines if the sky illumination is computed at render time.
Value Description 0 No sky 1 Sky background 2 Sky background and illumination
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar() OdDbDatabase::getSKYSTATUS() OdDbDatabase::setSKYSTATUS()
<group TD_SysVars_S>
<title HPTRANSPARENCY> <toctitle HPTRANSPARENCY>
Type OdCmTransparency Initial value OdCmTransparency::kErrorValue (Use CETRANSPARENCY for new Hatch entities) Read-Only No Saved In Database Versions R13+
HPTRANSPARENCY stores information about the transparency of new hatches and fills.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar() OdDbDatabase::getHPTRANSPARENCY() OdDbDatabase::setHPTRANSPARENCY()
<group TD_SysVars_H>
<title VSACURVATUREHIGH> <toctitle VSACURVATUREHIGH>
Type double Initial value 1.0 Read-Only No Saved In Database Versions 2013+
The VSACURVATUREHIGH variable stores a high value at which a surface displays as green tint when curvature analysis is performed.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar() OdDbDatabase::getVSACURVATUREHIGH() OdDbDatabase::setVSACURVATUREHIGH()
For example, to get the value: OdRusBufPtr pRb = pDb->getSysVar(L"VSACURVATUREHIGH"); double value = pRb->getDouble(); odPrintConsoleString(L"nCurvatture high = %g", value); or // odPrintConsoleString(L"nCurvatture high = %g", pDb->getVSACURVATUREHIGH());
For example, to set the value: OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtDouble, 0.8); pDb->setSysVar(L"VSACURVATUREHIGH", pRb); or // pDb->setVSACURVATUREHIGH(0.5);
<group TD_SysVars_V>
<title GEOMARKPOSITIONSIZE> <toctitle GEOMARKPOSITIONSIZE>
Type double Initial value 1. Read-Only No Saved In Database Versions 2014+
The GEOMARKPOSITIONSIZE variable sets the scale factor used for point indicators and multiline text entities when creating geographic position markers (OdDbGeoPositionMarker).
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar() OdDbDatabase::getGEOMARKPOSITIONSIZE() OdDbDatabase::setGEOMARKPOSITIONSIZE()
<group TD_SysVars_G>
ValidateRange | ( | 0 | , |
100 | |||
) |
<title VSINTERSECTIONCOLOR> <toctitle VSINTERSECTIONCOLOR>
Type OdString Initial value "7" Read-Only No Saved In Nondatabase, Quasi variable Versions 2007+
The VSINTERSECTIONCOLOR variable stores the tint of intersection polylines in the visual style for the current viewport when it is set to 2D Wireframe. Value 0 defines a color ByBlock, value 256 defines a color ByLayer, value 257 defines a color ByEntity, values 1 to 255 define the ACI color.
Note: An existing visual style is not changed when the system variable gets a new value. Temporary visual style will be created as a clone of visual style assigned for current viewport.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
For example, to get the value: OdRusBufPtr pRb = pDb->getSysVar(L"VSINTERSECTIONCOLOR"); OdString tint = pRb->getString(); odPrintConsoleString(L"nColor of intersection = %s", tint);
For example, to set the value: OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtString, L"128"); pDb->setSysVar(L"VSINTERSECTIONCOLOR", pRb);
<group TD_SysVars_V> <title VSINTERSECTIONEDGES> <toctitle VSINTERSECTIONEDGES>
Type OdInt16 Initial value 0 Read-Only No Saved In Nondatabase, Quasi variable Versions 2007+
The VSINTERSECTIONEDGES variable determines whether intersection edges are displayed in the visual style for the current viewport. The value can be:
Value Description 0 Display off 1 Display on
Note: An existing visual style is not changed when the system variable gets a new value. Temporary visual style will be created as a clone of visual style assigned for current viewport.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
For example, to get the value: OdRusBufPtr pRb = pDb->getSysVar(L"VSINTERSECTIONEDGES"); OdInt16 status = pRb->getInt16(); odPrintConsoleString(L"nIntersection display status = %d", status);
For example, to set the value: OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtInt16, 1); pDb->setSysVar(L"VSINTERSECTIONEDGES", pRb);
<group TD_SysVars_V>
<title FACETRES> <toctitle FACETRES>
Type double Initial value 0.5 Range 0.01 ... 10.0 Read-Only No Saved In Database Versions R13+
FACETRES specifies the quality of hidden, shaded, and rendered objects.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar() OdDbDatabase::getFACETRES() OdDbDatabase::setFACETRES()
<group TD_SysVars_F>
ValidateRange | ( | 0 | , |
11 | |||
) |
<title VSISOONTOP> <toctitle VSISOONTOP>
Type OdInt16 Initial value 0 Read-Only No Saved In Nondatabase, Quasi variable Versions 2007+
The VSISOONTOP variable determines whether isolines are on top of shaded entities in the visual style for the current viewport. The value can be:
Value Description 0 Isolines off 1 Isolines on
Note: An existing visual style is not changed when the system variable gets a new value. Temporary visual style will be created as a clone of visual style assigned for current viewport.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
For example, to get the value: OdRusBufPtr pRb = pDb->getSysVar(L"VSISOONTOP"); OdInt16 status = pRb->getInt16(); odPrintConsoleString(L"nIsoline status = %d", status);
For example, to set the value: OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtInt16, 1); pDb->setSysVar(L"VSISOONTOP", pRb);
<group TD_SysVars_V>
<title VSSHADOWS> <toctitle VSSHADOWS>
Type OdInt16 Initial value 0 Read-Only No Saved In Nondatabase, Quasi variable Versions 2007+
The VSSHADOWS variable stores the shadow mode that defines whether a visual style displays shadows in the current viewport. The value can be:
Value Description 0 Shadows are not displayed 1 Ground shadows are only displayed 2 Full shadows are displayed
Note: An existing visual style is not changed when the system variable gets a new value. Temporary visual style will be created as a clone of visual style assigned for current viewport.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
For example, to get the value: OdRusBufPtr pRb = pDb->getSysVar(L"VSSHADOWS"); OdInt16 mode = pRb->getInt16(); odPrintConsoleString(L"nShadow mode = %d", mode);
For example, to set the value: OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtInt16, 1); pDb->setSysVar(L"VSSHADOWS", pRb);
<group TD_SysVars_V>
ValidateRange | ( | 0 | , |
180 | |||
) |
<title VSFACECOLORMODE> <toctitle VSFACECOLORMODE>
Type OdInt16 Initial value 0 Read-Only No Saved In Nondatabase, Quasi variable Versions 2007+
The VSFACECOLORMODE variable stores the mode that defines how to calculate the face color. The value can be:
Value Description 0 Normal mode – face color is not used. 1 Monochrome mode – uses the color from VSMONOCOLOR system variable to display all faces. 2 Tint mode – uses the color from VSMONOCOLOR system variable to shade all faces by changing the tint and saturation of colors. 3 Desaturate mode – softens the color of all faces by reducing its saturation (30 percent).
Note: An existing visual style is not changed when the system variable gets a new value. Temporary visual style will be created as a clone of visual style assigned for current viewport.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
For example, to get the value: OdRusBufPtr pRb = pDb->getSysVar(L"VSFACECOLORMODE"); OdInt16 mode = pRb->getInt16(); odPrintConsoleString(L"nFace color mode = %d", mode);
For example, to set the value: OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtInt16, 1); pDb->setSysVar(L"VSFACECOLORMODE", pRb);
<group TD_SysVars_V>
ValidateRange | ( | 0 | , |
2 | |||
) |
<title VSEDGESMOOTH> <toctitle VSEDGESMOOTH>
Type OdInt16 Initial value 1 Read-Only No Saved In Nondatabase, Quasi variable Versions 2007+
The VSEDGESMOOTH variable stores the angle at which edges are displayed in the current viewport. The value can be in the range 0 to 180 degrees.
Note: An existing visual style is not changed when the system variable gets a new value. Temporary visual style will be created as a clone of visual style assigned for current viewport.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
For example, to get the value: OdRusBufPtr pRb = pDb->getSysVar(L"VSEDGESMOOTH"); OdInt16 angle = pRb->getInt16(); odPrintConsoleString(L"nAngle = %d", angle);
For example, to set the value: OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtInt16, 90); pDb->setSysVar(L"VSEDGESMOOTH", pRb);
<group TD_SysVars_V>
<title VSHALOGAP> <toctitle VSHALOGAP>
Type OdInt16 Initial value 0 Read-Only No Saved In Nondatabase, Quasi variable Versions 2007+
The VSHALOGAP variable stores the aureole gap in the visual style for the current viewport. The value can be in the range 0 to 100.
Note: An existing visual style is not changed when the system variable gets a new value. Temporary visual style will be created as a clone of visual style assigned for current viewport.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
For example, to get the value: OdRusBufPtr pRb = pDb->getSysVar(L"VSHALOGAP"); OdInt16 gap = pRb->getInt16(); odPrintConsoleString(L"nAureole gap = %d", gap);
For example, to set the value: OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtInt16, 60); pDb->setSysVar(L"VSHALOGAP", pRb);
<group TD_SysVars_V>
<title VSMATERIALMODE> <toctitle VSMATERIALMODE>
Type OdInt16 Initial value 0 Read-Only No Saved In Nondatabase, Quasi variable Versions 2007+
The VSMATERIALMODE variable stores the material mode that defines how materials are to be displayed in the current viewport. The value can be:
Value Description 0 Materials are not displayed. 1 Textures are not displayed and materials are displayed. 2 Textures and materials are displayed.
Note: An existing visual style is not changed when the system variable gets a new value. Temporary visual style will be created as a clone of visual style assigned for current viewport.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
For example, to get the value: OdRusBufPtr pRb = pDb->getSysVar(L"VSMATERIALMODE"); OdInt16 mode = pRb->getInt16(); odPrintConsoleString(L"nMaterial mode = %d", mode);
For example, to set the value: OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtInt16, 1); pDb->setSysVar(L"VSMATERIALMODE", pRb);
<group TD_SysVars_V>
<title VSMONOCOLOR> <toctitle VSMONOCOLOR>
Type OdString Initial value "RGB:255,255,255" Read-Only No Saved In Nondatabase, Quasi variable Versions 2007+
The VSMONOCOLOR variable stores the monochrome tint of faces in the visual style for the current viewport. TrueColor value is set as follows: "RGB:XXX,XXX,XXX", where XXX is the color component value in the range 0 to 255.
Note: An existing visual style is not changed when the system variable gets a new value. Temporary visual style will be created as a clone of visual style assigned for current viewport.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
For example, to get the value: OdRusBufPtr pRb = pDb->getSysVar(L"VSMONOCOLOR"); OdString tint = pRb->getString(); odPrintConsoleString(L"nMonochrome color = %s", tint);
For example, to set the value: OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtString, L"RGB:128,128,128"); pDb->setSysVar(L"VSMONOCOLOR", pRb);
<group TD_SysVars_V> <title VSOBSCUREDCOLOR> <toctitle VSOBSCUREDCOLOR>
Type OdString Initial value "ByEntity" Read-Only No Saved In Nondatabase, Quasi variable Versions 2007+
The VSOBSCUREDCOLOR variable stores the tint of obscured (hidden) lines in the visual style for the current viewport. TrueColor value is set as follows: "RGB:XXX,XXX,XXX", where XXX is the color component value in the range 0 to 255. Value 0 defines a color ByBlock, value 256 defines a color ByLayer, value 257 defines a color ByEntity, values 1 to 255 define the ACI color.
Note: An existing visual style is not changed when the system variable gets a new value. Temporary visual style will be created as a clone of visual style assigned for current viewport.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
For example, to get the value: OdRusBufPtr pRb = pDb->getSysVar(L"VSOBSCUREDCOLOR"); OdString tint = pRb->getString(); odPrintConsoleString(L"nColor of obscured lines = %s", tint);
For example, to set the value: OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtString, L"RGB:128,128,128"); pDb->setSysVar(L"VSOBSCUREDCOLOR", pRb);
<group TD_SysVars_V> <title VSOBSCUREDEDGES> <toctitle VSOBSCUREDEDGES>
Type OdInt16 Initial value 1 Read-Only No Saved In Nondatabase, Quasi variable Versions 2007+
The VSOBSCUREDEDGES variable determines whether obscured (hidden) edges are displayed in the visual style for the current viewport. The value can be:
Value Description 0 Display off 1 Display on
Note: An existing visual style is not changed when the system variable gets a new value. Temporary visual style will be created as a clone of visual style assigned for current viewport.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
For example, to get the value: OdRusBufPtr pRb = pDb->getSysVar(L"VSOBSCUREDEDGES"); OdInt16 status = pRb->getInt16(); odPrintConsoleString(L"nObscured edges display status = %d", status);
For example, to set the value: OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtInt16, 0); pDb->setSysVar(L"VSOBSCUREDEDGES", pRb);
<group TD_SysVars_V> <title VSOBSCUREDLTYPE> <toctitle VSOBSCUREDLTYPE>
Type OdInt16 Initial value Depends on the visual style Read-Only No Saved In Nondatabase, Quasi variable Versions 2007+
The VSOBSCUREDLTYPE variable stores the linetype number defining the shape of obscured (hidden) lines in the visual style for the current viewport. The value can be:
Value Description 1 Solid line 2 Dashed line 3 Dotted line 4 \Short dashed line 5 Medium dashed line 6 \Long dashed line 7 Double short dashed line 8 Double medium dashed line 9 Double long dashed line 10 Medium long dashed line 11 Sparse dotted line
The current visual style defines the initial value:
Value Description 1 2D Wireframe 1 Conceptual 2 Hidden 1 Shaded 2 Shaded with Edges 1 Shades of Gray 1 Sketchy 1 Wireframe 1 X-ray 1 Realistic
Note: An existing visual style is not changed when the system variable gets a new value. Temporary visual style will be created as a clone of visual style assigned for current viewport.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
For example, to get the value: OdRusBufPtr pRb = pDb->getSysVar(L"VSOBSCUREDLTYPE"); OdInt16 linetype = pRb->getInt16(); odPrintConsoleString(L"nObscured linetype = %d", linetype);
For example, to set the value: OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtInt16, 5); pDb->setSysVar(L"VSOBSCUREDLTYPE", pRb);
<group TD_SysVars_V> <title VSOCCLUDEDCOLOR> <toctitle VSOCCLUDEDCOLOR>
Type OdString Initial value "ByEntity" Read-Only No Saved In Nondatabase, Quasi variable Versions 2011+
The VSOCCLUDEDCOLOR variable stores the tint of occluded (hidden) lines in the visual style for the current viewport. TrueColor value is set as follows: "RGB:XXX,XXX,XXX", where XXX is the color component value in the range 0 to 255. Value 0 defines a color ByBlock, value 256 defines a color ByLayer, value 257 defines a color ByEntity, values 1 to 255 define the ACI color.
Note: An existing visual style is not changed when the system variable gets a new value. Temporary visual style will be created as a clone of visual style assigned for current viewport.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
For example, to get the value: OdRusBufPtr pRb = pDb->getSysVar(L"VSOCCLUDEDCOLOR"); OdString tint = pRb->getString(); odPrintConsoleString(L"nColor of occluded lines = %s", tint);
For example, to set the value: OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtString, L"RGB:128,128,128"); pDb->setSysVar(L"VSOCCLUDEDCOLOR", pRb);
<group TD_SysVars_V> <title VSOCCLUDEDEDGES> <toctitle VSOCCLUDEDEDGES>
Type OdInt16 Initial value 1 Read-Only No Saved In Nondatabase, Quasi variable Versions 2011+
The VSOCCLUDEDEDGES variable determines whether occluded (hidden) edges are displayed in the visual style for the current viewport. The value can be:
Value Description 0 Display off 1 Display on
Note: An existing visual style is not changed when the system variable gets a new value. Temporary visual style will be created as a clone of visual style assigned for current viewport.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
For example, to get the value: OdRusBufPtr pRb = pDb->getSysVar(L"VSOCCLUDEDEDGES"); OdInt16 status = pRb->getInt16(); odPrintConsoleString(L"nOccluded edges display status = %d", status);
For example, to set the value: OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtInt16, 0); pDb->setSysVar(L"VSOCCLUDEDEDGES", pRb);
<group TD_SysVars_V>
<title VSSILHEDGES> <toctitle VSSILHEDGES>
Type OdInt16 Initial value Depends on the visual style Read-Only No Saved In Nondatabase, Quasi variable Versions 2007+
The VSSILHEDGES variable determines whether silhouette edges of 3D entities are displayed in the visual style for the current viewport. The value can be:
Value Description 0 Display off 1 Display on
The current visual style defines the initial value:
Value Description 0 2D Wireframe 1 Conceptual 1 Hidden 0 Shaded 1 Shaded with Edges 1 Shades of Gray 1 Sketchy 0 Wireframe 0 X-ray 0 Realistic
Note: An existing visual style is not changed when the system variable gets a new value. Temporary visual style will be created as a clone of visual style assigned for current viewport.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
For example, to get the value: OdRusBufPtr pRb = pDb->getSysVar(L"VSSILHEDGES"); OdInt16 status = pRb->getInt16(); odPrintConsoleString(L"nSilhouette edge display status = %d", status);
For example, to set the value: OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtInt16, 1); pDb->setSysVar(L"VSSILHEDGES", pRb);
<group TD_SysVars_V>
ValidateRange | ( | 0 | , |
3 | |||
) |
<title VSFACEHIGHLIGHT> <toctitle VSFACEHIGHLIGHT>
Type OdInt16 Initial value (–30) Read-Only No Saved In Nondatabase, Quasi variable Versions 2007+
The VSFACEHIGHLIGHT variable stores the reflex highlights of faces without materials to be displayed in the current viewport. The value can be in the range –100 to 100. The higher the value, the larger the highlight. The smaller the value, the smaller the highlight. If the VSMATERIALMODE system variable is on, attached materials ignore the highlight.
Note: An existing visual style is not changed when the system variable gets a new value. Temporary visual style will be created as a clone of visual style assigned for current viewport.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
For example, to get the value: OdRusBufPtr pRb = pDb->getSysVar(L"VSFACEHIGHLIGHT"); OdInt16 highlight = pRb->getInt16(); odPrintConsoleString(L"nFace highlight = %d", highlight);
For example, to set the value: OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtInt16, 60); pDb->setSysVar(L"VSFACEHIGHLIGHT", pRb);
<group TD_SysVars_V> <title VSFACEOPACITY> <toctitle VSFACEOPACITY>
Type OdInt16 Initial value (–60) Read-Only No Saved In Nondatabase, Quasi variable Versions 2007+
The VSFACEOPACITY variable switches the preset level of transparency for 3D entities. The value can be in the range 0 to 100 percent. The value 100 is limpid, the value 0 is opaque. A negative value stores the transparency but turns off the effect.
Note: An existing visual style is not changed when the system variable gets a new value. Temporary visual style will be created as a clone of visual style assigned for current viewport.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
For example, to get the value: OdRusBufPtr pRb = pDb->getSysVar(L"VSFACEOPACITY"); OdInt16 transparency = pRb->getInt16(); odPrintConsoleString(L"nTransparency level = %d", transparency);
For example, to set the value: OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtInt16, 50); pDb->setSysVar(L"VSFACEOPACITY", pRb);
<group TD_SysVars_V> <title VSFACESTYLE> <toctitle VSFACESTYLE>
Type OdInt16 Initial value 0 Read-Only No Saved In Nondatabase, Quasi variable Versions 2007+
The VSFACESTYLE variable stores the face mode that defines how faces display in the current viewport. The value can be:
Value Description 0 Off – style is not applied. 1 Real – defines how the face would appear in the real world mode. 2 Gooch – uses cool and warm colors instead of dark and light to display the faces which might be shadowed and difficult to review in the realistic mode.
Note: An existing visual style is not changed when the system variable gets a new value. Temporary visual style will be created as a clone of visual style assigned for current viewport.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
For example, to get the value: OdRusBufPtr pRb = pDb->getSysVar(L"VSFACESTYLE"); OdInt16 mode = pRb->getInt16(); odPrintConsoleString(L"nFace mode = %d", mode);
For example, to set the value: OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtInt16, 1); pDb->setSysVar(L"VSFACESTYLE", pRb);
<group TD_SysVars_V>
TEXTSIZE |
Definition at line 994 of file QuasiVarDefs.h.
VSBACKGROUNDS |
Definition at line 1071 of file QuasiVarDefs.h.
VSEDGES |
Definition at line 1297 of file QuasiVarDefs.h.
VSEDGESMOOTH |
Definition at line 1338 of file QuasiVarDefs.h.
VSFACECOLORMODE |
Definition at line 1387 of file QuasiVarDefs.h.
VSFACESTYLE |
Definition at line 1520 of file QuasiVarDefs.h.
VSHALOGAP |
Definition at line 1561 of file QuasiVarDefs.h.
VSINTERSECTIONEDGES |
Definition at line 1651 of file QuasiVarDefs.h.
VSINTERSECTIONLTYPE |
Definition at line 1707 of file QuasiVarDefs.h.
VSISOONTOP |
Definition at line 1754 of file QuasiVarDefs.h.
VSLIGHTINGQUALITY |
Definition at line 1802 of file QuasiVarDefs.h.
VSMATERIALMODE |
Definition at line 1850 of file QuasiVarDefs.h.
VSOCCLUDEDEDGES |
Definition at line 2144 of file QuasiVarDefs.h.
VSOCCLUDEDLTYPE |
Definition at line 2219 of file QuasiVarDefs.h.
VSSHADOWS |
Definition at line 2270 of file QuasiVarDefs.h.
VSSILHEDGES |
Definition at line 2336 of file QuasiVarDefs.h.
VSSILHWIDTH |
Definition at line 2380 of file QuasiVarDefs.h.