C# Класс Revit.SDK.Samples.Loads.CS.LoadCombinationDeal

mainly deal class which give methods to connect Revit and the user operation on the form
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

AddFormula() публичный Метод

Add a formula with the load case name
public AddFormula ( String caseName ) : System.Boolean
caseName String The name of the load case
Результат System.Boolean

DeleteCombination() публичный Метод

Delete the selected Load Combination
public DeleteCombination ( int index ) : System.Boolean
index int The selected index in the DataGridView
Результат System.Boolean

DeleteUsage() публичный Метод

Delete the selected Load Usage
public DeleteUsage ( int index ) : System.Boolean
index int The selected index in the DataGridView
Результат System.Boolean

LoadCombinationDeal() публичный Метод

Default constructor of LoadCombinationDeal
public LoadCombinationDeal ( Loads dataBuffer ) : System
dataBuffer Loads
Результат System

ModifyUsageName() публичный Метод

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
Результат System.Boolean

NewLoadCombination() публичный Метод

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
Результат System.Boolean

NewLoadUsage() публичный Метод

Create a new load combination usage
public NewLoadUsage ( String usageName ) : System.Boolean
usageName String The new Load Usage name
Результат System.Boolean

PrepareData() публичный Метод

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
Результат void