Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
LIMCHECK
Syntax
C++
bool LIMCHECK;
Type
bool
Initial value
false
Read-Only
No
Saved In
Database
Versions
R12+

 

The LIMCHECK system variable determines whether objects are allowed outside the grid limits for model space or current space (current layout). 

 

Value
Description
false
Objects outside limits are allowed
true
Objects outside limits are disallowed

 

Access Methods
OdDbDatabase::getSysVar() – gets the outside limits status as an instance of tagged data (boolean type)
OdDbDatabase::setSysVar() – sets the outside limits status as an instance of tagged data (boolean type)
 
OdDbDatabase::getLIMCHECK() – gets the outside limits status as a boolean value
OdDbDatabase::setLIMCHECK() – sets the outside limits status as a boolean value

 

For example, to get the value:

OdRusBufPtr pRb = pDb->getSysVar(L"LIMCHECK"); bool status = pRb->getBool(); odPrintConsoleString(L"nOutside limits status = %s", ((status) ? L"On" : L"Off")); // or // odPrintConsoleString(L"nObjects outside limits are %s for current space", (pDb->getLIMCHECK()) ? L"disallowed" : L"allowed");

For example, to set the value:

OdRusBufPtr pRb = OdResBuf::newRb(OdOdResBuf::kRtBool, true); pDb->setSysVar(L"LIMCHECK", pRb); // or // pDb->setLIMCHECK(false);

 

File: SysVarDefs.h 

Module: API Reference 

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