///////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2002-2019, 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 Open Design Alliance software pursuant to a license
// agreement with Open Design Alliance.
// Open Design Alliance Copyright (C) 2002-2019 by Open Design Alliance.
// All rights reserved.
//
// By use of this software, its documentation or related materials, you
// acknowledge and accept the above terms.
///////////////////////////////////////////////////////////////////////////////
#ifndef QVAR_DEF_RO
#define DOUNDEF_QVAR_DEF_RO
#define QVAR_DEF_RO QVAR_DEF /*!DOM*/
#endif
#ifndef QVAR_DEF_RO
#define DOUNDEF_QVAR_DEF_RO
#define QVAR_DEF_RO QVAR_DEF /*!DOM*/
#endif
#ifndef ODTDIST
#define ODTDIST double /*!DOM*/
#define DOUNDEF_ODTDIST
#endif
#ifndef ODTORIENT
#define ODTORIENT double /*!DOM*/
#define DOUNDEF_ODTORIENT
#endif
#ifndef ODTANGLE
#define ODTANGLE double /*!DOM*/
#define DOUNDEF_ODTANGLE
#endif
#ifndef ODTLAYOUTID
#define ODTLAYOUTID OdDbObjectId /*!DOM*/
#define DOUNDEF_ODTLAYOUTID
#endif
#ifndef ODTTEXTSTYLEID
#define ODTTEXTSTYLEID OdDbObjectId /*!DOM*/
#define DOUNDEF_ODTTEXTSTYLEID
#endif
#ifndef ODTBOOL
#define ODTBOOL bool /*!DOM*/
#define DOUNDEF_ODTBOOL
#endif
/*
#ifdef DATE
#define SAVED_DATE_DEFINITION
#undef DATE
#endif
*/
// Type Name
/**
Type double
Initial value 0.0
Read-Only Yes
Saved In Database
Versions R12+
BACKZ specifies the back clipping distance for the current viewport.
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:
ValueDescription
0x00 Disabled
0x01 Perspective enabled
0x02 Front clip enabled
0x04 Back clip enabled
0x08 UCS follow enabled
0x10 Front clipping plane not at eye
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:
ValueDescription
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).
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);
*/
//OdInt16 GRIDMAJOR;
QVAR_DEF (OdInt16, GRIDMAJOR, ValidateNone() )
QVAR_DEF (OdInt16, VSBACKGROUNDS, ValidateNone() )
/**
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.
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);
*/
//OdString VSEDGECOLOR;
QVAR_DEF (OdString, VSEDGECOLOR, ValidateNone() )
/**
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:
ValueDescription
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.
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)
*/
//OdInt16 VSEDGEJITTER;
QVAR_DEF (OdInt16, VSEDGEJITTER, ValidateNone() )
/**
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.
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);
*/
//OdInt16 VSEDGELEX;
QVAR_DEF (OdInt16, VSEDGELEX, ValidateNone() )
/**
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.
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);
*/
//OdInt16 VSEDGEOVERHANG;
QVAR_DEF (OdInt16, VSEDGEOVERHANG, ValidateNone() )
/**
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:
ValueDescription
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.
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);
*/
//OdInt16 VSEDGES;
QVAR_DEF (OdInt16, VSEDGES, ValidateNone() )
/**
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.
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);
*/
//OdInt16 VSEDGESMOOTH;
QVAR_DEF (OdInt16, VSEDGESMOOTH, ValidateNone() )
/**
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:
ValueDescription
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.
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);
*/
//OdInt16 VSFACECOLORMODE;
QVAR_DEF (OdInt16, VSFACECOLORMODE, ValidateNone() )
/**
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.
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);
*/
//OdInt16 VSFACEHIGHLIGHT;
QVAR_DEF (OdInt16, VSFACEHIGHLIGHT, ValidateNone() )
/**
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.
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);
*/
//OdInt16 VSFACEOPACITY;
QVAR_DEF (OdInt16, VSFACEOPACITY, ValidateNone() )
/**
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:
ValueDescription
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.
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);
*/
//OdInt16 VSFACESTYLE;
QVAR_DEF (OdInt16, VSFACESTYLE, ValidateNone() )
/**
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.
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);
*/
//OdInt16 VSHALOGAP;
QVAR_DEF (OdInt16, VSHALOGAP, ValidateNone() )
/**
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.
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);
*/
//OdString VSINTERSECTIONCOLOR;
QVAR_DEF (OdString, VSINTERSECTIONCOLOR, ValidateNone() )
/**
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:
ValueDescription
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.
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);
*/
//OdInt16 VSINTERSECTIONEDGES;
QVAR_DEF (OdInt16, VSINTERSECTIONEDGES, ValidateNone() )
/**
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:
ValueDescription
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.
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);
*/
//OdInt16 VSINTERSECTIONLTYPE;
QVAR_DEF (OdInt16, VSINTERSECTIONLTYPE, ValidateNone() )
/**
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:
ValueDescription
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.
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);
*/
//OdInt16 VSISOONTOP;
QVAR_DEF (OdInt16, VSISOONTOP, ValidateNone() )
/**
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:
ValueDescription
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.
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);
*/
//OdInt16 VSLIGHTINGQUALITY;
QVAR_DEF (OdInt16, VSLIGHTINGQUALITY, ValidateNone() )
/**
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:
ValueDescription
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.
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);
*/
//OdInt16 VSMATERIALMODE;
QVAR_DEF (OdInt16, VSMATERIALMODE, ValidateNone() )
/**
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.
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);
*/
//OdString VSMONOCOLOR;
QVAR_DEF (OdString, VSMONOCOLOR, ValidateNone() )
/**
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.
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);
*/
//OdString VSOBSCUREDCOLOR;
QVAR_DEF (OdString, VSOBSCUREDCOLOR, ValidateNone() )
/**
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:
ValueDescription
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.
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);
*/
//OdInt16 VSOBSCUREDEDGES;
QVAR_DEF (OdInt16, VSOBSCUREDEDGES, ValidateNone() )
/**
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:
ValueDescription
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:
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.
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);
*/
//OdInt16 VSOBSCUREDLTYPE;
QVAR_DEF (OdInt16, VSOBSCUREDLTYPE, ValidateNone() )
/**
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.
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);
*/
//OdString VSOCCLUDEDCOLOR;
QVAR_DEF (OdString, VSOCCLUDEDCOLOR, ValidateNone() )
/**
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:
ValueDescription
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.
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);
*/
//OdInt16 VSOCCLUDEDEDGES;
QVAR_DEF (OdInt16, VSOCCLUDEDEDGES, ValidateNone() )
/**
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:
ValueDescription
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:
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.
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);
*/
//OdInt16 VSOCCLUDEDLTYPE;
QVAR_DEF (OdInt16, VSOCCLUDEDLTYPE, ValidateNone() )
/**
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:
ValueDescription
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.
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);
*/
//OdInt16 VSSHADOWS;
QVAR_DEF (OdInt16, VSSHADOWS, ValidateNone() )
/**
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:
ValueDescription
0 Display off
1 Display on
The current visual style defines the initial value:
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.
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);
*/
//OdInt16 VSSILHEDGES;
QVAR_DEF (OdInt16, VSSILHEDGES, ValidateNone() )
/**
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.
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);
*/
//OdInt16 VSSILHWIDTH;
QVAR_DEF (OdInt16, VSSILHWIDTH, ValidateNone() )
/**
Type OdInt16
Initial value 3
Read-Only No
Saved In Nondatabase, Quasi variable
Versions 2010+
The NAVVCUBEDISPLAY variable specifies whether the viewcube
tool should be displayed in the current paper or display
viewport (OdDbViewport or OdDbViewportTableRecord) depending
on the current visual style. The TILEMODE variable defines
whether the current viewport is paper or display. The
viewcube is a navigation tool which is displayed in 2D and 3D
visual styles and also allows switching between standard and
isometric views. The value can be:
ValueDescription
0 2D and 3D visual styles do not display the viewcube
1 3D visual styles display the viewcube, 2D visual styles do not
2 2D visual styles display the viewcube, 3D visual styles do not
3 2D and 3D visual styles display the viewcube
Access methods provide access to the value for the current
viewport (OdDbViewport if a paper layout is active or
OdViewportTableRecord if model space is active). See also
OdDbAbstractViewportData::navvcubeddisplay() and
OdDbAbstractViewportData::setNavvcubeddisplay() methods.
For example, to get the value:
OdRusBufPtr pRb = pDb-\>getSysVar(L"NAVVCUBEDISPLAY");
OdInt16 view = pRb-\>getInt16();
odPrintConsoleString(L"nThe viewcube status = %d", view);
For example, to set the value:
OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtInt16, 1);
pDb-\>setSysVar(L"NAVVCUBEDISPLAY", pRb);
*/
//OdInt16 NAVVCUBEDISPLAY;
QVAR_DEF (OdInt16, NAVVCUBEDISPLAY, ValidateRange(0, 3))
/**
Type OdInt16
Initial value 1
Read-Only No
Saved In Nondatabase, Quasi variable
Versions 2007+
The DEFAULTLIGHTING variable is used for turning on and off default lighting
instead of other lighting types.
The value can be:
ValueDescription
0 Default lighting is turned off automatically when the other lights such as distant lights, point lights, spotlights, or the sun are turned on.
1 Only default lighting is turned on.
Access methods provide access to the value for the current viewport.
Alternatively users can invoke direct access methods in their code depending
on the type of database object:
Type OdInt16
Initial value 1
Read-Only No
Saved In Nondatabase, Quasi variable
Versions 2007+
The DEFAULTLIGHTINGTYPE variable is used for specifying the old or new default lighting
type in a viewport. When the default lighting type is old, only one distant light is used.
The new default lighting type allows for two distant lights and ambient light adjustments.
The value can be:
ValueDescription
0 Old type of default lighting
1 New type of default lighting
Access methods provide access to the value for the current viewport.
Alternatively users can invoke direct access methods in their code depending
on the type of database object: