Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tool Button Macro to load .exe 2

Status
Not open for further replies.

basepointdesignz

Programmer
Jul 23, 2002
566
GB
Hi CAD peeps,

Does anyone out there know the button macro to load a certain application? I've created an application in Visual Basic and want to be able to launch it from a tool button.
Is it something simple like;
^C^C_ToolBox 2002.exe
...or does it get a bit more complex than that?

Thanks,

Renegade..
 
Hi,

Why don't you use:

^c^c_-vbaload [your.exe]

The dash (-) before the command suppresses the dialogue box display and allows the script/macro to enter the filename.

Any good?

thefonzzz
 
Thanks mate,
It's not actually a VBA program that I can load in this way - it's actually a standalone .exe that I created in standard VB. So basically, what I after is the macro to load any external application and I'll adapt it from there. Thanks anyway..

 
Ahhh, I see. In that case use the appload command:

For example:

^c^c(startapp "C:/Program Files/Microsoft Office/Office/WINWORD.EXE")

Make sure you use forward slashes (/) as AutoCAD treats backslashes (\) as pauses for user input.

This works in 'full' AutoCAD releases (R14/2000/2002), but not in 'LT' versions (LT98/LT2002) as it is an AutoLISP script. Not sure there is a way of loading external apps from LT.

Hope this helps,

thefonzzz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top