Sunday, October 02, 2011

Dear Lazy Drafter #4 - Revenge by Hasselhoff

I often get asked for CAD advice and I might have an idea about what to do. Then again, I often have stupid ideas too. Oh well, if you are seeking CAD advice, and don't care who you get it from, drop me a line at I'll do my best not to make you feel worse.

Dear Lazy Drafter,

Long story short, I have a classmate who crossed boundaries and lacks common decency. I've written a nice macro that I would like to share but don't know how to incorporate it into ACAD yet. The best thing I've heard people talk about redefining commands. Was thinking the "Plot" command would be perfect it's just the matter of HOW to do it. Most all of this is above my skill level right now. Any assistance would be appreciated.

Before you freak out, I've put in a few safety features where their previous work wont be touched. It HIDES previous work. Marks an UNDO
point. Creates a new layer, inserts a nice photo of David Hasselhoff with puppies. Locks that layer. Zoom Extents. and a random Hoff fanclub site opens in the browser.

Revenge by Hasselhoff

Dear Revenge by Hasselhoff,

You are a genius. it doesn't matter if your classmate is up for an international humanitarian award, giving someone the "Hasselhoff" is too good to pass up. Here's how to do it. Instead of redefining a command like plot, just incorporate you macro into a lisp. (For more on Lisp see my post on Basic Lisp). This lisp can be placed into your classmate's startup suite. From there, use the aliasedit command to associate the lisp with a quick key-in like "L" which will normally start the line command.

If your target never uses any key-ins, you can use the Custom User Interface (CUI command) to change any thing on the ribbon to Revenge by Hasselhoff.
Post a Comment