Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Running Macro at Startup

Status
Not open for further replies.

Creigbm

Mechanical
Aug 1, 2003
161
I know there is a way to do this, and at one point I think I knew how. In any case, how do you make a macro run everytime you start SW?
 
Replies continue below

Recommended for you

[SolidWorks Installation]\SldWorks.exe /M c:\Macro.swp


Evan T. Basalik, MCSD
--------------------------------
It's all about prioritization...
 
Will this technique work with a batch file that I would like to run everytime SolidWorks gets launched? Example

[SW Install]\SldWorks.exe \\network_server\custom.bat
 
Sorta - if I understand what you are trying to do, I think this approach would work...

Create a batch file called SolidWorks.bat with the following lines:

\\network_server\custom.bat
[SW Install]\SldWorks.exe

Then, when you run the SolidWorks.bat file, it will run your batch file, then launch SW.

The other approach would be to use a startup macro and the shell command. The only problem with that is that the command inside the shell statement won't get run until after SW is running. Depending on what you are trying to do, that may be either good or bad.

Evan T. Basalik, MCSD
--------------------------------
It's all about prioritization...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor