Lots of really important news coming in right now, both because the mid-year updates of the Revit family products are now available and because we just released the
Revit 2011 DevTV recordings that we are so excited about.
Similar to last year, Autodesk provides two types of mid-year updates to Revit:
Unlike the public web updates, the Revit 2011 subscription releases are available only for
subscription customers.
Updated SDK
Both the web update and the subscription releases include a number of API enhancements.
Last year, there were separate sets of updated SDKs for the WU2 and subscription release.
This year, Autodesk provides one single updated SDK.
Certain features are available only in the subscription release.
They are clearly marked in the API reference documentation.
The updated SDK has been posted to the
Revit Developer Center.
Here is a direct link as well, for your convenience:
Family Type count using the API is inconsistent with UI (192889)
New Features
In addition to the enhancements listed above, it includes the following new API features:
Conceptual Energy Analysis API (Subscription only)
City Time Zone
Document Preview
Conceptual Energy Analysis API
Conceptual Energy Analysis API is a major enhancement to the Revit API. This feature will be functional only in sessions with licensed access to the Revit 2011 Subscription Advantage Pack. The following classes are added in the Autodesk.Revit.DB.Analysis namespace and provide access to the elements and objects created by Revit to perform energy analyses on conceptual design models:
ConceptualConstructionType
ConceptualSurfaceType
MassEnergyAnalyticalModel
MassLevelData
MassSurfaceData
MassZone
The following method supports the export of a gbXML file containing conceptual energy analysis elements (mass elements) only.
The following new static method provides direct access to the results of a time zone calculation for a given longitude and latitude:
SunAndShadowSettings.CalculateTimeZone()
The City class has been adjusted to return more accurate TimeZone values than in the previous implementation.
Note that the properties, SiteLocation.Latitude and SiteLocation.Longitude, do not adjust the time zone of the site location according to these calculations. But you can make this change directly by setting the TimeZone property.
Document Preview
The following new methods are added to allow you to access the settings related to the stored document preview image for a given document:
Document.GetDocumentPreviewSettings � this returns a DocumentPreviewSettings object
DocumentPreviewSettings.PreviewViewId - the id of the view to use for the preview
DocumentPreviewSettings.ForceViewUpdate() - sets the document to update the view before saving (useful when the document is never displayed)
The following code snippet shows a sample use of the enhancement described above: