Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Stored macros

Status
Not open for further replies.

Konstruktor

Mechanical
Jun 18, 2004
49
I'm sure SW have special location for them (macros), but where?? I'm asking about SW 2005. And, is there any list about them - what kind of macros SW already have (so I don't have to "create bicycle" again...)?
 
Replies continue below

Recommended for you

Konstruktor,

There are no macros included in the install, but there are a bunch of examples in the help (that you have to copy/paste into the VBA editor).

It's best to create a directory directly under the SW install directory and store your macros there. The directory structure would be something like:
C:\Program Files\SolidWorks\Macros\

Now goto Help\SolidWorks API and Add-Ins Help Topics. Next select the 'Contents' tab and expand 'Examples'. There you go.

There are more (maybe some the same?) macros available at:

Ken
 
Thank you guys... But now I met another problem with macros. I made one, created hotkey for that and so on. Then I decided to put it into our server. After that I wanted to pick this macro and to use the same shortcut (previous) to activate it. But seems that SW could'nt find it anymore... What next?
 
To tell Solidworks where to look:
Tools > Options (System Options tab) > File Locations. In "Show Folders For" drop-down list, pick Macros

Flores
 
I think any customization should be stored outside of the "Program Files" SW installation folder. When updating SW, it is usually best to uninstall & remove all traces of the old installation and if macros or whatever are stored within the installation folder, you could lose them.

It is safer practice to create a seperate "custom" folder for any customization (ie. anything that is listed in the Tools > Options > System Options > File Locations section) and direct SW to that folder. Then when SW is upgraded all you have to do is redirect.

[cheers]
Making the best use of this Forum. faq559-716
How to get answers to your SW questions. faq559-1091
Helpful SW websites every user should be aware of. faq559-520
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor