> User Interface > Commands, Menus, Toolbars > User Interface Customizations for Macros > Assigning a Macro to a Keyboard Shortcut or Mouse Gesture
Introduction
Administration
User Interface
User Interface Overview
Windows and Displays
Graphics Area
Manager Pane
FeatureManager Design Tree
Flyout FeatureManager Design Tree
PropertyManager
ConfigurationManager
Commands, Menus, Toolbars
Menus
Menu Bar
Mouse Gestures
Toolbars
SolidWorks Toolbars
Add-in Toolbars
Heads-up View Toolbar
Context Toolbars
Shortcut Bars
Flyout Tool Buttons
Repeat Last Command
Recent Commands
Managing Menus
Managing Toolbars
User Interface Customizations for Macros
Assigning a Macro to a Toolbar Button
Assigning a Macro to a Keyboard Shortcut or Mouse Gesture
Modifying a Macro Customization
Touch and Multi-Touch
Microsoft Global Input Method Editors (IME)
Display Pane
Task Pane
Status Bar
Instant3D
SolidWorks Fundamentals
Moving from 2D to 3D
Assemblies
CircuitWorks
Configurations
SolidWorks Costing
Design Checker
Design Studies in SolidWorks
Drawings and Detailing
DFMXpress
DriveWorksXpress
FloXpress
Import and Export
Large Scale Design
Model Display
Mold Design
Motion Studies
Parts and Features
Routing
Sheet Metal
Simulation
SimulationXpress
Sketching
Sustainability Products
SolidWorks Utilities
Tolerancing
Toolbox
Weldments
Workgroup PDM
Troubleshooting
Glossary
Hide Table of Contents Show Table of Contents

Assigning a Macro to a Keyboard Shortcut or Mouse Gesture

You can assign a macro to a keyboard shortcut or a mouse gesture from the Customize dialog box.

  1. With a document open, click Tools > Customize, or right-click in the window border and click Customize.
  2. In the Customize dialog box, on the Keyboard or Mouse Gestures tab, under Category, select Macros.

    The Command column lists the macros that are assigned to a toolbar button, keyboard shortcut, or mouse gesture.

  3. (Option) If you want to assign a keyboard shortcut or a mouse gesture to a macro that is not listed in the Command column, do the following:
    1. Click Customize Dialog Macro Button in the New Macro Button row.
    2. In the Customize Macro Button dialog box, under Action, click browse.gif and open the macro you want to use.
    3. If necessary, select a Method.

      Some macros contain multiple methods. Each method defines a particular sequence of actions and commands. When you select a method, only that method runs in the macro.

    4. If you plan to assign the macro to a toolbar button, under Appearance, click Choose Image, select a bitmap image, and click Open.

      The SolidWorks software provides bitmap images to use as custom buttons. These are located in install_dir/data/user macro icons.

      You can also create your own bitmap images that meet these requirements:
      • Dimension = 16 x 16 pixels
      • Color = 256 colors
      • Background color = white

    5. If necessary, type a Tooltip and a Prompt. Prompt is a brief description of the function of the tool that appears in the status bar, in large tooltips, and in Description on the Keyboard or Mouse Gestures tab of the Customize dialog box.
    6. Click OK.
  4. Assign a keyboard shortcut or a mouse gesture to the macro you want using standard assignment methods.

    See Reassigning Mouse Gestures and Customize Keyboard .



Related SolidWorks Forum Content

Provide feedback on this topic

SolidWorks welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   Assigning a Macro to a Keyboard Shortcut or Mouse Gesture
*Comment:  
x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: SolidWorks 2012 SP05

The search functionality within the web help is in a beta test phase and you may experience periodic delays or interruptions in its performance. These are the normal and ordinary features of a beta test and shall not under any circumstances give rise to any liability on the part of DS SolidWorks or its licensors. The topics within the Web-based help are not beta topics; they document SolidWorks 2012 SP05.

To disable Web help from within SolidWorks and use local help instead, click Help > Use SolidWorks Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.