API Reference > System Variables for .dwg files > System Variables A > AllowSavingEmptyAcisObjects
AllowSavingEmptyAcisObjects
Syntax
C++
bool AllowSavingEmptyAcisObjects;

SysVarDefs.h

Type 
bool 
Initial value 
false 
Read-Only 
No 
Saved In 
Registry 
Versions 
N/A 

 

The AllowSavingEmptyAcisObjects variable determines how to resolve the situation of saving ACIS objects when ACIS data cannot be converted to other versions. This may happen when a modeler module is not loaded, so the result is that the conversion engine is unavailable. The value can be: 

 

Value 
Description 
false 
Saving disabled; when the situation occurs, the system throws an exception to prevent the data loss. 
true 
Saving enabled; when the situation occurs, the system does not throw exceptions and saves empty objects. 

 

Access Methods 
OdDbDatabase::getSysVar() 
OdDbDatabase::setSysVar() 
  
OdDbHostAppServices::getAllowSavingEmptyAcisObjects() 
OdDbHostAppServices::setAllowSavingEmptyAcisObjects() 

 

For example, to get the value:

OdResBufPtr pRb = pDb->getSysVar(L"AllowSavingEmptyAcisObjects"); bool bAllow = pRb->getBool(); odPrintConsoleString(L"nAllowSavingEmptyAcisObjects is %s", ((bAllow) ? "ON" : "OFF")); // or // bAllow = pDb->appServices()->getAllowSavingEmptyAcisObjects(); odPrintConsoleString(L"nAllowSavingEmptyAcisObjects = %s", ((bAllow) ? "ON" : "OFF"));

For example, to set the value:

OdResBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtBool, true); pDb->setSysVar(L"AllowSavingEmptyAcisObjects", pRb); // or // pDb->appServices()->setAllowSavingEmptyAcisObjects(true);

 

Copyright © 2002–2020. Open Design Alliance. All rights reserved.