Solidworks – Go to feature (in Tree) shortcut

If you decide to keep a lot of Solidworks features in many different folders, finding the feature in the tree could be a bit tricky, especially for the person who is not familiar with the project. Default way of finding a feature in the tree is to select the feature in the 3D model and then do the right click followed by 2 extra clicks as shown on the pictures below. Amount of clicking and scrolling could be a bit annoying:

Click #1
Click #2
Click #3

There is a lot of features which can be added as a clickable button into the menus and shortcuts can be also created. Unfortunately option Go To Feature (in Tree) is NOT one of them 🙁

Solidworks searching for Go To Feature (in Tree)

However, the only one sensible option I found is to create a macro.

To do that go to Tools->Macro->New…:

Make a new Macro

Now save the Macro anywhere you want under any file name you wish:

Save macro as…

Now remove EVERYTHING from the window…

remove all existing code

…and paste the following code into the widnow:

Sub main()

Application.SldWorks.RunCommand 1587, “”

End Sub

Add code, save file, close the window

Now press save button and close the window

Now open from anywhere the Customize option and go to Commands tab, then select Macro and then drag and drop the last icon anywhere you wish:

Adding Solidworks macro

Now select the macro file which we have just created and if you wish you can use any BMP file as a non standard icon:

Adding Solidworks macro

Click OK and OK again to close Customize window.

Your new macro icon will appear in place you dropped it. It will run the macro:

Macro is ready now

Now you can:

  1. click any feature in the 3D model and then
  2. click the icon.
  3. It will take you straight into the menu tree where the feature sits 🙂
  4. Enjoy!

Leave a Reply

Your email address will not be published. Required fields are marked *

CAPTCHA
Change the CAPTCHA codeSpeak the CAPTCHA code
 

This site uses Akismet to reduce spam. Learn how your comment data is processed.