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

mainly deal class which give methods to connect Revit and the user operation on the form
Afficher le fichier Open project: AMEE/revit Class Usage Examples

Méthodes publiques

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

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

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

DeleteCombination() public méthode

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

DeleteUsage() public méthode

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

LoadCombinationDeal() public méthode

Default constructor of LoadCombinationDeal
public LoadCombinationDeal ( Loads dataBuffer ) : System
dataBuffer Loads
Résultat System

ModifyUsageName() public méthode

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
Résultat System.Boolean

NewLoadCombination() public méthode

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
Résultat System.Boolean

NewLoadUsage() public méthode

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

PrepareData() public méthode

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