LineLoadCreate(Document, ElementId, Curve, XYZ, XYZ, LineLoadType) Method |
Creates a new custom line load within the project.
Namespace: Autodesk.Revit.DB.StructureAssembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntaxpublic static LineLoad Create(
Document document,
ElementId hostElemId,
Curve curve,
XYZ forceVector1,
XYZ momentVector1,
LineLoadType symbol
)
Public Shared Function Create (
document As Document,
hostElemId As ElementId,
curve As Curve,
forceVector1 As XYZ,
momentVector1 As XYZ,
symbol As LineLoadType
) As LineLoad
public:
static LineLoad^ Create(
Document^ document,
ElementId^ hostElemId,
Curve^ curve,
XYZ^ forceVector1,
XYZ^ momentVector1,
LineLoadType^ symbol
)
static member Create :
document : Document *
hostElemId : ElementId *
curve : Curve *
forceVector1 : XYZ *
momentVector1 : XYZ *
symbol : LineLoadType -> LineLoad Parameters
- document Document
-
Document to which new line load will be added.
- hostElemId ElementId
-
The analytical host element for the line Load.
- curve Curve
-
Curve of the line load.
- forceVector1 XYZ
-
The applied 3d force vector.
- momentVector1 XYZ
-
The applied 3d moment vector.
- symbol LineLoadType
-
The symbol of the LineLoad. Set to use default type.
Return Value
LineLoad
If successful, returns the newly created LineLoad,
otherwise.
Exceptions| Exception | Condition |
|---|
| ArgumentException |
The element hostElemId does not exist in the document
-or-
hostElemId is not permitted for this type of load.
-or-
The provided curve is not supported.
-or-
The input curve is not bound.
-or-
hostElemId is not a valid host for line load.
|
| ArgumentNullException |
A non-optional argument was null
|
| ArgumentsInconsistentException |
Thrown when all force and moment vectors are equal zero.
|
| InvalidOperationException |
Thrown if type could not be set for newly created line load.
|
Remarks
The curve must be bounded.
The curve can be:
See Also