In my previous article Parameters in RevitApi I used the get_Parameter method which is obsolete since RevitAPI 2015. I am referrencing Revit2018 and the methods are not removed, maybe there are still present for compatibility reasons or maybe they plan to remove the in the future:
In the documentation now we have LookupParameter but this only looks for parameters by name. And we need to be able to get some built in parameters using the enumeration BuiltInParameter
The solution is quite simple, we just have to iterate over the parameters (using the Enumerator) and check for an InternalDefiniton: