|
CFx SDK Documentation 2026 SP0
|
#include <FxDatabaseReactor.h>
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObject | |
| static OdRxObjectPtr | cast (const OdRxObject *pointer) |
| static OdRxClass * | desc () |
| static void | rxInit () |
| static void | rxUninit () |
Description: Represents a database change(reaction). Library: DDKERNEL
Definition at line 30 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::CFxDatabaseReactor | ( | ) |
|
override |
| CFxDatabaseReactor::ODRX_DECLARE_MEMBERS | ( | CFxDatabaseReactor | ) |
| CFxDatabaseReactor::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>
| CFxDatabaseReactor::ValidateNone | ( | ) |
| CFxDatabaseReactor::ValidateNone | ( | ) |
| CFxDatabaseReactor::ValidateNone | ( | ) |
| CFxDatabaseReactor::ValidateNone | ( | ) |
| CFxDatabaseReactor::ValidateNone | ( | ) |
| CFxDatabaseReactor::ValidateNone | ( | ) |
| CFxDatabaseReactor::ValidateNone | ( | ) |
| CFxDatabaseReactor::ValidateNone | ( | ) |
| CFxDatabaseReactor::ValidateNone | ( | ) |
| output output CFxDatabaseReactor::ValidateNone | ( | ) |
| output output CFxDatabaseReactor::ValidateNone | ( | ) |
| output output CFxDatabaseReactor::ValidateNone | ( | ) |
| CFxDatabaseReactor::ValidateNone | ( | ) |
| CFxDatabaseReactor::ValidateNone | ( | ) |
| CFxDatabaseReactor::ValidateNone | ( | ) |
| CFxDatabaseReactor::ValidateNone | ( | ) |
| output output CFxDatabaseReactor::ValidateNone | ( | ) |
| output output CFxDatabaseReactor::ValidateNone | ( | ) |
| CFxDatabaseReactor::ValidateNone | ( | ) |
| output output CFxDatabaseReactor::ValidateNone | ( | ) |
| CFxDatabaseReactor::ValidatePositive | ( | ) |
| CFxDatabaseReactor::ValidatePositive | ( | ) |
| CFxDatabaseReactor::ValidatePositive | ( | ) |
| CFxDatabaseReactor::ValidatePositive | ( | ) |
| CFxDatabaseReactor::ValidatePositive | ( | ) |
| CFxDatabaseReactor::ValidatePositive | ( | ) |
| CFxDatabaseReactor::ValidatePositive | ( | ) |
| CFxDatabaseReactor::ValidatePositive | ( | ) |
| CFxDatabaseReactor::ValidatePositive | ( | ) |
| CFxDatabaseReactor::ValidatePositive | ( | ) |
| CFxDatabaseReactor::ValidatePositive | ( | ) |
| CFxDatabaseReactor::ValidatePositive | ( | ) |
| CFxDatabaseReactor::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>
| CFxDatabaseReactor::ValidateRange | ( | - | 100, |
| 100 | ) |
<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>
| CFxDatabaseReactor::ValidateRange | ( | - | 100, |
| 100 | ) |
<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>
| CFxDatabaseReactor::ValidateRange | ( | - | 2, |
| 2 | ) |
| CFxDatabaseReactor::ValidateRange | ( | - | 3, |
| 3 | ) |
<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>
| CFxDatabaseReactor::ValidateRange | ( | 0 | , |
| 1 | ) |
| CFxDatabaseReactor::ValidateRange | ( | 0 | , |
| 1 | ) |
| CFxDatabaseReactor::ValidateRange | ( | 0 | , |
| 1 | ) |
| CFxDatabaseReactor::ValidateRange | ( | 0 | , |
| 1 | ) |
| CFxDatabaseReactor::ValidateRange | ( | 0 | , |
| 1 | ) |
| CFxDatabaseReactor::ValidateRange | ( | 0 | , |
| 1 | ) |
| CFxDatabaseReactor::ValidateRange | ( | 0 | , |
| 1 | ) |
| CFxDatabaseReactor::ValidateRange | ( | 0 | , |
| 1 | ) |
| CFxDatabaseReactor::ValidateRange | ( | 0 | , |
| 1 | ) |
| CFxDatabaseReactor::ValidateRange | ( | 0 | , |
| 1 | ) |
| output output CFxDatabaseReactor::ValidateRange | ( | 0 | , |
| 1 | ) |
| CFxDatabaseReactor::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>
| CFxDatabaseReactor::ValidateRange | ( | 0 | , |
| 1 | ) |
<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>
| CFxDatabaseReactor::ValidateRange | ( | 0 | , |
| 1 | ) |
<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>
| CFxDatabaseReactor::ValidateRange | ( | 0 | , |
| 1 | ) |
<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>
| CFxDatabaseReactor::ValidateRange | ( | 0 | , |
| 1 | ) |
<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>
| CFxDatabaseReactor::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>
| CFxDatabaseReactor::ValidateRange | ( | 0 | , |
| 127 | ) |
| CFxDatabaseReactor::ValidateRange | ( | 0 | , |
| 14 | ) |
| CFxDatabaseReactor::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>
| CFxDatabaseReactor::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>
| CFxDatabaseReactor::ValidateRange | ( | 0 | , |
| 2 | ) |
<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>
| CFxDatabaseReactor::ValidateRange | ( | 0 | , |
| 2 | ) |
<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>
| CFxDatabaseReactor::ValidateRange | ( | 0 | , |
| 2 | ) |
<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>
| CFxDatabaseReactor::ValidateRange | ( | 0 | , |
| 2 | ) |
<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>
| CFxDatabaseReactor::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>
| CFxDatabaseReactor::ValidateRange | ( | 0 | , |
| 4 | ) |
| CFxDatabaseReactor::ValidateRange | ( | 0 | , |
| Oda2PI | ) |
| CFxDatabaseReactor::ValidateRange | ( | 1 | , |
| 10 | ) |
| CFxDatabaseReactor::ValidateRange | ( | 1 | , |
| 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>
| CFxDatabaseReactor::ValidateRange | ( | 1 | , |
| 11 | ) |
<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>
| CFxDatabaseReactor::ValidateRange | ( | 1 | , |
| 2 | ) |
| CFxDatabaseReactor::ValidateRange | ( | 1 | , |
| 25 | ) |
<title NAVVCUBEDISPLAY> <toctitle NAVVCUBEDISPLAY>
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:
Value Description 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 OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
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);
<group TD_SysVars_N> <title DEFAULTLIGHTING> <toctitle DEFAULTLIGHTING>
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:
Value Description 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 OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
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:
OdAbstractViewPE::setDefaultLightingOn() OdDbAbstractViewTableRecord::isDefaultLightingOn() OdDbAbstractViewTableRecord::setDefaultLightingOn() OdDbViewport::isDefaultLightingOn() OdDbViewport::setDefaultLightingOn()
<group TD_SysVars_D> <title DEFAULTLIGHTINGTYPE> <toctitle DEFAULTLIGHTINGTYPE>
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:
Value Description 0 Old type of default lighting 1 New type of default lighting
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::setSysVar()
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:
OdAbstractViewPE::setDefaultLightingType() OdDbAbstractViewTableRecord::defaultLightingType() OdDbAbstractViewTableRecord::setDefaultLightingType() OdDbViewport::defaultLightingType() OdDbViewport::setDefaultLightingType()
<group TD_SysVars_D> <title CGEOCS> <toctitle CGEOCS>
Type OdString Initial value OdString::kEmpty Read-Only Yes Saved In Database Versions 2007+
The CGEOCS variable represents the name of the GIS coordinate system assigned to the drawing file.
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::getCGEOCS()
<group TD_SysVars_S> <title STUDENTDRAWING> <toctitle STUDENTDRAWING>
Type bool Initial value Depends on the drawing Read-Only Yes Saved In Database Versions 2019+
The STUDENTDRAWING variable specifies whether the drawing was created using an educational version of the software.
Value Description false Drawing was created using non-educational version true Drawing was created using educational version
Access Methods OdDbDatabase::getSysVar() OdDbDatabase::isEMR()
<group TD_SysVars_S>
| CFxDatabaseReactor::ValidateRange | ( | 1 | , |
| 25 | ) |
| CFxDatabaseReactor::ValidateStringColor | ( | ) |
| CFxDatabaseReactor::ANNOMONITOR |
Definition at line 2696 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::ANSI31 |
Definition at line 2659 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::AREA |
Definition at line 2703 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::CIRCLERAD |
Definition at line 2653 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::CLEXTENSION |
Definition at line 2678 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::CMDACTIVE |
Definition at line 2705 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::CMDECHO |
Definition at line 2654 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::CMDNAMES |
Definition at line 2706 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::COMPARECOLORCLOUD |
Definition at line 2685 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::COMPAREFRONT |
Definition at line 2686 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::COMPAREHATCH |
Definition at line 2687 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::COMPARERCMARGIN |
Definition at line 2688 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::COMPARERCSHAPE |
Definition at line 2689 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::COMPARESHOW1 |
Definition at line 2690 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::COMPARESHOW2 |
Definition at line 2691 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::COMPARESHOWCOMMON |
Definition at line 2692 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::COMPARETEXT |
Definition at line 2693 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::COMPARETOLERANCE |
Definition at line 2694 of file FxDatabaseReactor.h.
| output output CFxDatabaseReactor::DBMOD |
Definition at line 2730 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::DIASTAT |
Definition at line 2708 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::DIMRAILANGLE |
Definition at line 2675 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::DIMRAILFIRSTOFFSET |
Definition at line 2673 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::DIMRAILOFFSET |
Definition at line 2674 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::DIMRAILSENABLED |
Definition at line 2676 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::DISTANCE |
Definition at line 2709 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::DONUTID |
Definition at line 2669 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::DONUTOD |
Definition at line 2670 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::Double |
Definition at line 2653 of file FxDatabaseReactor.h.
| output output CFxDatabaseReactor::Double |
Definition at line 2720 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::ERRNO |
Definition at line 2711 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::FILLETRAD3D |
Definition at line 2671 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::HANDLES |
Definition at line 2713 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::HPANG |
Definition at line 2655 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::HPBOUND |
Definition at line 2656 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::HPDOUBLE |
Definition at line 2657 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::HPDRAWORDER |
Definition at line 2658 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::HPNAME |
Definition at line 2659 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::HPSCALE |
Definition at line 2660 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::HPSPACE |
Definition at line 2661 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::HPTRANSPARENCY |
Definition at line 2663 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::INSNAME |
Definition at line 2665 of file FxDatabaseReactor.h.
| output output CFxDatabaseReactor::Int16 |
Definition at line 2654 of file FxDatabaseReactor.h.
| output output CFxDatabaseReactor::Int16 |
Definition at line 2718 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::Int8 |
Definition at line 2688 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::kRtAngle |
Definition at line 2655 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::kRtDouble |
Definition at line 2653 of file FxDatabaseReactor.h.
| output output CFxDatabaseReactor::kRtDouble |
Definition at line 2720 of file FxDatabaseReactor.h.
| output output CFxDatabaseReactor::kRtInt16 |
Definition at line 2654 of file FxDatabaseReactor.h.
| output output CFxDatabaseReactor::kRtInt16 |
Definition at line 2718 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::kRtInt8 |
Definition at line 2688 of file FxDatabaseReactor.h.
| output output CFxDatabaseReactor::kRtPoint3d |
Definition at line 2667 of file FxDatabaseReactor.h.
| output output CFxDatabaseReactor::kRtPoint3d |
Definition at line 2726 of file FxDatabaseReactor.h.
| output output CFxDatabaseReactor::kRtString |
Definition at line 2659 of file FxDatabaseReactor.h.
| output output CFxDatabaseReactor::kRtString |
Definition at line 2716 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::LASTANGLE |
Definition at line 2715 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::LASTPOINT |
Definition at line 2667 of file FxDatabaseReactor.h.
| output CFxDatabaseReactor::log |
Definition at line 2716 of file FxDatabaseReactor.h.
| output output CFxDatabaseReactor::log |
Definition at line 2716 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::LOGFILENAME |
Definition at line 2716 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::LSPALOAD |
Definition at line 2666 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::NUDGECONSTMULTIPLIER |
Definition at line 2681 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::NUDGEFACTOR |
Definition at line 2682 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::NUDGEOFFSET |
Definition at line 2680 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::Oda2PI |
Definition at line 2675 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::OFFSETDIST |
Definition at line 2668 of file FxDatabaseReactor.h.
| output output CFxDatabaseReactor::OPENFORMATVERSION |
Definition at line 2718 of file FxDatabaseReactor.h.
| output output CFxDatabaseReactor::PERIMETER |
Definition at line 2720 of file FxDatabaseReactor.h.
| output output CFxDatabaseReactor::Point3d |
Definition at line 2667 of file FxDatabaseReactor.h.
| output output CFxDatabaseReactor::Point3d |
Definition at line 2726 of file FxDatabaseReactor.h.
| output output CFxDatabaseReactor::PREVCMD |
Definition at line 2721 of file FxDatabaseReactor.h.
| output output CFxDatabaseReactor::String |
Definition at line 2659 of file FxDatabaseReactor.h.
| output output CFxDatabaseReactor::String |
Definition at line 2716 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::TEXTSIZE |
Definition at line 995 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::UNDOCTL |
Definition at line 2701 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::VSBACKGROUNDS |
Definition at line 1072 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::VSEDGEJITTER |
Definition at line 1166 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::VSEDGELEX |
Definition at line 1208 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::VSEDGES |
Definition at line 1298 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::VSEDGESMOOTH |
Definition at line 1339 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::VSFACECOLORMODE |
Definition at line 1388 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::VSFACEHIGHLIGHT |
Definition at line 1431 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::VSFACESTYLE |
Definition at line 1521 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::VSHALOGAP |
Definition at line 1562 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::VSINTERSECTIONEDGES |
Definition at line 1652 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::VSINTERSECTIONLTYPE |
Definition at line 1708 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::VSISOONTOP |
Definition at line 1755 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::VSLIGHTINGQUALITY |
Definition at line 1803 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::VSMATERIALMODE |
Definition at line 1851 of file FxDatabaseReactor.h.
| output output CFxDatabaseReactor::VSMAX |
Definition at line 2726 of file FxDatabaseReactor.h.
| output output CFxDatabaseReactor::VSMIN |
Definition at line 2727 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::VSOCCLUDEDEDGES |
Definition at line 2145 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::VSOCCLUDEDLTYPE |
Definition at line 2220 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::VSSHADOWS |
Definition at line 2271 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::VSSILHEDGES |
Definition at line 2337 of file FxDatabaseReactor.h.
| CFxDatabaseReactor::VSSILHWIDTH |
Definition at line 2381 of file FxDatabaseReactor.h.
| output output CFxDatabaseReactor::WRITESTAT |
Definition at line 2729 of file FxDatabaseReactor.h.