Thursday, February 5, 2009

Streamlining Local File Creation – update (x64)

The script has been updated to work with the following combinations:

  1. 32 bit Revit on a 32 bit OS
  2. 64 bit Revit on a 64 bit OS

It will look for an installation in the folder Program Files, so if you changed the install location, it won’t work. The previous script was a bit more flexible and automatically retrieved the custom folder that you might have used as your program installation folder. However on a 64 bit OS, the parameter is retrieving the Program Files (x86) folder, which is not the correct location for the 64 bit install. Because of this, I just hard-coded the folder into the script in lieu of the parameter.

You can download the zip containing the documentation, AHK script, the compiled executable and icon from this AUGI thread (first post with version history). Enjoy!



cmeadows said...


thanks for doing this it is really helpful. (also I attended your Revit session at AU...very nice.) Quick questions. I would like to see if there is some warning functionality that checks to see if it is infact a central file. We ran into an issue where the file was not a workshared project, people though it was, and it made a local copy and it was not noticed that it was only saving it to the C: drive not the network location. Thatnks...otherwise a wonderful little script.

Dave Baldacchino said...

Hi, glad you find the script useful and that you enjoyed the class :)

Unfortunately there's no easy, sure way to find whether a file is workshared or not. However, if you run this script on a non-workshared file, the splash screen that the script creates (with that little bar going up and down, Knight-Rider style!) won't go away. That's a telltale sign that the file is not workshared. The script icon stays running in the task bar too. If the file was a real central, both of them would disappear.

The only thing I could implement is to check whether there is a backup folder with the same name as the copied central file. That could indicate that it is in fact workshared. I'm sloooowly working on a new version of this script with a Graphical User Interface and a centralized application, instead of copying a new instance to each central file folder. You'll have control over using the GUI or the quick shortcut (my favorite) but it will create the shortcut for you this time, so it'll be easier to implement. I'll try to add the central file check too. Can't promise when I'll actually get to it but I'll try!

Also, you'll want to take a look at some new functionality in Revit 2010 ;) Although personally I'm still going to use a script.

Post a Comment