×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Stored macros

Stored macros

Stored macros

(OP)
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...)?

RE: Stored macros

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:
http://www.solidworks.com/pages/services/CodeExamples.html

Ken

RE: Stored macros

(OP)
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?

RE: Stored macros

Remove the Macro and re-add using the new location. SW can't remap for you. If you move something you will have to either point SW to it, or redo what you did.

Regards,

Scott Baugh, CSWP
3DVision Technologies

www.3dvisiontech.com
www.scottjbaugh.com
FAQ731-376
FAQ559-716 - SW Fora Users

RE: Stored macros

To tell Solidworks where to look:
Tools > Options (System Options tab) > File Locations.  In "Show Folders For" drop-down list, pick Macros

Flores

RE: Stored macros

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.


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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources