Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
VIEWUPDATEAUTO
Syntax
C++
OdInt16 VIEWUPDATEAUTO;
Type
OdInt16
Initial value
1
Read-Only
No
Saved In
Database
Versions
2013+

 

The VIEWUPDATEAUTO variable specifies whether model views are automatically updated when the model is changed. The value can be: 

 

Value
Description
0
Views are not updated.
1
Views are automatically updated.

 

Access Methods
OdDbDatabase::getSysVar()
OdDbDatabase::setSysVar()
 
OdDbDatabase::getVIEWUPDATEAUTO()
OdDbDatabase::setVIEWUPDATEAUTO()

 

For example, to get the value:

OdRusBufPtr pRb = pDb->getSysVar(L"VIEWUPDATEAUTO"); OdInt16 viewupdate = pRb->getInt16(); odPrintConsoleString(L"nView update mode is %s", ((viewupdate) ? "ON" : "OFF")); // or // odPrintConsoleString(L"nView update mode = %d", pDb->getVIEWUPDATEAUTO());

For example, to set the value:

OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtInt16, 1); pDb->setSysVar(L"VIEWUPDATEAUTO", pRb); // or // pDb->setVIEWUPDATEAUTO(1);

 

File: SysVarDefs.h 

Module: API Reference 

Copyright © 2002-2022. Open Design Alliance All rights reserved.