| Author |
Message |
Paul Jamieson
Guest
|
Posted:
Wed Apr 06, 2005 10:34 pm Post subject:
Number of drawings opened |
|
|
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.
|
|
| Back to top |
|
 |
Jeff Mishler
Guest
|
Posted:
Wed Apr 06, 2005 10:41 pm Post subject:
Re: Number of drawings opened |
|
|
(vla-get-count (vla-get-documents (vlax-get-acad-object)))
--
Jeff
check out www.cadvault.com
"Paul Jamieson" <pjjamieson@hydro.mb.ca> wrote in message
news:42542bba$1_1@newsprd01...
| Quote: | 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.
|
|
|
| Back to top |
|
 |
Jason Piercey
Guest
|
Posted:
Wed Apr 06, 2005 10:42 pm Post subject:
Re: Number of drawings opened |
|
|
(vla-get-count (vla-get-documents (vlax-get-acad-object)))
--
Autodesk Discussion Group Facilitator
"Paul Jamieson" <pjjamieson@hydro.mb.ca> wrote in message
news:42542bba$1_1@newsprd01...
| Quote: | 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.
|
|
|
| Back to top |
|
 |
Paul Jamieson
Guest
|
Posted:
Thu Apr 07, 2005 7:27 pm Post subject:
Re: Number of drawings opened |
|
|
Thank you very much for your help. Works great.
"Jason Piercey" <Jason AT atreng DOT com> wrote in message
news:42542cd0$1_3@newsprd01...
| Quote: | (vla-get-count (vla-get-documents (vlax-get-acad-object)))
--
Autodesk Discussion Group Facilitator
"Paul Jamieson" <pjjamieson@hydro.mb.ca> wrote in message
news:42542bba$1_1@newsprd01...
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.
|
|
|
| Back to top |
|
 |
Jason Piercey
Guest
|
Posted:
Thu Apr 07, 2005 8:08 pm Post subject:
Re: Number of drawings opened |
|
|
Great, glad I could help.
--
Autodesk Discussion Group Facilitator
"Paul Jamieson" <pjjamieson@hydro.mb.ca> wrote in message
news:4255516c_2@newsprd01...
> Thank you very much for your help. Works great. |
|
| Back to top |
|
 |
|
|
|
|