Number of drawings opened

Discussion in 'AutoCAD' started by Paul Jamieson, Apr 6, 2005.

  1. Hello all I need help. Is there a way to find out using LISP the number of
    drawings open in an AutoCAD seesion. I know, I know this can be done in
    VB/VBA but I need it done in LISP. Right now I use the vl-bb-set and
    vl-bb-ref to write to the blackboard whenever a drawing is opened or closed.
    But I was wondering if there is a counter at the Application level that can
    be accessed using vla-get. Thank you.
     
    Paul Jamieson, Apr 6, 2005
    #1
  2. Paul Jamieson

    Jeff Mishler Guest

    (vla-get-count (vla-get-documents (vlax-get-acad-object)))
     
    Jeff Mishler, Apr 6, 2005
    #2
  3. (vla-get-count (vla-get-documents (vlax-get-acad-object)))
     
    Jason Piercey, Apr 6, 2005
    #3
  4. Thank you very much for your help. Works great.
     
    Paul Jamieson, Apr 7, 2005
    #4
  5. Great, glad I could help.
     
    Jason Piercey, Apr 7, 2005
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.