Message 1 of 2
Not applicable
05-28-2012
03:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am using AutoCAD 2012 and the .NET API. Can someone help me how can i loop through the document objects of all the open documents? i am trying to do something like the code below..
public void GetDocNames()
{
DocumentCollection docs = Application.DocumentManager;
for (int i = 0; i < docs.Count; i++)
{
AcadDocument doc = docs[i];
Debug.Print(doc.Name);
}
}
Solved! Go to Solution.