Creates a new custom area load within the project.
Namespace: Autodesk.Revit.DB.StructureAssembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:
2024
Syntax
Visual Basic |
---|
Public Shared Function Create ( _
document As Document, _
hostElemId As ElementId, _
loops As IList(Of CurveLoop), _
forceVectors As IList(Of XYZ), _
refPointCurveIndexes As IList(Of Integer), _
refPointCurveEnds As IList(Of Integer), _
symbol As AreaLoadType _
) As AreaLoad |
Parameters
- document
- Type: Autodesk.Revit.DB..::..Document
Document to which new area load will be added.
- hostElemId
- Type: Autodesk.Revit.DB..::..ElementId
The analytical surface host element id for the area Load.
- loops
- Type: System.Collections.Generic..::..IList<(Of <(<'CurveLoop>)>)>
The loops that define geometry of the area load.
The curve loop collection should contains a closed loops consisting of lines.
- forceVectors
- Type: System.Collections.Generic..::..IList<(Of <(<'XYZ>)>)>
The array of force vectors applied to the maximum three reference point of the area load.
- refPointCurveIndexes
- Type: System.Collections.Generic..::..IList<(Of <(<'Int32>)>)>
The array of maximum three curve indexes on which reference points should be placed on.
- refPointCurveEnds
- Type: System.Collections.Generic..::..IList<(Of <(<'Int32>)>)>
The array of maximum three curve ends indicating where reference points should be placed on.
The array can have only 0 or 1 values, which means 0 - curve start point, 1 - curve end point.
- symbol
- Type: Autodesk.Revit.DB.Structure..::..AreaLoadType
The symbol of the AreaLoad. Set nullNothingnullptra null reference (Nothing in Visual Basic) to use default type.
Return Value
If successful, returns an object of the newly created AreaLoad.
nullNothingnullptra null reference (Nothing in Visual Basic) is returned if the operation fails.
Exceptions
See Also