After looking at your post again, I realize now that you were asking how to
create the layer key, not a layer from a key. Sorry.
"Gregory Hoyt" wrote in message
news:5674860@discussion.autodesk.com...
// set layer
String strLayerKey = obj.LayerKey;
DictionaryLayerKeyStyle dicLayerKey = new DictionaryLayerKeyStyle(db);
obj.LayerId = dicLayerKey.GenerateLayer(strLayerKey);
obj is a duct, pipe, fitting, mvpart etc.
hope this helps.
wrote in message news:5674825@discussion.autodesk.com...
How can I programatically create a layer key in MEP/ABS (or anything
similar)? The big picture here is that I am going to take a csv file
exported from Excel and then use it to generate layer keys (with
corresponding layers) in MEP as a batch process. The problem is in finding
the right method or methods in the API to create layer keys. Can someone
point me in the right direction?