heh...forgot to add 6. Language - thanks.
In ObjectARX, you would still have to 'read' the dwg dbase as well, so that point is moot.
You could also do this:
[CommandMethod("MyCommandLocal", CommandFlags.Modal)]
public void MyCommand() // This method can have any name
{
Document doc = acadApp.DocumentManager.MdiActiveDocument;
Database db = doc.Database;
Editor ed = doc.Editor;
using (Transaction tr = db.TransactionManager.StartTransaction())
{
DBDictionary layoutDict = tr.GetObject(db.LayoutDictionaryId, OpenMode.ForRead, false) as DBDictionary;
foreach (DBDictionaryEntry dictEnt in layoutDict)
{
//Layout layout = tr.GetObject(dictEnt.Value, OpenMode.ForRead, false) as Layout;
//ed.WriteMessage("{0}Layout name: {1}", Environment.NewLine, layout.LayoutName);
ed.WriteMessage("{0}Layout name: {1}", Environment.NewLine, dictEnt.Key);
}
}
}
Also, why are you using GetEnumerator?