Share

AcDbLayerStateManager::getLayerStateLayers

C++

Acad::ErrorStatus getLayerStateLayers(
    AcStringArray& layerArray, 
    const ACHAR* sName, 
    bool bInvert = false
);

Description

Gets an array of the names of all the layers that are saved in a layer state. If bInvert is true, the array will contain the names of the layers in the current drawing that are NOT saved in the layer state.

Returns Acad::eOk if successful; otherwise, returns an AutoCAD error status.

Parameters

Parameters Description
layerArray Output an array of layers that are saved in the layer state
sName Input the name of the layer state to query
bInvert Input if true, the returned array will contain the names of the layers in the current drawing that are NOT saved in the layer state.

Links

AcDbLayerStateManager

Was this information helpful?