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

Inheritance: IExternalCommand
Mostra file Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
PrepareData ( ) : void

Prepare the data for the form displaying.

Method Details

AddFormula() public method

Add a formula when the user click Add button to new a formula
public AddFormula ( ) : System.Boolean
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

DeleteFormula() public method

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

Execute() public method

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.
return Autodesk.Revit.UI.Result

Loads() public method

Default constructor of Loads
public Loads ( ) : System
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