C# Class Revit.SDK.Samples.Loads.CS.LoadCombinationDeal

mainly deal class which give methods to connect Revit and the user operation on the form
显示文件 Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
AddFormula ( String caseName ) : System.Boolean

Add a formula with the load case name

DeleteCombination ( int index ) : System.Boolean

Delete the selected Load Combination

DeleteUsage ( int index ) : System.Boolean

Delete the selected Load Usage

LoadCombinationDeal ( Loads dataBuffer ) : System

Default constructor of LoadCombinationDeal

ModifyUsageName ( String oldName, String newName ) : System.Boolean

Change usage name when the user modify it on the form

NewLoadCombination ( String name, int typeId, int stateId ) : System.Boolean

Create new Load Combination

NewLoadUsage ( String usageName ) : System.Boolean

Create a new load combination usage

PrepareData ( ) : void

Find out all Load Combination and Usage in the existing document. As specification require, prepare some Load Combination Usages if they are not in document

Private Methods

Method Description
FindLoadCaseByName ( String name ) : LoadCase

Find a load case by the load case name

FindUsageByName ( String name ) : LoadUsage

Find a load usage by the load usage name

Method Details

AddFormula() public method

Add a formula with the load case name
public AddFormula ( String caseName ) : System.Boolean
caseName String The name of the load case
return System.Boolean

DeleteCombination() public method

Delete the selected Load Combination
public DeleteCombination ( int index ) : System.Boolean
index int The selected index in the DataGridView
return System.Boolean

DeleteUsage() public method

Delete the selected Load Usage
public DeleteUsage ( int index ) : System.Boolean
index int The selected index in the DataGridView
return System.Boolean

LoadCombinationDeal() public method

Default constructor of LoadCombinationDeal
public LoadCombinationDeal ( Loads dataBuffer ) : System
dataBuffer Loads
return System

ModifyUsageName() public method

Change usage name when the user modify it on the form
public ModifyUsageName ( String oldName, String newName ) : System.Boolean
oldName String The name before modification
newName String The name after modification
return System.Boolean

NewLoadCombination() public method

Create new Load Combination
public NewLoadCombination ( String name, int typeId, int stateId ) : System.Boolean
name String The new Load Combination name
typeId int The index of new Load Combination Type
stateId int The index of new Load Combination State
return System.Boolean

NewLoadUsage() public method

Create a new load combination usage
public NewLoadUsage ( String usageName ) : System.Boolean
usageName String The new Load Usage name
return System.Boolean

PrepareData() public method

Find out all Load Combination and Usage in the existing document. As specification require, prepare some Load Combination Usages if they are not in document
public PrepareData ( ) : void
return void