Number of drawings opened
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Number of drawings opened

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization
Author Message
Paul Jamieson
Guest





Posted: Wed Apr 06, 2005 10:34 pm    Post subject: Number of drawings opened Reply with 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
Jeff Mishler
Guest





Posted: Wed Apr 06, 2005 10:41 pm    Post subject: Re: Number of drawings opened Reply with quote

(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 Reply with 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...
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 Reply with quote

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 Reply with quote

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
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB