© 2010 Autodesk
Introduction to Revit 2011 API
DB Element
Element.Parameter and Built-In Parameters   
§ABC
§
<VB.NET>
    ''  examples of retrieving a specific parameter individlly. 
    Public Sub RetrieveParameter(ByVal elem As Element, _
                                 Optional ByVal header As String = "")
 
        Dim s As String = header + vbCr + vbCr
        ''  comments - most of instance has this parameter
        ''  (1) by name.  (Mark - most of instance has this parameter.)
        param = elem.Parameter("Mark")
        ...
        ''  (2) by BuiltInParameter.
        Dim param As Parameter = _
            elem.Parameter(BuiltInParameter.ALL_MODEL_INSTANCE_COMMENTS)
        ...
        ''  using the BuiltInParameter, you can sometimes access one
        ''  that is not in the parameters set.
        param = elem.Parameter(BuiltInParameter.SYMBOL_FAMILY_AND_TYPE_NAMES_PARAM)
        ...
        param = elem.Parameter(BuiltInParameter.SYMBOL_FAMILY_NAME_PARAM)
        ...
</VB.NET>