Add-in program update from 2009 API to 2012 API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am updating an external function (add-in) using in Revit 2009 to 2012. After I have copied the new RevitAPI.dll and RevitAPIUI.dll into my solution, I find that many functions belong to different library with comparing in 2009 API.
I spend some time to resolve the library of the function, for example (If I am wrong please tell me, thank you
😞
Autodesk.Revit.IExternalCommand => Autodesk.Revit.UI.IExternalCommand
Autodesk.Revit.IExternalCommand.Result => Autodesk.Revit.UI.Result
Autodesk.Revit.ElementSet => Autodesk.Revit.DB.ElementSet
Autodesk.Revit.Document => Autodesk.Revit.DB.Document
Autodesk.Revit.Elements.ExternalCommandData => Autodesk.Revit.DB.ExternalCommandData
etc...
But there are some functions I cannot find its new library, please tell me how to update them, thank you.
The unchanged part is:
Autodesk.Revit.Filter filter;
Autodesk.Revit.Creation.Application create;
create = cmdData.Application.Create;
filter = create.Filter.NewTypeFilter(typeof(Grid));
Thanks a lot,
Kevin