Having a choice of which macro automatically runs as soon as dcad opens

Started by Lar, March 12, 2014, 05:12:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Lar

Here's another trick for you guys to confirm but I can repeat it on my machine. This would only work for those guys wanting a macro to run as soon as dcad opens and only works in win-7 and 8.

First you have to setup by running your macro from within dcad on a test file but you must use either the menu or the shortcut for the 'macro execute...' command (Tools menu, or % key {ie, shift+5 key}). Once the macro runs you can let it run it course or abort it. Now check your task bar at the bottom of the screen (the one with icons of all the running programs). In win-7/8 if you right click an icon in the task bar there is an option to 'pin' the program to the task bar. Do this with the dcad icon. This allows a number of things but two things we are interested in: 1] you can just click the pinned icon to start dcad and 2] if you right click the icon you will get a pop up menu of recent projects. You can also pin any of these to this menu so they are always there (once pinned you get the option to 'un-pin'). You can start dcad with a projects by clicking its name in this icon menu (similar to double clicking a dcad project in windows explorer). If dcad is already running you can open a new project this way.

Now here's the trick: it so happens that macros that were called up via dcad's menu or the shortcut will also appear on this icon menu, and you can pin them as well. Thing is, if you click a macro name with dcad NOT running it will start dcad, open a new project, then run the macro!!. Such a macro will usually be used to set up layers, colors, linestyles, hatches and other configuration stuff. But macros can also be used to open files so if you have a resource file (one with normal stuff like doors, windows, blocks and symbols that you use often) the macro can open that up as well. The possibilities are pretty extensive. One good thing is you can pin a variety of configuration macros and choose which one to run automatically when dcad opens (only one at a time, though).

The not-too-good news is that once dcad is running clicking a macro in the icon menu will open a new file with the macro name and this is not much use to anyone. I wish it would run the macro, then I would have another quick access to choice macros.

Lar