C# 클래스 Revit.SDK.Samples.Loads.CS.Loads

상속: IExternalCommand
파일 보기 프로젝트 열기: AMEE/revit 1 사용 예제들

공개 메소드들

메소드 설명
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