var db = HostApplicationServices.WorkingDatabase; var doc = Application.DocumentManager.GetDocument(db); var ed = doc.Editor; var dl = Autodesk.AutoCAD.Runtime.SystemObjects.DynamicLinker; var modnames = dl.GetLoadedModules(); foreach (string s in modnames) { ed.WriteMessage("\n" + s); } |