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

Deal the LoadCase class which give methods to connect Revit and the user operation on the form
显示文件 Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
AddLoadNature ( int index ) : bool

add a new load nature

DuplicateLoadCase ( int index ) : bool

Duplicate a new load case

IsCaseNameUnique ( string name ) : bool

check if the case's name is unique

IsNatureNameUnique ( string name ) : bool

check if the nature's name is unique

LoadCaseDeal ( Loads dataBuffer ) : System

Default constructor of LoadCaseDeal

PrepareData ( ) : void

prepare data for the dialog

Private Methods

Method Description
CreateLoadNatures ( ) : bool

create some load case natures named EQ1, EQ2, W1, W2, W3, W4, Other

Method Details

AddLoadNature() public method

add a new load nature
public AddLoadNature ( int index ) : bool
index int the selected nature's index in the nature map
return bool

DuplicateLoadCase() public method

Duplicate a new load case
public DuplicateLoadCase ( int index ) : bool
index int
return bool

IsCaseNameUnique() public method

check if the case's name is unique
public IsCaseNameUnique ( string name ) : bool
name string the name to be checked
return bool

IsNatureNameUnique() public method

check if the nature's name is unique
public IsNatureNameUnique ( string name ) : bool
name string the name to be checked
return bool

LoadCaseDeal() public method

Default constructor of LoadCaseDeal
public LoadCaseDeal ( Loads dataBuffer ) : System
dataBuffer Loads
return System

PrepareData() public method

prepare data for the dialog
public PrepareData ( ) : void
return void