Learn how 3 ideas from SOLIDWORKS Top Ten List 2020 are implemented from scratch in less than 25 minutes by watching this video
Adding Macro Buttons And Toolbars
Macro buttons can be configured by clicking on ‘Configure…’ command in MyToolbar menu in SOLIDWORKS
- MyToolbar sub-menu in SOLIDWORKS Tools menu
- Button to configure toolbar
- About MyToolbar application
Configuration dialog is displayed and existing toolbar and buttons can be modified as well as new can be added.
Click on green plus (+) button to add new toolbar or macro button.
Configure the parameters as shown below:
Configuring Macro Buttons In Toolbar
- Path to toolbar file. This setting is stored locally to the user. UNC path is supported if required to configure a shared toolbar
- Add new toolbar
- Add new macro button in toolbar
- Title of the macro button. It displayed as a bold header in the tooltip when mouse hovers a button in SOLIDWORKS toolbar
- Description of the macro button. It displayed as a sub-header in the tooltip and in the SOLIDWORKS task bar in the bottom right corner when mouse hovers a button in SOLIDWORKS toolbar
- Icon of the macro button. Optimal size is between 16x16 and 120x120 in PNG format, however image will be automatically scaled and aligned which allows support for any size (including different width and height). Transparency is supported.
- Full path to macro to run
- Macro entry point. This is the subroutine which should be run first when executing the macro. This is a parameterless subroutine (usually named main). MyToolbar will try to automatically find the best suitable subroutine
- Toolbar title to be displayed in the SOLIDWORKS toolbars manager
- Toolbar tooltip
- Toolbar icon
- Preview of toolbar icon (default icon)
Select macro buttons and toolbars to load and edit the parameters. Use context menu or commands box to reorganize the commands as shown below.
- Move selected macro button to the left or move toolbar up
- Move selected macro button to the right or move toolbar down
- Add new macro button left to the selected macro button or add new toolbar above the selected toolbar
- Add new macro button right to the selected macro button or add new toolbar below the selected toolbar
- Remove selected macro button or toolbar
- Save changes and close dialog
- Close dialog without saving changes
If toolbar configuration changed the following message is displayed and SOLIDWORKS needs to be restarted for settings to take effect (unless toolbar is read-only in multi-user environment).
Accessing Macro Buttons
Toolbars are available in the SOLIDWORKS toolbars list:
and in the SOLIDWORKS menu.
Toolbars can be reorganized and placed into the SOLIDWORKS command manager area. Visit Customization page for additional customization options for the toolbars and commands.