How do you retrieve the list of open drawings AutoCAD 2011

How do you retrieve the list of open drawings AutoCAD 2011

Anonymous
Not applicable
955 Views
2 Replies
Message 1 of 3

How do you retrieve the list of open drawings AutoCAD 2011

Anonymous
Not applicable

Hi,

 

I was trying to retrieve a list of the currently open drawings before running a batch script in VB .Net 2008 so that the program can check the selected file listto update against whats open already to make sure that the file isnt read only.

 

I can seem to figure it out... any help would be great thanks.

0 Likes
956 Views
2 Replies
Replies (2)
Message 2 of 3

tyronebk
Collaborator
Collaborator
Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager
holds a DocumentCollection of all the opened documents.
0 Likes
Message 3 of 3

cincir
Enthusiast
Enthusiast

what tkarapita says is true. i want to add an advice for your future affords. if you are dealing with the documents  i mean not a single document , mark your command as CommandFlags.Session so that it runs in application context and dont forget the lock the document you are dealing with.

0 Likes