Creates a new hosted line load within the project.
Namespace: Autodesk.Revit.DB.StructureAssembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public static LineLoad Create(
Document document,
ElementId hostElemId,
int curveIndex,
XYZ forceVector1,
XYZ momentVector1,
LineLoadType symbol
)
Parameters
- document Document
-
Document to which new line load will be added.
- hostElemId ElementId
-
The analytical host element for the line Load.
- curveIndex 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 XYZ
-
The applied 3d force vector.
- momentVector1 XYZ
-
The applied 3d moment vector.
- symbol LineLoadType
-
The symbol of the LineLoad. Set null to use default type.
Return Value
LineLoad
If successful, returns the newly created LineLoad,
null otherwise.
Exceptions
See Also
Reference