DynamoDS/Dynamo — pull request #2958 by Randy-Ma (2014-11-04 08:01:16+00:00)
Title: Fix MAGN-5171 Update Depracated Revit APIs

Summary

There are a bunch of Revit APIs which are obsolete in Revit 2015 and the use of these APIs causes a lot of warning when the project is built.

These APIs include:
Document.NewViewDrafting()
Element.get_Parameter()
Family.Symbols
ViewSheet.Views
Selection.Elements

It is better to use newer APIs. So this pull request is making changes:
Use ViewDrafting.Create() instead of Document.NewViewDrafting()
Use Element.LookupParameter() instead of Element.get_Parameter()
Use Family.GetFamilySymbolIds() instead of Family.Symbols
Use ViewSheet.GetAllPlacedViews() instead of ViewSheet.Views
Use Selection.SetElementIds() instead of Selection.Clear()

When the new APIs are used, some corresponding changes are made so that they can call correctly.

@ikeough
PTAL