API Reference > OdDb Classes > OdDbLayerTableRecord Class > OdDbLayerTableRecord Methods > OdDbLayerTableRecord::setIsLocked Method
OdDbLayerTableRecord::setIsLocked Method
Syntax
C++
void setIsLocked(bool bStatus);
Parameters 
Description 
bool bStatus 
[in] True - to lock the layer, or False - to unlock the layer. 

Sets the Lock status as a Boolean value (DXF 70, bit 0x04). The initial value is False (Editable) by default. 

 

Example of Working with the Layer Record Object 

Status of Layers 

OdDbLayerTableRecord::isLocked() method

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