Author Topic: Run exe program through lisp  (Read 1639 times)

0 Members and 1 Guest are viewing this topic.

Coder

  • Swamp Rat
  • Posts: 827
Run exe program through lisp
« on: September 27, 2013, 06:45:19 AM »
Hello guys .  :-)

Is it possible to run a exe file through lisp ?

Many thanks.

snownut2

  • Swamp Rat
  • Posts: 971
  • Bricscad 22 Ultimate
Re: Run exe program through lisp
« Reply #1 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).

TimSpangler

  • Water Moccasin
  • Posts: 2010
  • CAD Naked!!
Re: Run exe program through lisp
« Reply #2 on: September 27, 2013, 07:12:12 AM »
Look at the "startapp" function
ACA 2015 - Windows 7 Pro
All Comments and Content by TimSpangler, Copyright © 2016

Coder

  • Swamp Rat
  • Posts: 827
Re: Run exe program through lisp
« Reply #3 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 ?

NOT SURE

  • Guest
Re: Run exe program through lisp
« Reply #4 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")

Coder

  • Swamp Rat
  • Posts: 827
Re: Run exe program through lisp
« Reply #5 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 :-)