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];
Go to Solution.
For Each element As Autodesk.AutoCAD.ApplicationServices.Document In Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager
.. your code.
with this you have all open document
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.