C# Class Revit.SDK.Samples.BoundaryConditions.CS.BCProperties

use to create instance as the display object of the PropertyGrid
Afficher le fichier Open project: AMEE/revit

Private Properties

Свойство Type Description
MatchBCValuesRule void

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
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.

Method Details

BCProperties() public méthode

constructor
public BCProperties ( Autodesk bC ) : System
bC Autodesk /// the boundary conditions of which the information will displayed in the UI grid ///
Résultat System

GetParameterValue() protected méthode

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
Résultat Object

SetParameterValue() protected méthode

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
Résultat void

SetSpringModulus() public méthode

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
Résultat void