I have this part of the code:
FamilySymbol fs = list[0].ObjectType as FamilySymbol;
which is throwing a warning in my compiler saying
[Warning 2 'Autodesk.Revit.DB.Element.ObjectType' is obsolete: 'Use Element.GetTypeId() and Element.ChangeTypeId() instead.' G:\ProjectX\Tool\FormPanelArea.cs 166 28 ProjectX]...
This is a project C# file that I got from the SDK samples [[…\Revit2011SDK\Software Development Kit\Samples\Massing\MeasurePanelArea\]
I am wondering if the warning message is showing up because there are changes in API from revit 2010 to 2011.
Thank you