PPT_LOGO_4b
Revit Programming Introduction <#>
Copyright © 2009 Autodesk Inc.
組み込みパラメーターへのアクセス
»' 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
パラメーター
lab4-1-2
ビルドインパラメータの使用例になります。先程も申しましたがRvtMgdDbgのBuilt-in Enums Snoop...やBuilt-in Enums Map...ボタンを使用しビルドインパラメーターを調べて下さい。
IDが予め判っていれば、直接パラメータを取得可能になります。