C# Класс Revit.SDK.Samples.BoundaryConditions.CS.BCProperties

use to create instance as the display object of the PropertyGrid
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
MatchBCValuesRule void

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

Метод Описание
BCProperties ( Autodesk bC ) : System

constructor

SetSpringModulus ( string gridItemLabel ) : void

When Spring is selected for Translation/Rotation the user enter a positive value greater than Zero as the corresponding Spring Modulus. And according to its display unit do the conversion between display value and inside value.

Защищенные методы

Метод Описание
GetParameterValue ( string parameterName, BuiltInParameterGroup parameterGroup ) : Object

get parameter via matching the appointed name and group. and deal with it according to the type of Parameter's StorageType

SetParameterValue ( string parameterName, BuiltInParameterGroup parameterGroup, Object value ) : void

when user changed the parameter value via the UI set this changed parameter value

Приватные методы

Метод Описание
MatchBCValuesRule ( ) : void

the BC parameter values rules according to the Revit main program. For example, when the State is Fixed all the Translation/Rotation parameters are Fixed too.

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

BCProperties() публичный Метод

constructor
public BCProperties ( Autodesk bC ) : System
bC Autodesk /// the boundary conditions of which the information will displayed in the UI grid ///
Результат System

GetParameterValue() защищенный Метод

get parameter via matching the appointed name and group. and deal with it according to the type of Parameter's StorageType
protected GetParameterValue ( string parameterName, BuiltInParameterGroup parameterGroup ) : Object
parameterName string
parameterGroup BuiltInParameterGroup
Результат Object

SetParameterValue() защищенный Метод

when user changed the parameter value via the UI set this changed parameter value
protected SetParameterValue ( string parameterName, BuiltInParameterGroup parameterGroup, Object value ) : void
parameterName string the name of the changed parameter
parameterGroup BuiltInParameterGroup /// because some parameters of boundary conditions have the same name ///
value Object the new parameter value
Результат void

SetSpringModulus() публичный Метод

When Spring is selected for Translation/Rotation the user enter a positive value greater than Zero as the corresponding Spring Modulus. And according to its display unit do the conversion between display value and inside value.
public SetSpringModulus ( string gridItemLabel ) : void
gridItemLabel string the name of parameter which value is spring
Результат void