Category Archives: Tip

The _XREF_XREF killer

If you’re an AutoCAD 2008 user you probably already know what the title refers to. If not, you probably don’t need to know. If your drawings are afflicted, I suggest you hop over to Between the Lines, grab the scale list cleanup utility and start cleaning up. Although I’ve found that this utility works very well, paranoia is usually wise in computing so make sure you back up everything before you start! The utility is installed into the AutoCAD 2008 or 2009 main installation folder, and you can make a shortcut to the CleanupScales.exe file on your desktop if you wish to make it easier to fire up.

To the Autodesk people who put the effort into creating this utility, thank you.

Wiki for AutoLISP

Greg Robinson, who I had the pleasure of meeting at Autodesk some 11 years ago in the run-up to Release 14, has started a Wiki for AutoLISP and other AutoCAD-based source code. I’m a big fan of LISP in AutoCAD, so I’m happy to see this resource available for users.

It’s in its infancy right now, but if you pick the All Pages link you’ll see that there already dozens of routines available, one of which may help you with something you need to do. Here’s the link to the main page:

http://lispwiki.com/

AutoCAD 2009 – Tooltips are bad for my sanity

In the general scheme of things, this is a relatively trivial issue, but it’s sometimes the little things that get under my skin. Winner of this year’s prize for most annoying new feature just has to be the new tooltips. They are really not good for my mental health. If I have tooltips turned on, I find it hard to use AutoCAD 2009 for more than a few minutes without wanting to smash my fist through the screen.

I would like to leave tooltips on just a little bit so they will let me get used to AutoCAD’s modified button appearance and location. All I want is a little one-word tooltip if I hover over a button, but I can’t have that. There is some control over tooltips to be had in the Options dialogue box:

Controlling tooltips in Options

Oh, sorry, you can’t see the options I’m trying to describe because there is a stupid great big tooltip in the way. What I’m trying to show is that if you turn off all but one of the toggles, you can at least avoid the embarrassing spectacle of AutoCAD covering up most of the screen with information about how to draw a line when you hover over the Line button. But you can’t persuade AutoCAD to just show you what the commands are, you have to have several lines of information, one of which is exactly the same for every single tooltip.

The least intrusive tooltip available

That’s not too bad I suppose, but try using a dialogue box. Nasty huge tooltips keep throwing themselves at you in a mad rush to obscure what you’re trying to see. You can move your cursor right out of the way to stop the tooltips from appearing, and then move it back again when you want to actually pick something, but what a waste of time, mental energy and wrist effort.

You didn't want to see what's under here

OK, so you’ve had enough of them? Want them all banished? Fine, back into Options, turn that last toggle off, pick OK (assuming it’s not obscured by a tooltip so you can see it) and you’re done. Or are you? Back into Options, pick the Files tab and do a bit of hovering.

Even when they are off they are on

Aaaagh! The stupid tooltip isn’t even accurate. It doesn’t describe what you’re hovering over, it describes the files category that’s selected, which could be off the screen. If nothing is selected, it describes the first category rather than what you’re hovering over. Duh.

OK, Autodesk people, own up. Who thought this was a good idea? Really, what on earth were you thinking?

AutoCAD 2009 – Automatic spell checker

I’ve seen quite a few positive comments about the new automated spell checking feature, with some people saying that it alone is enough to make AutoCAD 2009 worth the price of admission. I wouldn’t go quite that far, but it is a nice feature. If you enter or edit text or mtext, a little dashed red line appears under words that are not in the dictionary. Right click on an unknown word and the menu will offer several suggestions, allow you to ignore the word or add it to the dictionary.

It does have limitations, though, such as not working with attributes. Don’t expect it to do the things that Word does, such as auto-correct words or check your grammar. There is nothing to inform you that you have used a valid word in the wrong context, so AutoCAD considers this to be a perfectly valid sentence:

Eye cant under stand how any one cud sell any off they’re worms rung wen awl 0f there worlds ate testes width a auto mated shell checked.

Translation:

I can’t understand how anyone could spell any of their words wrong when all of their words are tested with an automated spell checker.

AutoCAD 2009 – Layer Palette and performance

If you’ve noticed some normal drafting operations are much slower in AutoCAD 2009 than in earlier releases, try turning off the new Layer Palette and see if the problem goes away. For example, editing viewports with the Layer Palette visible can be completely unworkable. Don’t just auto-hide it, close it altogether.

Another problem presented by the Layer Palette is that any layer changes you make are applied as you make them. This sounds great in theory, but if each operation takes a while to perform then that’s much less efficient than the old method where all changes are made at once when OK or Apply is picked.

I know a non-modal layer interface was a common wish and it sounded like a cool idea, but now Autodesk has actually been kind enough to grant this wish I’m finding I prefer the old method. I generally don’t need access to all that layer functionality all of the time, so it makes sense to only have the interface occupying that big slab of screen real estate when I actually need it. Your requirements may differ, of course.

If you’re a layer Luddite like me, you can use the old interface by issuing the Classiclayer command. Alternatively, if you set the undocumented system variable LAYERDLGMODE to 0, the Layer command will invoke the old interface instead of the new one.

AutoCAD 2009 – Action Recorder needs action

One of the banes of AutoCAD over the past few years is the phenomenon of the half-baked feature. A new feature is added to the product with serious design deficiencies and/or bugs and other shortcomings that make it much less useful than it should have been. I’m sure you have your own favourite examples of this. I may expand on this theme in future, but for now let’s concentrate on one brand new and particularly undercooked feature, the Action Recorder.

The ability to record and play back macros is undoubtedly something that many users want, and has featured prominently in some wishlists. Autodesk has now provided the Action Recorder. Wish granted, right? A shining example of Autodesk listening to its customers and providing what they want and need? Not exactly. In fact, this wish has only been granted at the most superficial level.

Here is the wish as seen on the 2003 AUGI Top Ten AutoCAD Wish List (it’s number 6): “Provide a VBA Macro recorder.” Here it is as it appeared in the February 2006 AUGI Wishlist (it’s number 1): “The ability to record the process of a certain task and assign a quick key to it – similar to Microsoft’s macro recorder for office products.”

People were asking for something similar to what they had in Microsoft products. That is, something that not only allows actions to be recorded and played back, but to also create some kind of editable programming language code. Why would people want that? Because recorded macros can be easily examined, modified, combined, changed from one-off to repeating sequences, used as the basis for slightly different routines without requiring re-recording, incorporated into full-blown routines, and so on. The need for editable code is blindingly obvious, really.

So, how does Action Recorder store its macros? As VBA code? No, but that’s not surprising because Microsoft has dictated that VBA is doomed. LISP code, then? No, LISP is unfashionable at Autodesk. Script files? Nope. XML? Try again. It’s a new and proprietary format. It’s binary, not text. It’s undocumented. There is no known access to the code via AutoCAD’s other programming interfaces. In summary, it’s a closed format.

Does that matter if you can edit it using Autodesk’s tools? Yes it does, but in any case you can’t edit it in any meaningful sense. The only editing mechanism provided by Autodesk is the Action Tree, and it’s woeful. Pretty much the only things you can do with it are to delete whole commands and to change certain recorded actions to prompt for user input instead. You want to change a macro to set up certain layers before you start? Sorry. You want to add a command to the end of a macro? Nope. You’ve picked 3 times during a command and you want to change it to 2 or 4 times instead? Too bad. You want to use one macro as the basis for a whole series of macros, just changing a couple of things from macro to macro? No can do.

This lack of a useful editor isn’t just a problem for CAD Managers and power users. If anything, it’s even more of a hindrance for the novice users it’s obviously aimed at. Who is more likely to get an extended command sequence wrong? A power user with years of experience writing menu macros, or a new user? So who is most likely to need to fix up their macros after recording?

There are various other things wrong with the Action Recorder that go to make it a very frustrating tool. The way in which points with object snaps are recorded is unusable. The way in which zooms occur is bound to cause lots of surprises. The inability to record dialogue box operations is going to confuse and frustrate many users. The habit of the Action Tree in always pinning itself in place is annoying. Its inability to resize outside a very limited range is restrictive. The plethora of in-your-face warnings will have you groaning more than Vista’s User Access Control, and don’t think of turning them off in advance, that’s not allowed. Finally, if you’re not a Ribbon user, forget it. While the command line interface allows for recording and playing back macros, there is no way of editing them. So unless you want to do exactly the same thing in exactly the same location in all your drawings, you’re out of luck.

Don’t take my word for it, try it for yourself. Try to make a macro that does something simple but useful like rotating a piece of text about its insertion point, or inserting a block on a line and then trimming the line within the block. By the time you’ve worked out that it can’t be done, you could have learned about menu macros from scratch and written something that actually works, several times over. A word of warning; please make sure you lock up any pets or children before starting this experiment.

The Action Recorder is a “brochure feature” only; it serves as a marketing tool for Autodesk rather than a genuinely useful productivity tool for its customers. This wouldn’t be so bad if it was an isolated case, but it isn’t. Unfortunately, half-baked new features are now the rule rather than the exception.

Why is this so? Is Autodesk cynically trying to fool its customers in an evil revenue grab? Does the AutoCAD development team spend its time trying to come up with deliberately half-baked features? No. The developers don’t want to make these weak and useless things; they are human beings with the same urge as the rest of us to do well and be proud of their work. The problem is that there is simply not enough time to do a good job with a major feature and finish it off. It all comes down to the 12-month release cycle; it just isn’t working.

AutoCAD 2009 – Putting things back to “normal”

Note: there are updated versions of this post for AutoCAD 2010, 2011 and 2012. If you’re running a more recent release of AutoCAD, have a look at the post AutoCAD 2017 – Putting things back to “normal” instead.

One thing that’s regularly asked whenever a new AutoCAD release hits the streets is how to make it work like the last release. I think you should give any new features a fighting chance before turning them off or ignoring them, but that’s entirely your choice. Let’s assume you’ve made the decision to go back to the future; how do you do it?

  • Menus and Ribbon. You can turn menus on with MENUBAR 1, close the Ribbon with RIBBONCLOSE, and so on. However, there’s an easier way; just switch workspaces. In the bottom right corner there is a little button that looks like a gearwheel. This is the Workspace control. Click on it and pick the item called AutoCAD Classic.
  • Dashboard. The Dashboard is gone, but you can have a vertical Ribbon instead. If the Ribbon is not visible (it won’t be if you just selected the AutoCAD Classic workspace), enter RIBBON to bring it back. In the tab title row (the bar with the word Home in it), right-click and pick Undock. Now you can place and size your Dashboard-like thing as you see fit. As before, you can right-click on things to change the various settings. However, getting the contents exactly the way you want it usually involves using CUI, and that’s well outside the scope of this post.
  • Background. Many of you will want a black background, of course. Right-click on the drawing area and pick Options…, then pick the Display tab. Don’t be tempted to choose Color Scheme and set it to Dark, because that just changes the appearance of various user interface elements. Instead, pick the Colors… button. On the left, choose a context you want to change (e.g. 2D model space), choose the appropriate background element (e.g. Uniform background) and choose the particular shade that takes your fancy. There is a Restore Classic Colors button, but that only takes you back to AutoCAD 2008. When you’re done, pick Apply & Close, then OK.
  • Status bar. Right-click on a status bar button, turn off Use Icons and your text-based status bar buttons will return.
  • Classic commands. If you prefer not to leave the various new palettes on screen all the time, old versions of various commands are still available: ClassicLayer, ClassicXref and ClassicImage. Going back further, there are command-line methods of doing the same thing: -Layer, -Xref, XAttach, -Image and ImageAttach.

If you’ve allowed AutoCAD to migrate your settings (I never do), some of the above will already be done for you, but by no means all of it.

One of the great things about AutoCAD is that we can still do this sort of thing. Microsoft has a lot to learn from Autodesk in this regard. If you’re using Word 2007, you are going to have a Ribbon and that’s the end of it, so be a good little user and learn to love it. Oh, and don’t even think about trying to modify it. Whatever you might think about Autodesk’s development priorities, design decisions and feature implementation, at least in most cases Autodesk leaves us with a choice.

AutoCAD 2009 – The Prequel Part 24 – Menu Browser Keyboard Access

You may be used to accessing pull-down menus with Alt-key combinations, e.g. Alt+F to get at the File menu. You can still use those keystrokes to get at menus in AutoCAD 2009, whether or not the pull-down menus are in place. If the pull-downs are visible (MENUBAR=1), they are given priority over the Menu Browser. One difference is that if the pull-down menus are visible, you can either press the keys together (e.g. Alt+F), or you can press and release the Alt key, then choose the menu (e.g. Alt, F). With the pull-down menus turned off, you can use only the former method; just pressing and releasing the Alt key is ignored.

Here is a list of the Alt-key combinations that will work with either the pull-down menus or the Menu Browser:

Keystroke

Action

Alt+F File menu
Alt+E Edit menu
Alt+V View menu
Alt+I Insert menu
Alt+O Format menu
Alt+T Tools menu
Alt+D Draw menu
Alt+N Dimension  menu
Alt+M Modify menu
Alt+W Window menu
Alt+X Express menu
Alt+H Help menu

Of course, the above only applies in the standard AutoCAD environment. In a custom environment, things could be quite different.

The following key combinations apply only to the Menu Browser. Unfortunately, they are ignored if the pull-down menus are visible:

Keystroke

Action

Alt+R Recent Documents
Alt+C Open Documents
Alt+A Recent Actions
Alt+S Open Menu Browser with focus on Search

The last combination can be used as a prelude to searching the menus, or simply as a way of exposing the Menu Browser without having to click on the red A.

AutoCAD 2009 – The Prequel Part 22 – Open Documents

One more feature that’s crammed into the Menu Browser pane’s limited space is the Open Documents list. This allows you to switch between the drawings you currently have open. It has a similar interface to the Recent Documents list, including the persistently pale preview:

AutoCAD 2009 Open Documents

Unlike Recent Documents, the filenames are displayed in the correct case, although this is not true in the preview where the name and path are all in upper case. Another glitch in the preview can be seen above, where it says Currently Oper instead of Currently Open By:. This only happens intermittently and doesn’t concern me greatly.

In the same way that Recent Documents doesn’t eliminate the equivalent feature in the File pull-down menu, Open Documents doesn’t eliminate the equivalent feature in the Window pull-down menu. Note that this applies only to the traditional pull-down menus you get if you set MENUBAR to 1; the File and Window menus in the Menu Browser are missing the lists of documents.

If you want to switch between open documents quickly without looking under the red A, the Ctrl+Tab and Ctrl+Shift+Tab keyboard combinations still work in AutoCAD 2009, as they have ever since the multiple document interface was introduced by AutoCAD 2000.

AutoCAD tip – more on the Oops command

In a comment on my Five More Simple Tips for AutoCAD post, Jeremy had some questions about the Oops command. I thought I would explain the command in more detail in another post so more people will see it.

The first thing to understand is that Oops varies from Undo/U in that it only reverses those commands that erase objects. The Erase command is obvious, and the same applies to pre-selecting objects and hitting the Delete key, but the Block and Wblock commands can also erase the objects that go to make up the block. In such cases Oops can be used to restore those objects without undoing the block creation step.

Another difference is that unlike Undo, you can only go back one step with Oops. If you erase one set of objects and later erase another set, issuing two Oops commands will not restore the first set of objects. Where Oops has the advantage is that it can unerase something that you erased 100 commands ago, without undoing the intervening 99 commands.

What happens if you use Oops when there is nothing to unerase? Nothing. Oops simply returns to the Command prompt. Also, there is no short form of the Oops command in standard AutoCAD. O invokes Offset, OO does nothing and OP invokes Options.

Finally, the U and Undo commands interfere with Oops. I suspect this is what Jeremy was seeing when the command wasn’t working for him. To see what I mean, select and right-click > Copy the following commands. In an empty drawing, right-click > Paste them into the Command prompt area:

_.Zoom _Win 0,0 10,5
_.Line 1,0 1,2

_.Line 2,0 2,2

_.Line 3,0 3,2

_.Line 4,0 4,2

_.Erase 1,1 2,1

_.Line 5,0 5,2

_.Line 6,0 6,2

_.Move 5,1 6,1  5,3 7,3

This command sequence zooms to a suitable area, draws four lines, erases the first two, draws another two and then moves them to the right. If you use Oops immediately after that, the first two lines will return. However, if instead of doing that you first undo the Move command and then use Oops, the lines will not return.

AutoCAD 2009 – The Prequel Part 12 – Controlling Screen Elements

How do you turn the new screen elements on and off using the keyboard? How about the not-so-new ones? See this table:

Element On Off Toggle
Advanced Render Settings RPPREF RPPREFCLOSE  
Clean Screen CLEANSCREENON CLEANSCREENOFF Ctrl+0
Command line COMMANDLINE COMMANDLINEHIDE Ctrl+9
dbConnect DBCONNECT DBCCLOSE Ctrl+6
DesignCenter ADCENTER ADCCLOSE Ctrl+2
Layer palette LAYER LAYERCLOSE  
Lights LIGHTLIST LIGHTLISTCLOSE  
Markup Set Manager MARKUP MARKUPCLOSE Ctrl+7
Materials MATERIALS MATERIALSCLOSE  
Menu bar MENUBAR 1 MENUBAR 0  
NavCube NAVCUBEDISPLAY 1 NAVCUBEDISPLAY 0  
Properties palette PROPERTIES PROPERTIESCLOSE Ctrl+1
Quick calc QUICKCALC QCCLOSE Ctrl+8
Ribbon RIBBON RIBBONCLOSE  
Rollover tool tips ROLLOVERTIPS 1 ROLLOVERTIPS 0  
Sheet Set Manager SHEETSET SHEETSETHIDE Ctrl+4
Status bar STATUSBAR 1 STATUSBAR 0  
Status bar
tray icons
TRAYICONS 1 TRAYICONS 0  
Tool palette TOOLPALETTES TOOLPALETTESCLOSE Ctrl+3
Tool tips TOOLTIPS 1 TOOLTIPS 0  
Visual Styles VISUALSTYLES VISUALSTYLESCLOSE  

Five More Simple Tips for AutoCAD

More simple AutoCAD tips, as promised:

  1. If you erase some objects, draw a few things and then want your erased objects back without losing the things you drew in the meantime, enter OOPS rather than undoing the commands.
  2. At any Select objects: prompt, you can select using a triangle, non-orthogonal rectangle or other odd shapes, by entering the WPolygon (WP) or CPolygon (CP) options.
  3. If you have a paper space viewport entirely inside another one, it can be hard to make that viewport current just by picking in it. Try Ctrl+R to cycle through viewports instead.
  4. Move some objects, rotate them to match something and optionally even scale them to match too, all with the ALIGN command (Modify > 3D Operations > Align). Despite the menu location, this command is great for both 2D and 3D work.
  5. The ID command tells you where a point lies in space. In many cases you can do that without a command. Select the object, hover over a grip, look at the coordinate display in the bottom left corner. For this to work, the coordinate display can’t be frozen. If it is, double-click on it to free it up.

Five Simple Tips for AutoCAD

As my forced change to a different blog theme (thanks IE7) has meant the demise of my random AutoCAD tip feature, you may as well have the tips in a blog post instead. Here are the first five. These are fairly simple tips that apply to all recent releases. You probably know most of them, but just in case…

  1. If you need to draw circles, slots or rectangles around multiple text objects, use the Express Tools command TCIRCLE (Express > Text > Enclose Text with Object).
  2. When using the TRIM or EXTEND command, you don’t have to select any edges. Just hit Enter and AutoCAD will assume all of the visible objects are to be used.
  3. The TRIM or EXTEND commands can be used in place of each other by using the Shift key. When picking an object in TRIM, hold down Shift and the object will extend.
  4. The MULTIPLE command will force the next command you enter to repeat until you hit Esc. In CUI or menu macros, you can do something similar by starting the macro with *^C^C instead of just ^C^C.
  5. You can fillet or chamfer all vertices of a polyline at once. Use the FILLET or CHAMFER command’s Polyline option and pick just once instead of picking every corner twice.

That’s it for now, five more tips later.

Thinking of registering a domain name? Just do it!

If you are thinking of putting yourself or your company out there with your own domain name (e.g. cadnauseam.com), there are many, many sites out there that allow you to enter a domain name and see if it’s available. Don’t use them.

Why not? Because some of those sites will then immediately register that domain. You won’t be able to register it until that company decides to release it, which of course it will do if you choose to use that company’s overpriced domain registration services. This particularly unethical practice is known as domain tasting and is now the subject of a class action law suit.

It was the case that a domain registration company was legally entitled to hold a domain name for up to 5 days, before releasing it without any cost to itself: the 20c cost was refunded. Now that cost is set to become non-refundable, although there is some doubt as to exactly when this will take effect. When it does, that will put a big dent in this practice at the very least.

Even if domain tasting continues for the time being, there is no reason you have to become a victim of it. First, find a company that you trust that will register your domain for a reasonable cost, and which is prepared to give you complete ownership and control of the domain. There is no shortage of low-cost domain registration options out there, but check the fine print. I’m a very satisfied customer of Saratoga Hosting for both domain registration and web hosting services, and in the future I’ll go into more detail about exactly why that is.

Having found your trustworthy company, don’t bother with a special search. You could do a WhoIs search or just type your desired URL into your browser and see if it is already occupied, but you don’t even need to do that. Just go ahead and attempt to register the domain. If the name is available it will be yours.

AutoCAD tip – persuade Open to highlight your drawing

In AutoCAD, when you have a drawing open and you go to open another, does Open automatically scroll down and highlight your current drawing?

This can be very handy when you’re working your way though a set of drawings. If this isn’t happening for you, here’s how to make it do so.

In Explorer, go to Tools > Folder Options > View tab and turn off the toggle for Hide extensions for known file types. (Windows XP shown). This is the first thing many people do when setting up a new Windows system. If you fit into this category, you have probably never seen this problem yourself, but you may still be able to use this knowledge to help others.

blognauseam.com lives! Plus a web browser tip

I have registered the domain name blognauseam.com because:

a) it will stop anybody else grabbing it; and

b) it will make it easier for people to remember the URL if they don’t have me bookmarked.

No changes are required to your bookmarks or links, I just redirected blognauseam.com to blog.cadnauseam.com and will continue to use blog.cadnauseam.com.

That leads me to a web browser tip. I’m sure most of you already know this, but if one or two of you go “Ah! Cool…” then it was worth typing it up. When entering a .com URL, you can save time by just typing the main part of the domain name and hitting Ctrl+Enter. Your browser will then add the http://www. prefix and .com suffix for you.

Putting the two parts of this post together, that means you can type blognauseam into your browser, hit Ctrl+Enter and you should end up right here where you started.