Autodesk.AutoCAD.DatabaseServices Namespace > LayerStateManager Class > LayerStateManager Methods > ImportLayerStateFromDb Method
LayerStateManager.ImportLayerStateFromDb Method
Description

 

Imports the layer state name passed in name from the open drawing file pointer passed in database. 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.

Visual Basic
Public Function ImportLayerStateFromDb(
    name As string, 
    database As Database
) As void
C#
public void ImportLayerStateFromDb(
    string name, 
    Database database
);
Parameters
Parameters 
Description 
string name 
Input the name of the layer state to be imported 
Database database 
Input a pointer to a valid, readable database from which the layer state is to be imported. 
Links
   Comments?