API Reference > OdDb Classes > OdDbLayerState Class > OdDbLayerState Methods > OdDbLayerState::saveGroup Method
OdDbLayerState::saveGroup Method
Syntax
C++
static OdResult saveGroup(OdDbDatabase * pDb, const OdString & sName, const OdDbObjectIdArray& pLayers, int mask = OdDbLayerStateManager::kOn, int includedLayersState = OdDbLayerStateManager::kOn, int otherLayersState = OdDbLayerStateManager::kNone);
Parameters 
Description 
OdDbDatabase * pDb 
[in] Pointer to the database.  
int mask = OdDbLayerStateManager::kOn 
[in] created
 
layerStateName 
[in] LayerState name.  
layerIds 
[in] Array of object Ids of layers to be added to the layer state  

eOk if operation succeeded; error code otherwise.

Creates a layer state where specified layers are assigned one state (e.g. ON), and all the others are assigned other state (e.g. OFF). 

 

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