• Home
  • Training Books
  • Subscribe to Our Email Newsletter
  • About
    • Contributors
    • Feedback
    • Contact
    • Privacy policy
    • Cookie Policy
  • Bahasa Indonesia

CADnotes

CAD Tutorials and Best Practices for professionals and students

  • Featured
  • AutoCAD
    • AutoLISP
  • Revit
    • Revit Architecture Basic
    • Revit MEP Basic Tutorial
  • Inventor
  • MicroStation
    • MicroStation Basic Tutorial
You are here: Home / AutoCAD / Exploring AutoCAD CUI: 5 more things you can do with CUI (part 5)

Exploring AutoCAD CUI: 5 more things you can do with CUI (part 5)

March 21, 2012 by Edwin Prakoso 8 Comments

In this Article...

  • 1. Rollover Tooltips and Quick Properties
  • 2. Keyboard Shortcuts
  • 3. Double Click Actions
    • 1. Create a new command
    • 2. Add double click action
    • 3. Add command to action
  • 4. Mouse Click
  • 5. Loading LISP File
  • Do you use these custom setup in your CUI?

We have 4 articles already about working with CUI. Many people think that CUI is only about creating custom commands, creating your own ribbon tab/panel or your own toolbar and menu. There are more things you can do with CUI, and actually quite cool.

1. Rollover Tooltips and Quick Properties

Rollover tooltips and quick properties both give you quick information of your object. Rollover tooltips  will appear when you hover your mouse above an object. Quick properties is a palette that will open when you click an object. Or you can set it to open automatically when you select object.

If you only want to see object’s properties, rollover tooltip would be a logical choice. But if you don’t like to wait until it appears, you can just choose quick properties. But the real difference is, you can edit the properties in quick properties but not in rollover tooltip.

Let’s say you are a surveyor. You would like to get information of an object quickly, like what is the object, its length and its area. You can just hover your mouse above it, and don’t have to inquiry its length and area! Isn’t that cool?

rollover tooltip

If you want to have this on your tooltip, open CUI dialog. You can work with your own customization file or just use default CUI.

Click rollover tooltips category.

rollover tooltips

You will see a list of objects at the right pane. If you use your own CUI, this list is still empty. Click edit object type list to add objects to this list.

edit object list

You will see a complete list of AutoCAD objects. Select all objects which you want to modify the tooltip appearance. Let’s say I want to customize polyline tooltip.

I click it and click OK. Now polyline is on the list. But it has an exclamation mark. It means we haven’t defined any properties yet. So click all properties you want to show on tooltip for this object.

I select layer, area and length here.

polyline properties tooltip

Click OK to accept your changes and close CUI. Now test it. Create a rectangle or polyline and hover your mouse above it. Pretty cool right?

What about quick properties? You can do it the exact same way. But remember, you may want to select properties you change regularly.

quick properties

2. Keyboard Shortcuts

AutoCAD users probably use command alias as shortcut more than keyboard shortcut. And many probably don’t even realize this kind of shortcut exist.

There are common Windows shortcut we can use in AutoCAD. Like [ctrl] + A to select all, [ctrl] + C to copyclip, and [ctrl] + V to pasteclip. Some AutoCAD users also use other applications intensively. They probably prefer this kind of shortcuts than command alias. But if you use AutoCAD as primary software, it’s more likely that you prefer command alias.

If you open your CUI again, click shortcut keys under keyboard shortcuts.

shorcut keys

You will see a list of complete shortcuts on the right pane.

default shorcuts

If you select a command here, you will see the command’s properties below that pane. Find Key(s) below Access category here. Click … button. After AutoCAD open a small dialog box, press key combination that you want to assign.

defining shorcut key

Ok, what if I want to add commands that’s not on the list? You can drag that command to shortcut keys category.

adding commands

It is a good thing to add it to your own customization file, so you will not mess default AutoCAD CUI. And it would be easy to use it on other computer. You can simply load your customization file!

3. Double Click Actions

Double click action is similar to right click menu. It’s context sensitive. You can define what command should be executed when you double click an object. Lynn Allen has a tip on her blog before: convert a line to polyline with double click.

OK, let’s just use Lynn’s tip to add this command to our CUI. Lynn uses AutoCAD default CUI, so I guess I need to explain extra steps if you want to add it to your own CUI.

1. Create a new command

You can create a new command to convert a line to polyline using macro below:

^C^CPEDIT;y;;

Create it on your own customization file.

2. Add double click action

Right click double click actions, and choose new double click action in context menu.

Select the action and change object name to LINE.

define object type

3. Add command to action

Now drag your command below this action. You’ve done this several times, right?

It should look something like this:

double click actions

Close your CUI and give it a try!

4. Mouse Click

Previously, when we work with our own customization file, it will override default settings. For example, if you assign keyboard shortcut [ctrl] + A in your CUI, AutoCAD will use it instead of select all as defined as default command.

I found that it’s different in mouse click. If you want to modify mouse click, you must change it directly in acad.cuix. If you know how to add this to our own cui without modifying acad cui, share in comment section below.

Here’s a little explanation about mouse buttons. Common mouse we use is a 3 buttons mouse. The left button is button 1, right button is button 2, and middle button is button 3.

See the structure below. You can also combined mouse click with [ctrl] and [shift] key. ctrl + shift + click > button 2 means: you hold [ctrl] and [shift] key then right click your mouse.

mouse buttons

Like working with other actions, you can change the assignment by dragging command here. Try to replace ctrl + shift + click button to with erase and see if it works!

Why there are so many buttons? If you have more than 3 buttons mouse, you can assign commands to all of those buttons!

5. Loading LISP File

Another thing you can do with CUI is to load AutoLISP file. There are several ways to load AutoLISP automatically. The other ways are you can use startup suite or acaddoc.lsp.

However, if you intend to deploy customization to use for all users in your company, using CUI probably is the preferred way. You only need to load it once.

To load AutoLISP using CUI, right click above LISP files and choose load LISP from context menu. Consider to create a default location so all users can have the same folder in their computer. Otherwise, it will not work.

load lisp with cui

Do you use these custom setup in your CUI?

So do you use them already? If you are familiar with customization, you probably already do this. What is your favorite from these 5? If you haven’t which one do you think will be useful for you, and what will you use it for? Share it here!

About Edwin Prakoso

I work as a Sr. Consultant in PT Cipta Satria Informatika. I've been using AutoCAD since R14 and Revit since Revit Building 9. I occasionally write for AUGIWorld magazine and I am also active in Autodesk discussion forum. I'm a member of Autodesk Expert Elite, an appreciation for individuals who give contributions to the Autodesk community.
Connect with me on twitter or LinkedIn.

Filed Under: AutoCAD Tagged With: cui tutorial

0 0 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

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

8 Comments
Inline Feedbacks
View all comments
Ong
Ong
3 years ago

For item No. 4, I just found out that only can modify mouse button 2 onwards. Is it possible to add on button 1 for the shortcut mouse click?

0
Reply
Edwin Prakoso
Edwin Prakoso
Author
Reply to  Ong
3 years ago

Hi Ong, I don’t think it’s possible do modify it in CUI. You can remap the buttons using a 3rd party software, but not by using CUI alone.

0
Reply
Quan Ma Loan Vu
Quan Ma Loan Vu
8 years ago

Add Double Click Actions in autocad 2016
when i change quick properties (at Hatch) by hatch edit(^C^C_HATCHEDIT) it not changed .can you help me ?

0
Reply
khanh
khanh
8 years ago

Add Double Click Actions in autocad 2016
when i change quick properties (at Hatch) by hatch edit(^C^C_HATCHEDIT) it not changed .can you help me ?

0
Reply
Kent Keplinger
Kent Keplinger
11 years ago

I have a Logitech M500 and cannot program the 2 thumb buttons. Any thoughts?

0
Reply
Edwin Prakoso
Edwin Prakoso
Author
Reply to  Kent Keplinger
11 years ago

Have you installed the mouse driver? Is the button already recognized in Windows? You can only use it in AutoCAD after Windows recognize it.

0
Reply
Kent Keplinger
Kent Keplinger
Reply to  Edwin Prakoso
11 years ago

Loaded and works with windows. Can’t find what to set the buttons to in setpoint for the button assignments to work in ACAD14.

0
Reply
Lewis Whidden
Lewis Whidden
11 years ago

I have a Logitech m510 mouse that I cannot assign to other buttons. The keyboard entry works but I can’t seem to map them to any mouse key. Any help. I am running Auto Cad 2012.

0
Reply
wpdiscuz   wpDiscuz

Featured

What’s New in AutoCAD 2021?

Autodesk released AutoCAD 2021. What’s new? Is there something that you expected? Find out here.

Recent Articles

  • Autodesk Construction Cloud Activity Log
  • Exporting AutoCAD Plant 3D Model to Navisworks
  • Autodesk Data Connector for Power BI is Now Available

Advertisement

New on CADnotes

  • Autodesk Construction Cloud Activity Log
  • Exporting AutoCAD Plant 3D Model to Navisworks
  • Autodesk Data Connector for Power BI is Now Available
  • Autodesk Forma Design Contest
  • Revit 2025: Toposolid Enhancements

Meet the Authors

avatar for
avatar for
avatar for
avatar for
avatar for
avatar for

Get Connected

CADnotes on FacebookCADnotes on InstagramCADnotes on TwitterCADnotes on YouTube

© 2009 – 2025 CADnotes · Feedback · Privacy Policy · Become an affiliate

wpDiscuz