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

use to create instance as the display object of the PropertyGrid
Datei anzeigen Open project: AMEE/revit

Private Properties

Property Type Description
MatchBCValuesRule void

Public Methods

Method 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.

Protected Methods

Method 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

Method 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 method

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

GetParameterValue() protected method

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
return Object

SetParameterValue() protected method

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
return void

SetSpringModulus() public method

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
return void