Creates a new instance of a LoadCombination element within the project.
Namespace: Autodesk.Revit.Creation
Assembly: RevitAPI (in RevitAPI.dll) Version: 16.0.0.0 (16.0.0.0)
Syntax
C# |
---|
|
Visual Basic |
---|
|
Visual C++ |
---|
|
Parameters
- name
- Type: System String
The not empty name for the Load Combination Element to create.
- typeInd
- Type: System Int32
LoadCombination Type Index: 0-Combination, 1-Envelope.
- stateInd
- Type: System Int32
LoadCombination State Index: 0-Servicebility, 1-Ultimate.
- factors
- Type: System Double
Factors array for Load Combination formula.
- cases
- Type: Autodesk.Revit.DB.Structure LoadCaseArray
Load Cases array for Load Combination formula.
- combinations
- Type: Autodesk.Revit.DB.Structure LoadCombinationArray
Load Combinations array for Load Combination formula.
- usages
- Type: Autodesk.Revit.DB.Structure LoadUsageArray
Load Usages array.
Return Value
If successful, NewLoadCombination and there isn't the Load Combination Element with the same name returns an object for the newly created LoadCombination. If such element exist and match desired one (has the same formula and the same usages set), returns existing element. Otherwise a null reference ( Nothing in Visual Basic) is returned.Remarks
Factors and Load Combinations arrays have the same dimension (n). The Load Combination formula is equal to: factors[0]*cases[0]*factors[1]*cases[1]*. . . factors[n]*cases[n].
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions InvalidOperationException | If the product is not Revit Structure. |