C# Класс Revit.SDK.Samples.Reinforcement.CS.ParameterUtil

contain utility methods find or set certain parameter
Показать файл Открыть проект

Открытые методы

Метод Описание
FindParameter ( ParameterSet parameters, string name ) : Parameter

find a parameter according to the parameter's name

SetParaNullId ( Parameter parameter ) : bool

set null id to a parameter

SetParameter ( Element element, BuiltInParameter paraIndex, Autodesk &value ) : bool

find a parameter according to the parameter's name

SetParameter ( Element element, BuiltInParameter paraIndex, double value ) : bool

find a parameter according to the parameter's name

SetParameter ( Element element, BuiltInParameter paraIndex, int value ) : bool

set certain parameter of given element to int value

SetParameter ( Element element, BuiltInParameter paraIndex, string value ) : bool

find a parameter according to the parameter's name

SetParameter ( Element element, string parameterName, Autodesk &value ) : bool

find a parameter according to the parameter's name

SetParameter ( Element element, string parameterName, double value ) : bool

find a parameter according to the parameter's name

SetParameter ( Element element, string parameterName, int value ) : bool

find a parameter according to the parameter's name

SetParameter ( Element element, string parameterName, string value ) : bool

find a parameter according to the parameter's name

Описание методов

FindParameter() публичный статический Метод

find a parameter according to the parameter's name
public static FindParameter ( ParameterSet parameters, string name ) : Parameter
parameters ParameterSet parameter set
name string parameter name
Результат Parameter

SetParaNullId() публичный статический Метод

set null id to a parameter
public static SetParaNullId ( Parameter parameter ) : bool
parameter Parameter the parameter which wanted to change the value
Результат bool

SetParameter() публичный статический Метод

find a parameter according to the parameter's name
public static SetParameter ( Element element, BuiltInParameter paraIndex, Autodesk &value ) : bool
element Element the host object of the parameter
paraIndex BuiltInParameter parameter index
value Autodesk the value of the parameter with Autodesk.Revit.DB.ElementId type
Результат bool

SetParameter() публичный статический Метод

find a parameter according to the parameter's name
public static SetParameter ( Element element, BuiltInParameter paraIndex, double value ) : bool
element Element the host object of the parameter
paraIndex BuiltInParameter parameter index
value double the value of the parameter with double type
Результат bool

SetParameter() публичный статический Метод

set certain parameter of given element to int value
public static SetParameter ( Element element, BuiltInParameter paraIndex, int value ) : bool
element Element given element
paraIndex BuiltInParameter BuiltInParameter
value int the value of the parameter with integer type
Результат bool

SetParameter() публичный статический Метод

find a parameter according to the parameter's name
public static SetParameter ( Element element, BuiltInParameter paraIndex, string value ) : bool
element Element the host object of the parameter
paraIndex BuiltInParameter parameter index
value string the value of the parameter with string type
Результат bool

SetParameter() публичный статический Метод

find a parameter according to the parameter's name
public static SetParameter ( Element element, string parameterName, Autodesk &value ) : bool
element Element the host object of the parameter
parameterName string parameter name
value Autodesk the value of the parameter with Autodesk.Revit.DB.ElementId type
Результат bool

SetParameter() публичный статический Метод

find a parameter according to the parameter's name
public static SetParameter ( Element element, string parameterName, double value ) : bool
element Element the host object of the parameter
parameterName string parameter name
value double the value of the parameter with double type
Результат bool

SetParameter() публичный статический Метод

find a parameter according to the parameter's name
public static SetParameter ( Element element, string parameterName, int value ) : bool
element Element the host object of the parameter
parameterName string parameter name
value int the value of the parameter with integer type
Результат bool

SetParameter() публичный статический Метод

find a parameter according to the parameter's name
public static SetParameter ( Element element, string parameterName, string value ) : bool
element Element the host object of the parameter
parameterName string parameter name
value string the value of the parameter with string type
Результат bool