call Lisp function from VB6
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
call Lisp function from VB6

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





Posted: Mon Apr 04, 2005 4:49 pm    Post subject: call Lisp function from VB6 Reply with quote

Hi all,
I need to call lisp function from vb then wait until it finishes then go on
with VB ...
I use late-binding so I can't find how to use acad events (in earlier
version I just waited for _SysVarChanged event (Lisp was changing it after
everithing ok).
Please help ...

Back to top
Paul Richardson
Guest





Posted: Mon Apr 04, 2005 6:16 pm    Post subject: Re: call Lisp function from VB6 Reply with quote

Check out the "EndLisp" event in the sample "example_events.DVB"
In help menu search for "Enabling Document Level Events in Environments
Other Than VBA" Same idea as App level events within vba.

May be an eaiser way, don't know. Someone will though.

gl
Paul

"kipshas" <Remis79ETA@takasTASKAS.lt> wrote in message
news:4251377a$1_1@newsprd01...
Quote:
Hi all,
I need to call lisp function from vb then wait until it finishes then go
on
with VB ...
I use late-binding so I can't find how to use acad events (in earlier
version I just waited for _SysVarChanged event (Lisp was changing it after
everithing ok).
Please help ...


Back to top
Danno
Guest





Posted: Mon Apr 04, 2005 7:39 pm    Post subject: Re: call Lisp function from VB6 Reply with quote

Kipshas,

This is a cheap way of running lisp from vb, but for some of the programs we use
thisdrawing.SendCommand ("SCRIPT C:/somedirectory/somelispprogram" & vbCr)
Then issue a delay...
thisdrawing.SendCommand ("delay 1000" & vbCr)

If you are running vb outside of the autocad environment you can always issue a "sleep", or have lisp add a text file to some directory and have the vb program wait for the text file, when it is created vb deletes the file a proceeds with execution. These are cheap ways of doing these things.. but if you figure out how to do it with events.. please let me know.
thanks,
Daniel

Back to top
kipshas
Guest





Posted: Tue Apr 05, 2005 9:03 am    Post subject: Re: call Lisp function from VB6 Reply with quote

My problem is that I have to use late-binding, but with early-binding it's
simple, cal lisp with sendcommand method that trap event SysVarChanged (at
the end of lisp function I change the sysvar and thats alll).
"Danno" <nospam@address.withheld> wrote in message
news:32856802.1112629183615.JavaMail.jive@jiveforum2.autodesk.com...
Quote:
Kipshas,

This is a cheap way of running lisp from vb, but for some of the programs
we use
thisdrawing.SendCommand ("SCRIPT C:/somedirectory/somelispprogram" & vbCr)
Then issue a delay...
thisdrawing.SendCommand ("delay 1000" & vbCr)

If you are running vb outside of the autocad environment you can always
issue a "sleep", or have lisp add a text file to some directory and have
the vb program wait for the text file, when it is created vb deletes the
file a proceeds with execution. These are cheap ways of doing these
things.. but if you figure out how to do it with events.. please let me
know.
thanks,
Daniel
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
Contact Us
Powered by phpBB