Search

2D Drafting3D ModellingBIMMechanicalApplications

Mouse, Double-click & Tablet Buttons - Customizing BricsCAD® - P12

By Ralph Grabowski 25 min May 3, 2020
Mouse, Double-click & Tablet Buttons - Customizing BricsCAD® - P12

Mouse, Double-click & Tablet Buttons in BricsCAD

In this post, I will explain how to customize mouse, double-click & tablet buttons in BricsCAD®.

The mouse is your constant companion in BricsCAD, and you can customize its buttons, as well as those on a stylus or puck used with digitizing tablets. BricsCAD does not, however, explicitly support touch screens and styli used with Windows® 8.x and 10. BricsCAD supports 3D mice, but its buttons are customized by the utility software provided with them.

The Customize dialog box in BricsCAD is where you go to change the meanings of up to two buttons on mice and up to 15 buttons on tablet input devices:

Mouse tab --- assigns macros to the right and middle buttons, along with Shift, Ctrl (Cmd on Macs), and Shift+Ctrl keys; these are called "clicks." You can also assign macros to double-click actions.

Tablet tab --- assigns macros to buttons, along with the Shift key.


The following topics are covered in this post:

  • Understanding how commands are assigned to mouse and tablet buttons and double-click actions
  • Assigning commands, macros, and shortcut menus to mouse buttons
  • Assigning actions to double-click actions and tablet buttons

SUMMARY OF MOUSE COMMANDS & VARIABLES

These are the system variables that affect the use of mice with BricsCAD:

Variable Meaning
CtrlMouse Toggles specific key-button combinations; when on, the following work:
Ctrl+Left button 3D view rotation
Ctrl+Rigth button 3D viewing with fixed z axes
Ctrl+Shift+Left button Real-time zooming
Ctrl+Shift+Right button Real-time panning
Ctrl3DMouse Toggles the use of 3D mice with BricsCAD (must restart the program after changing it):
MButtonPan Specifies the function of the middle button:
0 (Off) Carries out the action defined by the Customize command
1 (On) Pans drawing while dragging with middle button held down; default
ShortcutMenu Specifies the function of the middle button:
1 Enable default mode shortcut menus
2 (Default) Display shortcut menu for editing
4 Display shortcut menu for commands during any command
8 Display shortcut menu for commands when command options are active
16 (Default) Display the shortcut menu when the right button is held down longer than usual
ShortcutMenuDuration Specifies how long to hold down the right button until a shortcut menu appears:
250 (Default) Time in milliseconds, or 1/4 second
ZoomFactor Sets the zoom speed:
3 Slowest speed, helpful for very slow zooming
60 Default speed
100 Fastest speed, useful for very large drawings
ZoomWheel Determines the scroll wheel’s zoom direction:
0 (Off) Moving wheel forward zooms in; default
1 (On) Moving wheel forward zooms out; Mac-like zoom

The following command works with tablets:

Tablet --- toggles use of the tablet and configures tablet surfaces.


About Mice and Their Buttons

The very first computer mouse had 1 button. Since then, the button count on mice has strayed in different directions. Some mice have many more than three buttons, while others sport no buttons at all.

null

The first mouse (prototype)

For instance, I use the Logitech MX mouse (others are avlaible) with my primary work computer. It has nine buttons (I think) that offer functions like moving forward-reverse through Web pages and side-to-side scrolling. Other mice, such as one model from Apple, have no buttons at all: you tap, slide, pinch, and otherwise move your fingers on the smooth surface, as if it were a touchpad.

Mouse Buttons. Whether the mouse has three, nine or zero buttons, BricsCAD customizes only two of them --- the ones traditionally named "middle" and "right."

The left mouse button is never customized as it performs the all-important picking function.

null

BricsCAD's 1-3-2 numbering of left, right, and center buttons on mice

Modifier Keystrokes. You can define more than two actions for each button by adding Shift or Ctrl (on Macs, the Cmd button), and Shift+Ctrl keys to buttons.

So, when you hold down the Shift key while clicking the right button, BricsCAD executes a different command from when you click the right button alone.

Double-clicking. The other way to access more commands through the mouse is with double-clicking. When you double-click an entity in the drawing, BricsCAD runs a command suitable to editing the entity.


QUICK SUMMARY OF DEFAULT BUTTONS

Sometimes you might see buttons referred to by number. Here is what the numbers mean:

Button Number
Left 1
Right 2
Middle 3

DEFAULT ACTIONS

BricsCAD assigns these macros to the right and center mouse buttons through the Mouse tab of the Customize dialog box:

Keystroke+Button Action Macro
Right button Repeats last command unassigned
Middle button Display object snap shortcut menu $p0=SNAP $p0=*
Shift+
Right button Displays Entity Snap shortcut menu unassigned
Middle button Real-time rotation unassigned
Right button Real-time rotation about the z-axis unassigned
Middle button Displays object snap shortcut menu unassigned
Right button Real-time pan unassigned
Middle button Real-time rotation unassigned

WALKTHROUGH BUTTONS

Walkthrough navigation in perspective views uses the following mouse buttons and keystrokes:

Mouse Button Command Meaning
Alt + Left button RtWalk Walks forward, backwards, and sideways
Alt + Middle button RtUpDown Moves up, down and sideways
Ctrl + Middle button RtLook Looks around
Ctrl + Home key Resets view direction to the horizontal
Alt + Home key Moves target point to the center of the scene
Alt + Plus key RtWalkSpeedFactor Increases walking speed
Alt+Minus key RtWalkSpeedFactor Decreases walking speed
Ctrl + Plus key RtRotationSpeedFactor Increases rotation speed
Ctrl+Minus key RtRotationSpeedFactorDecreases rotation speed

TABLET BUTTONS

BricsCAD assigns no macros to stylus or puck buttons, by default. This can be done through the Tablet tab of the Customize dialog box.


Most double-click actions bring up the Properties panel, if it isn't already visible. The remainder are assigned to entity-specific commands, such as HatchEdit for hatch patterns or double-clicking a dimension starts the DdEdit command for editing its text. You can customize double-click actions.

Delayed Press. There is one more mouse action available for invoking commands. When you hold down the right mouse button longer than 250 milliseconds, then BricsCAD can carry out a different command. The command, however, cannot be customized by you.

The Customize dialog box's Mouse tab lists the possibilities, as shown below. The only button already assigned is Click (left button); it displays the Snap Menu. The other buttons are unassigned.

null

Customize dialog box's Mouse tab showing button definitions

Here is how to read the content of the Mouse tab: under Click, there are two entries: the first (-----) is for button #2, and the second (Snap Menu) is for button #3.

The remaining entries are for keyboard modifiers to buttons --- Shift, Ctrl, and Shift+Ctrl --- such as Shift-Click. At the end is the section for double-click actions

About the Pick Button

You cannot customize the pick button (left button) for good reason. You never want to lose the ability to pick things in the user interface or the drawing! BricsCAD doesn't let you customize the pick button in combination with keystrokes, either.

About the Right Button

The right button almost always has two specific functions:

In the drawing area --- ends the current command or restarts the last command

In most user interface elements --- accesses shortcut menus, just like in other programs

About the Middle Button

The middle button is often used as a quick way to pan and zoom around the drawing:

Panning --- hold down the middle button and then drag the mouse to pan

Zooming --- roll the scroll wheel back and forth to zoom in and out at the cursor

Orbiting --- hold down the Shift key, hold down the middle button, then drag the mouse around to orbit in 3D about the cursor


TIP When you zoom and orbit using the middle button, the action takes place where ever the cursor is in the drawing. For example, when you roll the scroll wheel to zoom in, you zoom into where the cursor is located. This is great for zooming into a specific place in the drawing: just move the cursor there, and then scroll.


If your mouse has a scroll wheel (most do, these days), then the wheel is the middle button: to drag, hold down the scroll wheel and then move the mouse.

Troubleshooting

If panning and zooming do not work as you expect, then there are two settings to check out.

  • Enter the MButtonPan variable to ensure it is set to On.
    When on, then the middle button pans the drawing.
    When off, the middle button carries out the action defined in the Customize dialog box.

    : mbuttonpan
    New current value for MBUTTONPAN (Off or On) <Off>on

  • If the middle button is still not panning the drawing, then you may need to change the button's definition in the mouse's utility software. For example, if you use the Logitech®'s SetPoint software to define the middle button as "Double Click" or anything else, then this overrides the definitions assigned by BricsCAD. To fix the no-panning problem, change the mouse driver's definition back to "Middle Button", as illustrated below.

null

Software for defining Logitech mouse button actions

Me, I used to always define the middle button for double-clicks, which is an especially efficient way of getting around Windows. But this interferes with the CAD program's ability to pan using the middle button. So I now define the double-click action to one of the side-mounted buttons on my nine-button mouse.

OTHER INPUT DEVICES

Many weird and wonderful input devices have been invented during the course of computing history, such as 100-button boxes, voice input and virtual reality goggles. Here I will concentrate on three supported by BricsCAD: digitizing tablets, 3D mice and touch screens.

Digitizing Tablets

Even before mice were invented, digitizing tablets were the most popular way to control CAD software. Other input devices in the 1970s and early 1980s included the light pen and of course the keyboard.

null

Amiga 1200, graphics tablet Christo / CC BY-SA

Tablets are dual-purpose, allowing users to input commands and draw-edit the model. They ranged in size from a piece of paper, to covering an entire desk.

Pucks had a minimum of four buttons and were available with 12 or 16 buttons. The pucks used for input are precise (unlike today's mice), because they use absolute positioning. (Mice use relative positioning --- it doesn't matter where the mouse is positioned on the desk.) Also available for input was a stylus, like the styluses used today with certain touch screen computers and mobile devices.

Some CAD users still employ the legendary digitizing tablet. It is, however, increasingly difficult to use older models as most computers no longer have the serial port needed to connect the tablet. You can buy serial ports as an add-on to for desktop computers.

Tablet support is included with BricsCAD, as described later.

3D Mice

The 3D mouse is designed to make working with 3D drawings easier. It features a puck that you move up and down in the z-direction, as well as twist and rotate for 3D view rotations.

In practice, you use two mice:

  • The regular "2D" mouse for choosing commands and picking objects
  • The puck of the 3D mouse for moving the viewpoint

Users typically employ the regular mouse with their dominant hand and the 3D mouse with the other.

The 3D mice range in size from a simple, wireless puck with two buttons, to multi-button behemoths sporting a customizable LCD display. The movement of the puck and the buttons can be customized.

null

Model adapted from a GrabCAD file by Frits Westers

BricsCAD supports 3D mice from 3Dconnexion, but before it can recognize a 3D mouse, the 3Dconnexion device driver must be installed on your computer. Driver software is included for computers running recent releases of Windows, macOS and Linux. You may need to reboot your computer after installing the 3Dconnexion driver.

There are no controls in BricsCAD for 3D mice (with the exception of the Ctrl3DMouse variable; it enables and disables the 3D mouse). The actions of the 3D mouse's buttons and puck are defined by the 3Dconnexion Properties software, as illustrated below.

null

Settings for multi-button SpacePilot Pro mouse

Touch Screens

BricsCAD does not officially support touch screens. But they are common with computers running Windows 8.x and 10, and so I thought I should touch on the subject here. Pardon the pun.

The touch actions supported by BricsCAD are just those supported by Windows itself. Below I list the touch actions supported by Microsoft in Windows and the reaction from BricsCAD.

Touch Action Effect in Windows Effect in BricsCAD
One-finger actions
Tap Equivalent to clicking (selecting item) Picks points while drawing entities; Selects individual entities and grips; Selects UI elements, like ribbon buttons
Press and hold Equivalent to right-clicking Displays right-click menus; Does not cancel or restart commands
Drag vertically Scrolls page up or down Moves drawing and dialog box scroll bars
Drag horizontally Selects text Selects text in the Command line
Two-finger actions
Pinch Zooms in or out Zooms in and out
Hold and tap* Equivalent to press-and-hold Same as press-and-hold

*Press the element with one finger, then quickly tap with another finger, while continuing to press the item with the first finger. Access shortcut menus like press and hold and right-clicking

While many screens support up to ten fingers touching at the same time, Windows supports just one- or two-finger touches. Individual applications can support more simultaneous touches, if they wish.

Touchpads

Mac computers do not support touch screens. The macOS operating system does, however, support touchpads, whose actions are listed below.

null

Apple Trackpad. © Raimond Spekking / CC BY-SA 4.0 (via Wikimedia Commons)

Touch Action Effect in Windows Effect in BricsCAD
One-finger actions
Tap Equivalent to clicking (selecting item) Picks points while drawing entities; Selects individual entities and grips; Selects UI elements, like ribbon buttons
Two-finger actions
Tap Equivalent to right-clicking Cancels and restarts commands
Three-finger actions
Drag Moves elements, like dialog boxes Zooms in and out

Note: Four-finger actions are not supported by BricsCAD.

Defining Actions for Mouse Buttons

In summary, you can assign the following types of actions to mouse buttons:

  • Single-click actions --- to right and center buttons only
  • Shift, Ctrl, and Alt keystrokes --- to assign additional actions to right and center buttons
  • Double-click actions --- to the left button only
  • Commands, macros, and shortcut menus --- can be assigned as actions to buttons In BricsCAD, the Customize dialog box's Mouse tab consists of three panes:

null

Customize dialog box showing the Mouse tab

  • Click pane (at the left) --- lists the mouse buttons and key combinations that can be assigned actions
  • Available Tools pane (at the right) --- lists all of BricsCAD's commands sorted by menu name and shortcut menus. To assign a command or menu to a button, just drag it from this pane into the appropriate button in the Clicks pane
  • Button Item pane (at the bottom) --- edits button settings

TUTORIAL: BUTTON ASSIGNMENT

In this tutorial, assign the Move command to the Ctrl+right button by following these steps:

  1. From the Tools menu, select Customize. Notice the Customize dialog.
    (Alternatively, enter the Customize command OR enter the cui alias OR else right-click any toolbar and then choose Customize from the shortcut menu.)

  2. Choose the Mouse (See figure above).

  3. The mouse button you are defining will be pressed in conjunction with the Ctrl key, and so you need to access the correct part of the plane.
    Do it like this:

    1. Open the Mouse Buttons node by clicking the + button.

      null

      Opening the Mouse Buttons node

    2. Open the Ctrl-Click

      null

      Opening the Ctrl+Click node

      Notice that under Ctrl-Click there are two blank entries: each button is labeled with '------'. The first '------' refers to the right button and the second one to the middle button. Click and then look at the bottom pane, where the button name is identified.

      null

      Identifying the right button

      In BricsCAD that the default actions are not listed. These default actions are turned on and off with the CtrlMouse variable, as described above under, "Summary of Mouse Variables."

  4. To attach the Move command to this button, drag the Move tool onto the button, like this:

    1. In the Available Tools pane, open the Modify.

      null

      Choosing a command from the list of Available Tools

    2. Choose the Move tool.

    3. Drag it to the correct button position under Ctrl+Click, as shown Notice that the Move command now occupies the first mouse button position under Ctrl-Click (see figure above).


    __TIP__ If you drag the tool to the wrong button, then no worries. Just drag it to the correct one. 

    In the Button Item pane, notice that there are no properties for you to edit. BricsCAD changes the Button property for you when you move the tool to another button.

null

No properties for new buttons

  1. With Move assigned to the Ctrl+Click right button, it's time to test it:
    1. Click OK to save the changes and exit the Customize dialog
    2. In the BricsCAD drawing window, hold down the Ctrl key and then press the mouse's  right button. The Move command should start up.

TUTORIAL: ASSIGNING SHORTCUT MENUS TO BUTTONS

To attach a shortcut menu to a mouse button, follow these steps:

  1. Follow steps 1-3, listed above.
  2. In the Available Tools pane, scroll down to the last tool, which is named "Context."
    1. Open the node to see the list of shortcut menus (a.k.a. context menus).

      null

      Context (right-click) menus available in BricsCAD

    2. Choose a menu tool and then drag it to the desired button

      null

      Dragging a context menu to a button, from left to right

Tutorial: Writing Macros for Buttons

In addition to commands and shortcut menus, you can attach macros to buttons in two steps:

  1. Drag any tool onto a button, as described in the tutorial "Defining Actions for " The tool doesn't matter, just make sure it isn't one taken from the Context node.

  2. Edit the tool's Command property:

    null

    A macro being written in the Command field

See Customizing BricsCAD -- Writing Macros and Diesel Code -- P9 for information on writing macros.

CUSTOMIZING DOUBLE-CLICK ACTIONS

When you double-click an entity, BricsCAD performs an action that is related to the entity. For instance; double-click a hatch pattern and the Edit Hatch dialog box appears. Double-click some text and a text editor appears.

If an action is not defined for an entity, then BricsCAD displays the Properties panel. Not that there is anything wrong with it, the Properties panel, in fact, is sometimes more powerful than the designated editing command.

Here is a list of the default double-click actions that don't launch the Properties panel:

Entity Double-click Command
Array (associative) ArrayEdit
Attribute definition DdEdit
Attribute in block EAttEdit
Block BEdit
Dimension DdEdit (edits dimension text)
Hatch pattern HatchEdit dialog box
Image ImageAdjust
LwPolyline (modern polyline) PEdit
Multiline leader DdEdit (edits leader text)
Polyline PEdit
Section plane object ClipDisplay (toggles clipping on and off)
Spline SplinEdit
Text (single-line text) DdEdit
Tolerance DdEdit (to edit the text in the tolerance)
Xref (external reference file) RefEdit

Changing a Double-click Action

We are going to assign the Join command to the arc entity. Even better, we will turn it into a macro that closes any arc that you double-click. Closing an arc makes it a circle.

To change the action assigned to a double-click, follow these steps.

  1. Open the Customize dialog box with the cui alias, and then click the Mouse

  2. Scroll down until you reach the Double-click

  3. Open the node. Notice the list of entity names.

    null

    Double-click section of the Customize dialog box

  4. To change the action associated with an entity, select the name of the For this tutorial select Arc.

  5. You cannot just edit the Command property, because then the double-click action will not work, I Instead, follow these steps:

    1. Click the Tool ID Notice the Browse button at the far right end.

    2. Click the Browse Notice the Select Tool dialog box.

    3. Go to the Modify node, and then choose the Join

      null

      Selecting Join from the list of tools

    4. Click OK.

  6. Back in the Customize dialog box, notice that BricsCAD has filled in all the properties for the Join
    Now you can edit the command macro to make it close arcs, like this:

    1. Click in the Command field.

    2. Add the text shown in purple:
      ^C^Carc**;cl;**

    3. And you're done

      null

      New command assigned

  7. Test the change you made, like this:

    1. Click the OK button to exit the Customize dialog
    2. Use the Arc command to draw an
    3. Double-click the arc: it should close into a circle.

Making a New Double-click Action

Not all entities are listed in the Mouse tab's Double-click section. To see the full list --- and to create a new command that offsets xlines --- follow these steps:

  1. Right-click Double-click action.

  2. Then choose Append double-click action from the shortcut menu.

    null

    Adding an entity to the list

    Notice the Add Double-click Action dialog box.

    null

    Selecting a DXF name

  3. Click the DXF Name droplist and then choose an entity type. For this tutorial, scroll all the way down to XLine.

  4. With the entity chosen, now it's time to assign a command to the double-click action and so choose the Create New Tool radio button.

  5. From the Toolbox droplist, chose a BricsCAD command to apply. For this tutorial, we'll choose the Offset command.

  6. Now fill out all the fields that are blank in the dialog box --- Name, Title, Help, Command and even Image --- because if you leave one or more blank, then the OK button remains unavailable.
    (To add an image, click the Browse button at the far end of the Image field, and then chose an icon from the hundreds provided by BricsCAD.)

  7. Click OK to close the dialog Notice that the Double-click Action pane has all of its fields filled in because you filled them out.

    null

    Completed macro

  8. If you wish, edit the Command macro to provide the Offset command with a set offset distance, and so on.

  9. Your final step is to test the change you made, like this:

    1. Click the OK button to exit the Customize dialog
    2. Use the XLine command to draw a construction line, and then press Esc to end the command.
    3. Double-click the xline: the Offset command should launch, prompting you for the offset options.

Defining Actions for Tablet Buttons

Tablet digitizer buttons are customized in the Tablet tab, as illustrated below.

null

Customize dialog box showing the Tablet tab

Now, normally there are no entries under Digitizer Buttons and Tablet Menus because BricsCAD includes nothing for tablets with the Default profile. If you use a tablet, then you need to download the partial CUI files for tablet buttons and drawings overlays from the Bricsys Web site.

At the time of writing, the Web site no longer appeared to host the file, so you can download it from my cloud account.

After the Tablet.zip file is downloaded, unzip it. Notice that it contains two partial .cui files --- tablet.cui and tablet(acadLike)cui --- along with several support files that not necessary right now.

null

Listing of files inside the Tablet.zip archive

Back in BricsCAD, open the Customize dialog box and then click File | Load Partial CUI File (or use the MenuLoad command).

null

Loading a partial .cui file

In the Choose A Customization File dialog box, select tablet.cui and then click Open. Notice that the Customization dialog box now lists two sections for tablet buttons and menus.

null

Button and menu definitions added to support digitizing tables


TIP Use the Tablet command to configure and calibrate the overlay on the surface of the tablet. This command works only after a tablet is attached to the computer and its drivers have been installed, including WinTab32.dll. See "Digitizing Tablet" in the BricsCAD User Guide portion of the online help system.


To attach commands, macros or shortcut menus to a button, follow the step described in the for mouse buttons --- just do your work in the Click section of Digitizer Buttons, as illustrated below.

null

Default puck button assignments

The properties for digitizer buttons are pretty similar to that of mouse buttons:

null

Puck button properties

null

Tablet overlay drawing. Use overlay(cm) .dwg for metric drawings and overlay(inch).dwg for Imperial drawings.


Download BricsCAD free for 30-days

Start Using BricsCAD Today

Permanent or subscription licenses that work in all languages, in all regions.


  1. Introduction
  2. 55 Tips for BricsCAD Users
  3. Settings
  4. Changing the Environment
  5. Custom User Interface
  6. Introduction to the Customize Dialog Box
  7. Customize the Menu Bar & Context Menus
  8. Toolbars and Button Icons
  9. Writing Macros and Diesel Code
  10. Ribbon Tabs and Panels
  11. Keystroke Shortcuts, Aliases & Shell Commands
  12. Mouse, Double-click & Tablet Buttons
  13. Absolutely Everything You Need to Know About The Quad
  14. Rollover Properties
  15. Workspaces and the User Interface
  16. Designing Tool & Structure Panels
  17. Creating Simple & Complex Linetypes
  18. Patterning Hatches
  19. Decoding Shapes & Fonts
  20. Coding with Field Text
  21. Writing Scripts
  22. Programming with LISP (Introduction)
  23. LISP Functions
Ralph Grabowski

by Ralph Grabowski - CAD Writer, publisher of upFront.eZine

Ralph is the publisher of the weekly 'upFront.eZine' e-newsletter on the business of CAD and the 'WorldCAD Access' blog on technology. Author of 240+ books and ebooks about computer-aided design, and producer of 220+ videos on using CAD.

September 17, 2024 3 min

Customizing Line Types in BricsCAD

Creating custom line types in BricsCAD can significantly enhance the detail and clarity of your drawings. Whether you’re working on complex engineering plans or simple layout designs, understanding how to create your own line types can give your projects a professional edge. Follow this step-by-step guide to learn how to create both simple and complex line types in BricsCAD.

September 10, 2024 3 min

BricsCAD Partner Apps for Civil and Survey Workflows

At Bricsys, we provide a solid foundation for our specialist survey and civil app developers to create specialist civil and survey tools that deliver robust and efficient workflows for BricsCAD users. Let’s see what updates and improvements our various developer partners have made to complement BricsCAD V24's civil and survey workflows.

These civil and survey applications are among multiple third-party applications supported by BricsCAD, with our developers working to improve their functionality and remain on pace with our new features introduced with every release.

September 9, 2024 4 min

Embracing Digital Transformation in the Construction Industry with Bricsys® 24/7

The construction industry continually evolves, and digital transformation is reshaping how teams manage projects, communicate, and handle project documentation. When embracing digital solutions for construction projects, a common data environment (CDE) like Bricsys 24/7 is an excellent place to start. With a significant variance in the level of digital adoption across the industry, embracing and leveraging digital tools can help firms differentiate themselves by elevating operational efficiency and improving project outcomes.

Follow us on social media