.NET

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

How do you retrieve the list of open drawings AutoCAD 2011

314 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: 164
Registered: ‎08-17-2007
Message 2 of 3 (291 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 (288 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.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community