Monday, March 29, 2010

Revit 2009 UI revisited - for those with tough firewalls

I was working with a client today who was struggling with the move from Revit Architecture 2009 to 2010. With the imminent release of Revit 2011, I recommended that they download the zip file Gregory Arkin had made available at This way they could happily avoid the 2010 Ribbon and learn the Ribbon when they moved to the improved 2011 version.

Since I knew them to have a restrictive firewall, I renamed the zip file to a text file and emailed it on over. In response, I received a warning email regarding viruses based on a zero tolerance email sniffer attached to their firewall. Since I knew all the file renameing was going to be a problem, I came up with the following solution.


This text file can be downloaded, renamed as a zip file and then extracted to the correct location ("c:\Program Files\Autodesk Revit Architecture 2010\Program"). Once the files have been extracted to this folder do the following:

1. Rename the file "_Rename_and_Run_Me.txt" to Rename.bat
2. Double click on Rename.bat to automatically rename all the files to their original names.
3. Now follow the original instructions regarding copying the shortcuts to your desktop.

Thanks Gregory for the files, hopes this helps someone else.

Labels: , , , , ,

Tuesday, September 23, 2008

Other Modemacro goodies

The recent LT Unlimited blog article by Kate Morrical titled: "Customize the Status Bar with MODEMACRO" reminded me of some customization I recently wrote. I received a call from a remote architect who needed some assistance with Linetypes. She was concerned that when switching from model to paperspace her linetypes weren't always displaying correctly.

I explained that she should be adjusting her ltscale variables in order to see the linetypes when in modelspace. She wished for an "automatic solution". So I wrote a quick macro, using VBA, to automatically set the correct lt and psltscale values based on the current value of dimscale. I tied the macro to the AcadDocument_LayoutSwitched event so that whenever she switched layouts, the macro would update the values.

To provide graphic feedback that this system was working I chose to use the MODEMACRO system variable. Here is the macro in action with visual feedback occuring on the status bar.

Here is the code from the vba macro that sets the MODEMACRO variable. You can see from the code snippet below, that I am displaying the current value of the MEASUREMENT, DIMSCALE, LTSCALE, and PSLTSCALE variables.

ThisDrawing.SetVariable "modemacro", "WB_STATUS- UNITS: $(IF, $(=,

Labels: , , ,