My Self . . .

My photo
India
Im Simple..I love makin frnds nd believe deeply in frndship nd love nd all the gud things...i want to make this world more b'ful..bt dnt knw how ?...

Thursday, July 14, 2011

What’s New in the Revit 2011 API: New Deployment Methods

Deploying commands and applications in Revit up until now has required a mental visit back to the 90’s… You had to create or edit sections within the Revit.INI file – keywords and values (and ugly ones at that). And developing installers which would programmatically add and remove things? Ugh!
Autodesk has heard and finally answered the call on this issue – new in 2011 are XML-based “add-in” files. These new files (typically one for each program) also address some of the issues with permissions – particularly in Vista and Windows 7:
The locations are:

• For “All Users”:
o Windows XP: C:\Documents and Settings\All Users\Application Data\Autodesk\Revit\Addins\2011\
o Windows Vista/Windows 7: C:\ProgramData\Autodesk\Revit\Addins\2011\
• For “User-Specific”:
o Windows XP: C:\Documents and Settings\\Application Data\Autodesk\Revit\Addins\2011\
o Windows Vista/Windows 7: C:\Users\\AppData\Roaming\Autodesk\Revit\Addins\2011\

For .NET programmers, I would recommend using the Environment.GetFolder() method, where you can specify:

• All Users: Environment.SpecialFolder.CommonApplicationData
• Current User: Environment.SpecialFolder.ApplicationData

A basic Command sample might look like:




C:\MyDirectory\MyCommand.DLL
64end01a-5d66-4243-b4544-31429ecae9ed
Avatech.RoomRenumber
Room Renumber
NotVisibleInFamily
NotVisibleInMEP




I’ll write more about some of the capabilities implied here – but as you can see it represents a big step forward versus the REVIT.INI file (which still works).
More Deployment Help Still… For Installers.
As mentioned above – writing installers for Revit in the olden-days was no picnic. While it’s no picnic in 2011, beyond the new file format, Autodesk has also provided an all-new redistributable DLL – specifically to help developers do installations in .NET.

The “RevitAddInUtility.DLL” can:

1. Provide you information about which versions of Revit 2011 are installed (no much reverse engineering 6+ uninstall registry keys!).
2. Get all existing addins, and manifest.
All in all, there are a variety of new features, capabilities and tools which bring more power and professionalism to Revit AddIn deployment in 2011.

No comments:

Post a Comment