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

Наследование: IExternalCommand
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddFormula ( ) : System.Boolean

Add a formula when the user click Add button to new a formula

DeleteCombination ( int index ) : System.Boolean

Delete the selected Load Combination

DeleteFormula ( int index ) : System.Boolean

Delete the selected Load Formula

DeleteUsage ( int index ) : System.Boolean

Delete the selected Load Usage

Execute ( ExternalCommandData commandData, string &message, Autodesk elements ) : Autodesk.Revit.UI.Result

Implement this method as an external command for Revit.

Loads ( ) : System

Default constructor of Loads

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

Prepare the data for the form displaying.

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

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

Add a formula when the user click Add button to new a formula
public AddFormula ( ) : System.Boolean
Результат System.Boolean

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

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

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

Delete the selected Load Formula
public DeleteFormula ( 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

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

Implement this method as an external command for Revit.
public Execute ( ExternalCommandData commandData, string &message, Autodesk elements ) : Autodesk.Revit.UI.Result
commandData ExternalCommandData An object that is passed to the external application /// which contains data related to the command, /// such as the application object and active view.
message string A message that can be set by the external application /// which will be displayed if a failure or cancellation is returned by /// the external command.
elements Autodesk A set of elements to which the external application /// can add elements that are to be highlighted in case of failure or cancellation.
Результат Autodesk.Revit.UI.Result

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

Default constructor of Loads
public Loads ( ) : System
Результат 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