C# Class Revit.SDK.Samples.AreaReinParameters.CS.ParameterUtil

contain utility methods find or set certain parameter
ファイルを表示 Open project: AMEE/revit

Public Methods

Method Description
FindParaByName ( ParameterSet paras, string name ) : Parameter

find certain parameter in a set

SetParaInt ( Element elem, BuiltInParameter paraIndex, int value ) : bool

set certain parameter of given element to int value

SetParaInt ( Element elem, string paraName, int value ) : bool

find certain parameter in a set

SetParaNullId ( Parameter para ) : bool

set certain parameter of given element to int value

Private Methods

Method Description
ParameterUtil ( ) : System

Method Details

FindParaByName() public static method

find certain parameter in a set
public static FindParaByName ( ParameterSet paras, string name ) : Parameter
paras ParameterSet
name string find by name
return Parameter

SetParaInt() public static method

set certain parameter of given element to int value
public static SetParaInt ( Element elem, BuiltInParameter paraIndex, int value ) : bool
elem Element given element
paraIndex BuiltInParameter BuiltInParameter
value int
return bool

SetParaInt() public static method

find certain parameter in a set
public static SetParaInt ( Element elem, string paraName, int value ) : bool
elem Element
paraName string
value int
return bool

SetParaNullId() public static method

set certain parameter of given element to int value
public static SetParaNullId ( Parameter para ) : bool
para Parameter
return bool