Product and Add-In Wizard Updates

Here are several interesting updates and other little news items that appeared recently.

Revit 2012 Update Release 2

A few days ago, I was very surprised to hear that some people neglect to update their Revit products when intermediate updates appear. I find that incomprehensible. I updated all three flavours myself yesterday with zero hassle.

Revit 2012 Update Release 1 was published back in June 2011 and also included a slightly updated Revit SDK.

Revit 2012 Update Release 2 is now available and can be downloaded from the public Revit product pages:

Please refer to the links above to read the separate lists of all the platform and product enhancements for Architecture, MEP and Structure.

Besides that, here are the API Enhancements made in this update, which are obviously shared across all flavours, since the Revit API is identical for all:

I highly recommend installing these updates.

Visual Studio Revit Add-in Wizard Update

A while back, I updated my Visual Studio Revit add-in wizards to support the Revit 2012 API. For the full description of these wizards, please refer to the previous posts:

Now another issue gradually emerged which prompted me to revisit them once again:

When creating little sample projects, I have so far always left the resulting assembly DLLs in the Visual Studio bin/debug directory where they are created, and specified the full path to that location in the add-in manifest Assembly tag. For distributing projects, or moving them around, this is cumbersome, since the path always needs updating in the add-in manifest. Since the add-in manifest has to be copied to the Revit add-ins folder anyway, there is a pretty obvious and much more robust solution: simply copy the assembly DLL to the same location as the add-in manifest, and no path needs to be specified at all.

This led me to make appropriate changes to the C# add-in wizard for my own use. Besides that, I also changed some of the file encodings:

To install, simply copy the desired zip file to the appropriate location in your local file system:

Which version of the wizard to use is actually a question of personal preference. The previous one avoids the overhead of creating a copy of the add-in assembly DLL together with the add-in manifest in the Revit add-ins folder, and uses the original copy in its original build location instead, which is good. On the other hand, it explicitly adds the full path of the build location to the add-in manifest, which makes it more of a hassle to move the add-in to a different location. I would say that the new one is better if you plan to share the add-in with others, and the old one has a slight advantage for purely personal, one-time use.

Removing an Add-In Registered by the Wizard

This ties in neatly with an issue that was raised by bthatcher in the Autodesk Revit API discussion group on removing an add-In registered by the wizard:

Question: I have a project in the '...\Visual Studio 2010\Projects\...' directory and I have that path in the add-in file. But I'm getting an error about '...does not exist'. I have copied and pasted that path and DLL name into the add-in file, just like I always do, but for some reason it's still looking for it in the wrong place. I started the project from a template I downloaded.

Finally, I removed all add-ins from the add-in folder and uninstalled and reinstalled Revit. I'm still getting the error "External Tools - Add-in Assembly Not Found". I created two projects with this template. The included add-in file had both Command and Application placeholders. So I'm getting four errors, a command and application error for each project.

Answer:

The only thing that can cause a Revit add-in to be loaded, or searched for to cause that message to appear, is an add-in manifest in one of the two locations checked by Revit, for all users or a specific user. These locations again depend on the OS, whether Vista or XP, so you end up with four possible locations to check. They are listed in the Revit SDK developer guide:

For Windows XP:

C:\Documents and Settings\\Application Data\Autodesk\Revit\Addins\2012

or

C:\Documents and Settings\All Users\Application Data\Autodesk\Revit\Addins\2012

For Vista/Windows 7:

C:\Users\\AppData\Roaming\Autodesk\Revit\Addins\2012

or

C:\ProgramData\Autodesk\Revit\Addins\2012ÿ

If you have deleted all files in those two directories, the error cannot appear.

If the add-in manifest was placed there by the Visual Studio Revit add-In wizard, then you can also simply open that project in Visual Studio and select Build > Clean Solution to remove it again.

Global Leadership Summit at the One Team Conference

Of less interest to developers, but all the more so to leaders and visionaries, the 2012 incarnation of the Autodesk One Team Conference is scheduled for March next year, OTC 2012. At that event, on Thursday, March 15 2012, we are hosting the first ever Global Leadership Summit where senior leaders of Autodesk partners will explore as a group how to develop higher-performance within their organizations. The summit consists of three tracks focused on Marketing, Sales Management and Consulting. Participants will be asked to select a track and attend the track for the entire day. If you are interested, please take a brief survey to help identify the top challenges in each track early on: