If you are upgrading Macros, some file management may be required to update and operate macros correctly in Revit.
Be sure to familiarize yourself with changes in the Revit Software Development Kit (SDK) and the following macros upgrade information.
Upgrading Document-Level Macros
No further steps are required unless the macro code needs to be manually edited.
Upgrading Application-Level Macros
Prior to Revit 2015, macros were located in either %ProgramFiles%\Autodesk\<product name and release>\VstaMacros\AppHookup or %ProgramData%\Autodesk\Revit\Macros\<product release>\Revit\VstaMacros\AppHookup.
The code in projects may need to be manually modified in order to successfully build and run the macros in Autodesk Revit 2015. Consult the SDK for the list of changes to the API in order to address any version compatibility issues.
In Autodesk Revit 2015, the Revit VSTA IDE was replaced with SharpDevelop. This will not change anything significant in the macro development workflow. The generated classes in the *.desinger.cs(vb) file are automatically updated. However, if you used the following classes in files other than the SDK samples, you need to manually update them as follows.
SharpDevelop classes (old) | SharpDevelop classes (new) |
---|---|
Autodesk.Revit.UI.Macros.ApplicationEntryPoint |
Autodesk.Revit.UI.Macros.ApplicationEntryPoint |
Autodesk.Revit.UI.Macros.DocumentEntryPoint |
Autodesk.Revit.UI.Macros.DocumentEntryPoint |
Autodesk.Revit.UI.Macros.IEntryPoint |
Autodesk.Revit.DB.Macros.IEntryPoint |
Autodesk.Revit.UI.Macros.AddInIdAttribute |
Autodesk.Revit.DB.Macros.AddInIdAttribute |
Autodesk.Revit.UI.Macros.VendorIdAttribute |
Autodesk.Revit.DB.Macros.VendorIdAttribute |