Share

AcDbLayerStateManager::importLayerStateFromDb

C++

Acad::ErrorStatus importLayerStateFromDb(
    const ACHAR * pStateName, 
    AcDbDatabase* pDb
);

Description

Imports the layer state name passed in pStateName from the open drawing file pointer passed in pDb. This method will also import linetypes, materials and plot styles that are saved in the imported layer state but are missing in the current drawing. This method allows importing of layer states directly from drawing files rather than having to export to an .LAS file format in order to import a layer state.

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

Parameters

Parameters Description
pStateName Input the name of the layer state to be imported
pDb Input a pointer to a valid, readable database from which the layer state is to be imported.

Links

AcDbLayerStateManager

Was this information helpful?