C# Class Revit.SDK.Samples.CreateBeamSystem.CS.BeamSystemData

mixed data class save the data to show in UI and the data used to create beam system
显示文件 Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
BeamSystemData ( ExternalCommandData commandData ) : System

constructor if precondition in current Revit project isn't enough, ErrorMessageException will be throw out

ChangeProfileDirection ( ) : void

change the direction to the next line in the profile

GetBeamTypes ( ) : FamilySymbol>.Dictionary

all beam types loaded in current Revit project it is declared as static only because of PropertyGrid

Protected Methods

Method Description
OnParamsUpdated ( EventArgs e ) : void

the data used to show in UI is updated

Private Methods

Method Description
InitializeProfile ( List beams ) : void

retrieve the profiles using the selected beams ErrorMessageException will be thrown out if beams can't make a closed profile

LayoutRuleChanged ( LayoutMethod &layoutMethod ) : void

layout rule of beam system has changed

PrepareData ( ) : void

initialize members using data from current Revit project

Method Details

BeamSystemData() public method

constructor if precondition in current Revit project isn't enough, ErrorMessageException will be throw out
public BeamSystemData ( ExternalCommandData commandData ) : System
commandData ExternalCommandData data from Revit
return System

ChangeProfileDirection() public method

change the direction to the next line in the profile
public ChangeProfileDirection ( ) : void
return void

GetBeamTypes() public static method

all beam types loaded in current Revit project it is declared as static only because of PropertyGrid
public static GetBeamTypes ( ) : FamilySymbol>.Dictionary
return FamilySymbol>.Dictionary

OnParamsUpdated() protected method

the data used to show in UI is updated
protected OnParamsUpdated ( EventArgs e ) : void
e System.EventArgs
return void