Results 1 to 3 of 3

Thread: list all open drawings?

Hybrid View

  1. #1
    Member
    Join Date
    2008-04
    Posts
    9

    Default list all open drawings?

    Is there a way to get a list of all the drawings that are currently open using lisp?

  2. #2
    Certified AUGI Addict rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Houston
    Posts
    7,542

    Default Re: list all open drawings?

    Here is one way.

    Code:
    
    
    
    (vlax-for
      x
      (vla-get-documents
        (vlax-get-acad-object)
      )
      (princ
        (strcat
          "\n"
          (vla-get-name x)
        )
      )
    )
    
    

  3. #3
    Certifiable AUGI Addict irneb's Avatar
    Join Date
    2007-07
    Location
    Jo'burg SA
    Posts
    4,348

    Default Re: list all open drawings?

    When you say "list", do you want a list of dwg filenames or com objects. Rk's given you a clue how to do either. Just be warned that you won't be able to work with those DWG's easily using Lisp.
    Knowledge is proportional to experience, but wisdom is inversely proportional to ego!
    My little bit of "wisdom": Hind-sight is useless, unless used to improve the next forethought!

Similar Threads

  1. Replies: 2
    Last Post: 2011-04-28, 02:04 AM
  2. Where do you open your drawings from?
    By StephenJ in forum CAD Management - General
    Replies: 8
    Last Post: 2006-09-22, 09:55 PM
  3. Can't open drawings
    By tammy346 in forum AutoCAD General
    Replies: 2
    Last Post: 2004-09-30, 11:11 PM
  4. Cannot Open certain drawings
    By vincentfresco in forum AutoCAD General
    Replies: 7
    Last Post: 2004-08-06, 10:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •