RVTDocs.com

LineLoad.Create(Document, ElementId, XYZ, XYZ, LineLoadType)

Method
Description:
Creates a new hosted line load within the project.
Syntax
public static LineLoad Create(
	Document document,
	ElementId hostElemId,
	XYZ forceVector1,
	XYZ momentVector1,
	LineLoadType symbol
)
Parameters
Parameter Type Description
document Document Document to which new line load will be added.
hostElemId ElementId The analytical host element for 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 <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LST451E68B2_1"></span></span> to use default type.
Return Value
Type Description
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.
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.