Tag Archives: Tip

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 – 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 – 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.