.NET
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
How to Get all opened documents( drawings)
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
144 Views, 1 Replies
05-28-2012 03:33 AM
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.
Re: How to Get all opened documents( drawings)
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-28-2012 05:04 AM in reply to:
vinayan
For Each element As Autodesk.AutoCAD.ApplicationServices.Document In Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager .. your code. Next
with this you have all open document
