AutoCAD

Unraveling AutoCAD's CUI, Part 2 (Circles and Lines AutoCAD Tutorial)

1 Feb, 2008 By: Lynn Allen

Creating toolbars that are perfect for you.


I've always been a huge proponent of customizing the heck out of AutoCAD to suit your needs. Last month I kicked off a series of columns about customization by focusing on workspaces. This month I'll discuss one of the most popular tools you can personalize to suit your needs -- toolbars. Creating a custom toolbar of your most frequently used commands can speed up the drawing process significantly.

The first time you launch the CUI in any AutoCAD session, you'll notice it takes a few seconds to launch. After that it should pop up much faster. You'll find the Toolbar section of the CUI listed in the upper-left corner of the dialog box.

figure
The existing toolbars are listed in CUI file tree.

figure
Select New Toolbar from the shortcut menu to create your own toolbar from scratch.
After expanding the Toolbar section, you'll see a listing of all the existing toolbars in your loaded AutoCAD menu file. You can choose to customize an existing toolbar or to create a new one. Let's start by creating a new toolbar called Favorites. To do this, you'll right-click on Toolbars and select New Toolbar from the shortcut menu. Rename the new toolbar as Favorites or something along those lines.

Drag and Drop
Now it's just a matter of dragging your favorite commands from the Command List section of the CUI (lower-left corner) and dropping them underneath your new Favorites toolbar. The order in which you drop the commands will be the order they appear in the toolbar. To quickly find commands, you can use the new Search capability that lies at the very bottom of the Command List dialog box or you can key in the first character of the desired command and the listing will jump to all the commands that start with that character.

figure
Drag and drop commands to customize your toolbar

I selected five of my favorite commands to add to my toolbar. The dynamic capabilities of the CUI allow me to move the tools around directly in the preview box. You can also delete tools by dragging them off the toolbar. You'll see this hysterical cloud-like icon indicating you're about to drag a tool off the toolbar. I believe it's supposed to simulate erasing dust (like from a chalkboard -- that's my guess anyway).

figure
My Favorites toolbar is comprised of five frequently used commands.

You also can see that my new toolbar will be displayed in the Drawing editor (show vs. hide) and it is floating (not docked). Hit OK to save and exit the CUI, and your new toolbar should be displayed on the screen. If you want to customize your toolbar further, you can dynamically modify it in the Drawing editor as well (the way we all used to do it). Right-click on any of the tools in your new toolbar, select Customize from the shortcut menu and the new Quick CUI dialog box will pop up on the screen.

The QuickCUI command is an abridged version of the CUI command as it only displays the command list as seen below. (Frankly I don't find it very quick.) This will make it easy for you to drag and drop additional commands directly to your toolbar. You can add some spacers to your toolbar by grabbing a tool and nudging it over just a little. Don't drag the tools too far, or they'll end up falling off your toolbar. The figure below also shows how I added a couple of separators to my toolbar. The only advantage to adding separators is if you find yourself a bad shot and want it to be easier to select your tools (which also means you haven't been playing enough Xbox).

figure
Right-click on an existing toolbar and select Customize to display the QuickCUI command.

You can also add separator lines inside of the CUI. Separators are indicated with two dashes.

figure
You can manually insert separators in the CUI command.

Add a Flyout
Would you like to add a flyout to your nifty new toolbar? Adding a flyout is like having a toolbar within a toolbar. Here I've indicated that I

figure
Adding a flyout is like adding a toolbar within a toolbar.
want to add a new flyout from the shortcut menu, and I've dragged a few Circle tools to my flyout.

In the early days of toolbars, we took great joy in going flyout happy. We would put flyouts within flyouts until our toolbars looked like a crossword puzzle!

Should you choose to add your own custom command (which we'll tackle another month) to your toolbars, you'll also need to create an icon that goes along with the new tool. If you want to create a nifty icon inside of the CUI, simply select a command that already has an icon attached to it and select Edit from the Button Image section in the upper-right corner of the dialog box. Then you can clear the existing image, turn on the grid if you like (I like), and draw away. The Button editor has four tools: a pencil tool that fills in the squares one at a time, a line tool, a circle tool, and an eraser tool. Regardless of the tool you choose, you will feel like a kindergartener when you try to use them. As you can see below, I am extremely talented in this department! You simply select your color and your weapon of choice and design away! After you've drawn your masterpiece, you'll want to save the icon to a file that resides in the Custom Icon Location (which it does by default) of

C:\Documents and Settings\<user profile name>\Application Data\Autodesk\<product name>\<release number>\<language>\Support\Icons

This location is defined in the Options command, Files tab. This step is extremely important or you will find your icons will disappear (and that has happened to all of us at one time or another). Any icons saved in the proper directory will also be migrated with subsequent releases, which is a good thing.

figure
Use the Button editor to create your icons for your toolbars.

You also can use a more image-friendly program to design your toolbar icons. Just make sure you create the image in two different sizes: 16x16 pixels for the small buttons and 32x32 for the large buttons. Technically, any bitmap can be assigned to a button -- AutoCAD will just size it to fit. So, yes, you can assign a picture of your dog to a toolbar button.

Toolbars are easy to customize and yet they are a powerful means of speeding up your everyday drawing chores. Make yourself a toolbar of all your most frequently used commands so they are available at your fingertips when you need them. Give it a go -- you just might surprise yourself with your customization powers!

Until next month, happy AutoCADing!


AutoCAD Tips!

Lynn Allen

Autodesk Technical Evangelist Lynn Allen guides you through a different AutoCAD feature in every edition of her popular "Circles and Lines" tutorial series. For even more AutoCAD how-to, check out Lynn's quick tips in the Cadalyst Video Gallery. Subscribe to Cadalyst's Tips & Tricks Tuesdays free e-newsletter and we'll notify you every time a new video tip is available. All exclusively from Cadalyst!
Follow Lynn on Twitter Follow Lynn on Twitter


Latest News from Cadalyst Partners
Feed
Autodesk Gallery Powers of Design Exhibit: 10**24 The Local Supercluster   19 Jun, 2013

I work out of our office on One Market Street in San Francisco. My standup-desk is right across from our Gallery at One Market. One of our newer...More>>Read more It's Alive in the Lab blog posts>>

Feed
Tech Toys 360: Pro-Form Le Tour de France Bike   18 Jun, 2013

The greatest bike race in the world is held June 19 to July 21 this year. Celebrating its 100th year, the Tour de France sends riders through more...More>>Read more PTC Creo blog posts>>

Feed
Update 3 now available for Revit 2013 Products - Revit Clinic   18 Jun, 2013

...More>>Read more BIMbuilder blog posts>>

Feed
Nice Design—What Does It Feel Like?   17 Jun, 2013

...More>>Read more SolidWorks Blog posts>>

Feed
LiveMap: The Augmented Reality Motorcycle Helmet of the Future?   18 Jun, 2013

Philippe Starck once famously said that there should be no cars on the road—-only motorcycles. While some soccer moms may disagree, his theory...More>>Read more SolidSmack blog posts>>

Poll
How many years' experience do you have using CAD software?
Less than two years
2–5 years
6–10 years
11–20 years
21+ years
Submit Vote




FREE Resources for CAD, BIM, and PLM Users





Subscribe Cadalyst Newsletters