C++
AcDbObjectId layerId() const;
Description
This function returns the AcDbObjectId of the AcDbLayerTableRecord referenced by the entity. If the layerId has not been set yet, then AcDbObjectId::kNull is returned.
AcDbObjectId layerId() const;
This function returns the AcDbObjectId of the AcDbLayerTableRecord referenced by the entity. If the layerId has not been set yet, then AcDbObjectId::kNull is returned.