API Reference > OdDb Classes > OdDbDatabase Class > OdDbDatabase Methods > OdDbDatabase::getLayerAdskId Method
OdDbDatabase::getLayerAdskId Method
Syntax
C++
OdDbObjectId getLayerAdskId(OdDb::LayerAdskType layerType, bool createIfNotFound = false) const;
Parameters 
Description 
OdDb::LayerAdskType layerType 
[in] Type of system layer.  
bool createIfNotFound = false 
[in] Controls the creation of the object if it does not exist. 

Returns the object ID of the specified system layer object of this database object.

layerType must be one of the following: 

 

Name 
Value 
Layer name 
OdDb::kLayerSystemLights 
*ADSK_SYSTEM_LIGHTS 
OdDb::kLayerConstraints 
*ADSK_CONSTRAINTS 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.