»' If we know WHICH param we are looking for, then:
»' A) a standard parameter,
can be got via BuiltInParam
signature of Parameter method:
»Dim parInBuilt As Parameter
»Try
»
parInBuilt = elem.Parameter(BuiltInParameter.FAMILY_BASE_LEVEL_OFFSET_PARAM)
» If Not parInBuilt Is Nothing Then
» Dim
parInBuiltName As String =
parInBuilt.Definition.Name
» Dim
parInBuiltType As String =
LabUtils.GetParamStorageType(parInBuilt).ToString
» Dim
parInBuiltValue As String =
LabUtils.GetParamAsString(parInBuilt)
»
MsgBox("FAMILY_BASE_LEVEL_OFFSET_PARAM: Name=" &
parInBuiltName _
»
& ";
Type=" & parInBuiltType & "; Value=" &
parInBuiltValue)
» Else
»
MsgBox("FAMILY_BASE_LEVEL_OFFSET_PARAM is NOT available for this
element")
» End If
»Catch
» MsgBox("FAMILY_BASE_LEVEL_OFFSET_PARAM
is NOT available for this element")
»End Try