Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

macro to open third party program from toolbar button

5 REPLIES 5
Reply
Message 1 of 6
mattholmes6282
829 Views, 5 Replies

macro to open third party program from toolbar button

Hello -

 

I'm trying to create a macro for a toolbar button to open a third party program.

 

Basically we want to open a custom .exe application from a button on the ACAD toolbar.

 

Does anyone have a sample to share or tips\advice?

 

thank you!

Tags (2)
5 REPLIES 5
Message 2 of 6
phanaem
in reply to: mattholmes6282

I use (startapp "C:/Program Files/... /file.exe") as a macro assigned to a button.

But it can be a more elaborate lisp routine i.e. checking if the program exist or open a particular file.

 

Message 3 of 6
mattholmes6282
in reply to: phanaem

 

i tried this...

 

C^C^(startapp "C:\Program Files\Packages\INV PARTS.exe")

 

but it doesn't execute at all

 

it hangs at space after startapp

 

 

Message 4 of 6
phanaem
in reply to: mattholmes6282

Use double backslah in path description

C^C^(startapp "C:\\Program Files\\Packages\\INV PARTS.exe")

or

C^C^(startapp "C:/Program Files/Packages/INV PARTS.exe")

Message 5 of 6
mattholmes6282
in reply to: phanaem

the forward slash allowed the entire path to be read however it came back as "nil"

 

(thanks for your help! i really appreciate the assistance)

 

i'm going to try linking it to another application other than the custom programmed app

Message 6 of 6

ok... the path with the forward slash defintely works. I created a button to open Excel successfully.

 

The custom third party application we're using is a remote app that has a .rdp extension rather than a .exe

 

soooo i'm going to have to experiment more I guess.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost