.NET

.NET

Reply
Active Member
Rich0365
Posts: 10
Registered: ‎11-14-2008
Message 1 of 3 (319 Views)

How do you retrieve the list of open drawings AutoCAD 2011

319 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
tyronebk
Posts: 187
Registered: ‎08-17-2007
Message 2 of 3 (296 Views)

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
cincir
Posts: 32
Registered: ‎08-12-2011
Message 3 of 3 (293 Views)

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
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.