http://www.charlesandhudson.com/archives/hand-tools-list-important.jpgPPT_LOGO_4b
‹#›
Autodesk Developer Network, April 2010
The Rice – New classes for XYZ, UV, ElementId
•Autodesk.Revit.DB.XYZ
•Autodesk.Revit.DB.UV
•Autodesk.Revit.DB.ElementId
§Implemented in managed code
§Suitable for properties.
§API methods have been converted to accept and return these types
§Methods now take .NET collections interfaces containing these types (instead of Revit collections):
§Autodesk.Revit.ElementIdSet -> ICollection<Autodesk.Revit.DB.ElementId>
§Autodesk.Revit.Geometry.XYZArray -> IList<Autodesk.Revit.DB.XYZ>
§Autodesk.Revit.Geometry.UVArray -> IList<Autodesk.Revit.DB.UV>
§ElementId is now a class instead of a struct and should not be passed by reference.
•
C:\Documents and Settings\walmslk\Local Settings\Temporary Internet Files\Content.IE5\EARWAUQM\MPj04096740000[1].jpg
These all new classes are directly implemented in Managed code and so the performance, firstly, should vastly improve.

They are also immutable and thus should be more suitable for use as properties.

With ElementId, methods now can accept and return them and methods have been modified to accept .NET collections. And ElementId is now a class instead of struct and this might need to be updated in your applications. And this also implies that we can no longer pass this as reference.