Thank you for respond but my question is about .NET
In code below i created a description key set and code, set point style and label style for that.
now i don't know how to set a layer for that.
using (Transaction trans = db.TransactionManager.StartTransaction())
{
// Access the collection of all Description key sets in a document
PointDescriptionKeySetCollection pointDescKeySetColl = PointDescriptionKeySetCollection.GetPointDescriptionKeySets(db);
// Add a new Descp. Key Sets
ObjectId PointDescKeySetsId = pointDescKeySetColl.Add("ADN_Point_Desc_Key");
PointDescriptionKeySet pointDescKeySet = trans.GetObject(PointDescKeySetsId, OpenMode.ForWrite) as PointDescriptionKeySet;
// Create a new key in the set with code = "TR*"
ObjectId pointDescKeyId = pointDescKeySet.Add("TR*");
PointDescriptionKey pointDescKey = trans.GetObject(pointDescKeyId, OpenMode.ForWrite) as PointDescriptionKey;
// set a specific Style and Label style
// in the following line we are presuming a Point Style named "Tree" exists in the DWG file
pointDescKey.StyleId = civildoc.Styles.PointStyles["Tree"];
pointDescKey.ApplyStyleId = true;
// in the following line we are presuming a Point Label Style
// named "Point#-Elevation-Description" exists in the DWG file
pointDescKey.LabelStyleId = civildoc.Styles.LabelStyles.PointLabelStyles.LabelStyles["Point#-Elevation-Description"];
pointDescKey.ApplyLabelStyleId = true;
trans.Commit();
}