C# Class Revit.SDK.Samples.AreaReinCurve.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

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