Creates a new hosted line load within the project.
Namespace: Autodesk.Revit.DB.StructureAssembly: RevitAPI (in RevitAPI.dll) Version: 23.0.0.0 (23.1.0.0)
Since:
2023
Syntax
Parameters
- aDoc
- Type: Autodesk.Revit.DB..::..Document
Document to which new line load will be added.
- hostElemId
- Type: Autodesk.Revit.DB..::..ElementId
The analytical host element for the line Load.
- curveIndex
- Type: System..::..Int32
The index of a curve in analytical surface element starting from 0.
Use [!:Autodesk::Revit::DB::Structure::AnalyticalSurfaceBase::GetOuterContour] method to obtain appropriate curve index.
Curve index has a unique value in analytical element. The index should be obtain by iteration through all curves in all loops.
- forceVector1
- Type: Autodesk.Revit.DB..::..XYZ
The applied 3d force vector.
- momentVector1
- Type: Autodesk.Revit.DB..::..XYZ
The applied 3d moment vector.
- symbol
- Type: Autodesk.Revit.DB.Structure..::..LineLoadType
The symbol of the LineLoad. Set nullNothingnullptra null reference (Nothing in Visual Basic) to use default type.
Return Value
If successful, returns the newly created LineLoad,
nullNothingnullptra null reference (Nothing in Visual Basic) otherwise.
Exceptions
See Also