TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Coder on September 27, 2013, 06:45:19 AM

Title: Run exe program through lisp
Post by: Coder on September 27, 2013, 06:45:19 AM
Hello guys .  :-)

Is it possible to run a exe file through lisp ?

Many thanks.
Title: Re: Run exe program through lisp
Post by: snownut2 on September 27, 2013, 06:49:07 AM
Yes it is possible, you will be returned to the lisp once the exe is complete.  (will even run and allow a dialog box to remain in place in CAD).
Title: Re: Run exe program through lisp
Post by: TimSpangler on September 27, 2013, 07:12:12 AM
Look at the "startapp" function
Title: Re: Run exe program through lisp
Post by: Coder on September 27, 2013, 08:28:02 AM
Thank you all guys for your time .

Just for clarification , I am talking about VBA.exe file and not Windows Application .

Or is it the same ?
Title: Re: Run exe program through lisp
Post by: NOT SURE on September 27, 2013, 10:50:46 AM
You can call a VBA function from lisp, if that's what you're getting at.

Code: [Select]
(vl-load-com)
(vl-vbaload "Your VBA function")
(vl-vbarun "Your VBA function")
Title: Re: Run exe program through lisp
Post by: Coder on September 27, 2013, 11:24:51 AM
You can call a VBA function from lisp, if that's what you're getting at.

Code: [Select]
(vl-load-com)
(vl-vbaload "Your VBA function")
(vl-vbarun "Your VBA function")

That looks very promising , I will try it on Sunday and will let you know .

Many thanks :-)