• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    .NET

    Reply
    Active Member
    Posts: 10
    Registered: ‎11-14-2008

    How do you retrieve the list of open drawings AutoCAD 2011

    279 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.

    Please use plain text.
    Distinguished Contributor
    Posts: 131
    Registered: ‎08-17-2007

    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.
    Please use plain text.
    Active Contributor
    cincir
    Posts: 32
    Registered: ‎08-12-2011

    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.

    Please use plain text.