.NET

.NET

Reply
Active Member
10 Posts
0 Kudos
Registered: ‎11-14-2008
Post 1 of 3

How do you retrieve the list of open drawings AutoCAD 2011

320 Views, 2 Replies
01-24-2012 08:40 AM

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.

Mentor
192 Posts
26 Kudos
Registered: ‎08-17-2007
Post 2 of 3

Re: How do you retrieve the list of open drawings AutoCAD 2011

01-24-2012 01:11 PM in reply to: Rich0365
Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager
holds a DocumentCollection of all the opened documents.
Active Contributor
32 Posts
1 Kudo
Registered: ‎08-12-2011
Post 3 of 3

Re: How do you retrieve the list of open drawings AutoCAD 2011

01-24-2012 02:01 PM in reply to: Rich0365

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.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!