You are currently reviewing an older revision of this page.
Is your MicroStation desktop cluttered with toolframes and toolbars? Are you sacrificing precious desktop real estate because “You just gotta have that icon”? If so, then read this article by Seth Cohen from Rowse Company and learn how creating multiple AccuDraw shortcut files will let you reclaim your desktop!
With thanks to Mr. Seth Cohen, of Rowse Company, for contributing this article on maximizing your productivity with AccuDraw's shortcuts. It's a wonderful companion article to Doug Watt's two part series on Command Aliasing: Part 1 , Part 2
What is AccuDraw? According to the MicroStation/J help, “AccuDraw is a drafting aid that evaluates such parameters as your current pointer location, the previously entered data point, the last coordinate directive, the current tool's needs, and any directive you have entered via either keyboard shortcuts or AccuDraw options. AccuDraw then generates the appropriate precision coordinates and applies them to the active tool”. The topic that we will be discussing is AccuDraw shortcuts.
The functionality of AccuDraw shortcuts is to run MicroStation key-in commands. This is accomplished by the user creating a shortcut to a desired key-in by associating two alphanumeric characters to that key-in.
Here is an example of how to create an AccuDraw shortcut, how they can make drafting more efficient, and increase your MicroStation desktop.
Wouldn't it be nice if...you could turn off the display of, let's say, 150 reference files without having to:
For the shortcut that turns on all reference files, click the New button again and enter the following information in the New Shortcut dialog: Shortcut – R1 ,Description – All ref's display on ,Command – REFERENCE DISPLAY ON ALL;UPDATE ALLThat's it! Now, when you want all 150 reference files turned OFF or ON, type R0 or R1.
June 2003: Rick Bowden offers this tip: Rather than having two shortcuts to do this why not create one as a toggle? I tried it and it works quite well. Here's what it looks like "reference display toggle all;update all" and assigned RT as the key-in. Each time you use the key-in it toggles the reference file on or off depending on their present status.
Here are a couple of tips on using AccuDraw's shortcuts:
Hey Seth, What about function keys?
Now you might be saying “Why should I use AccuDraw? I could use function keys!” Well one major advantage of AccuDraw shortcuts is that you can make shortcuts that make sense. Unlike using Function Keys (F1, F2, Alt + Ctrl + F1, etc.) AccuDraw shortcuts can “sound” like the key-ins they are created for. For example the Copy command could be CO, the Rotate command could be RO and so forth. Plus, you'll save a ton of finger energy not having to activate the Alt + Ctrl + Shift + F8 function key.
Limitation of AccuDraw shortcuts
This is not to say that using AccuDraw shortcuts does not have its limitations as well. One limitation is that there is no way to have single letter and two letter shortcuts that begin with the same letter. In other words, you can't have a shortcut Z and another that's ZW. Another one of AccuDraw's limitations is that you can only have up to two-character shortcuts. This limitation can be very frustrating when developing a list of shortcuts meant to improve your productivity. For instance, let's say you wanted to create a shortcut for the Copy command that activates the keyin COPY EXTENDED. The obvious two-letter shortcut would be CO, but what if CO was already assigned to another keyin? And CP? And CY? There is no way to get by this limitation of AccuDraw's functionality....until now.
Mulitple AccuDraw Shortcut Files
This brings us to the main subject of this article. How can we allow MicroStation to use more than two characters for shortcuts? The answer is simple. We can create a MicroStation BASIC macro that acts like a switch, and loads another AccuDraw shortcut file for you. With help from a former colleague, David Munro, P.E., a Project Engineer at CLD Consulting Engineers Inc. in Manchester NH, we created such a macro. Our macro consists of 9 simple lines of code that have been numbered for your reference:
You don't have to be a programmer to understand how the BASIC program is working. Here is a breakdown of the code. Of course, if you don't care to know, feel free to skip to this section.
Lines 1, 2 and 3 define variables.
Line 4 is very important for certain shortcuts. Essentially, the command No Echo tells MicroStation not to display messages such as MACRO [macro file]LOADED in the right side of the status bar. By disabling the messages from appearing, the user will still be able to view the current snap mode, selection set count, and so on.
In Line 5, Command$ is a MicroStation BASIC command that returns a string representing the argument from the command line used to start the macro. In other words, any text entered after the key-in MACRO [macro file] will get sent to the Command$ string variable, which I have equated to fileName.
Here is an example:
Shortcut = C1
Key-in = MACRO SHORTCUT COLORS
This key-in runs the macro shortcut.ba and passes COLORS to Command$. The macro then takes COLORS and stores it in the variable cmd.
In Line 6, we define the variable strTemp to equal the path (default) of the shortcut files, and we append ( & ) the contents of the strTemp variable with a TXT extension. The TXT extension is added so we don't have to type .txt in every AccuDraw shortcut that we use to call another file.
Line 7 re-defines the value of the MS_ACCUDRAWKEYS variable to equal strTemp.
Then in Line 8, we send a command to MicroStation followed by Line 9 which re-initializes the message display in the status bar with the key-in ECHO.
Getting the files in the right place
Now we need to look at where to put our AccuDraw shortcut file. A few questions need to be answered first:
Network Setup using Roaming Profiles and the Master Shortcut File (preferred setup):
This setup requires that you create and store the AccuDraw shortcut files in the user's roaming profile. This is a great way to allow each user at your site to maintain/create their own shortcut files. This way, each user will create/assign shortcuts that make sense to them. Additionally, the user can log onto any machine in the network (with MicroStation loaded on the machine) and use their shortcut files.
The following is a list of items that will need to be changed/edited:
Local Setup and The Master Shortcut File (using MicroStation “out of the box”:
The local setup is the easiest of all. The only requirements are:
Note that all the shortcuts contain the key-in MACRO SHORTCUT SHORTCUT along with the desired shortcut. Additionally, the ZZ shortcut serves as an, oops, I pressed the wrong buttons shortcut, that restores you to the master shortcut file.
How do I find those key-ins?
So, how do you find out all those key-ins? Well, you could look at Inga's list of MicroStation J keyins, record a macro, dig behind the scenes in Workspace > Customize or use an MDL utility called ALTKEYIN. ALTKEYIN extracts any MicroStation key-in that you invoke by clicking on an item from the pull-down menus or from clicking an icon on a toolbox. It then grabs the key-in and populates the AltKey-In shown below:
To copy the key-in from the AltKey-In window:
Reasons to try AccuDraw:
Implementing AccuDraw shortcuts at your site can increase your productivity two-fold. I will explain this statement with a real life example. Prior to working with Rowse Company, I was a Highway Design Technician / MicroStation & InRoads Coordinator, supporting Engineers and Technicians with drafting and minor engineering tasks. My primary work involved Design for the Vermont Agency of Transportation (VTrans), New Hampshire Department of Transportation (NHDOT) and Maine Department of Transportation (MDOT).
One of the tasks involved with Highway design is making revisions to a set of Roadway Plans that an Engineer would mark up (lot's of red ink). Although user might find this task tedious and boring, I loved performing this task as it involved (for me) the use of AccuDraw shortcuts. I would challenge myself to create as many shortcuts that I needed without using any pull-downs or icons. This is of course why my Master Shortcut file contains approximately 150 shortcuts.
One day, I decided to see if spending all this time creating these shortcuts was truly making me more productive, and wasn't wasting company time. My test was to take a part of a set of plan sheets, time myself and perform all the edits without using any AccuDraw shortcuts (i.e. using pull-downs and icons only). Then, do the same edits using my AccuDraw shortcuts. I performed these edits on the Typical Sections Sheets. Typical sections are a set of plan sheets that show the cross sectional view of the designed roadway at major changes. Here are the results of this test:
Typical Sections with pull-downs and icons only – 1.5 hours
Typical Sections using AccuDraw shortcuts only – 45 minutes
As you can see from this test, using AccuDraw shortcuts increased my productivity two-fold!
Am I saying that you too can increase your productivity two-fold? Maybe not. What I am saying is to give AccuDraw shortcuts a try and you too will reap the benefits from one of MicroStation's best tools. Also, I am providing (free of charge) all my AccuDraw shortcut files and the macro used to switch between shortcut files in a convenient ZIP file. These shortcuts are over 7 years in the making, in 13 different shortcut files, and total more than 350 shortcuts in all! Simply e-mail firstname.lastname@example.org and we will send you the file, or download them from Inga's website.
Take back your MicroStation desktop and increase your drafting productivity today, with the use of multiple AccuDraw shortcut files!