NewLineLoad Method (XYZ, XYZ, XYZ, XYZ, XYZ, XYZ, Boolean, Boolean, Boolean, LineLoadType, SketchPlane)


Creates a new unhosted line load within the project using data at two points.

Namespace: Autodesk.Revit.Creation
Assembly: RevitAPI (in RevitAPI.dll) Version: 16.0.0.0 (16.0.0.0)

Syntax

C#
[ObsoleteAttribute("This method is obsolete in Revit 2016. Use LineLoad.Create() method instead.")]
public LineLoad NewLineLoad(
	XYZ point,
	XYZ force,
	XYZ moment,
	XYZ point1,
	XYZ force1,
	XYZ moment1,
	bool uniform,
	bool projected,
	bool isReaction,
	LineLoadType symbol,
	SketchPlane plane
)
Visual Basic
<ObsoleteAttribute("This method is obsolete in Revit 2016. Use LineLoad.Create() method instead.")> _
Public Function NewLineLoad ( _
	point As XYZ, _
	force As XYZ, _
	moment As XYZ, _
	point1 As XYZ, _
	force1 As XYZ, _
	moment1 As XYZ, _
	uniform As Boolean, _
	projected As Boolean, _
	isReaction As Boolean, _
	symbol As LineLoadType, _
	plane As SketchPlane _
) As LineLoad
Visual C++
[ObsoleteAttribute(L"This method is obsolete in Revit 2016. Use LineLoad.Create() method instead.")]
public:
LineLoad^ NewLineLoad(
	XYZ^ point, 
	XYZ^ force, 
	XYZ^ moment, 
	XYZ^ point1, 
	XYZ^ force1, 
	XYZ^ moment1, 
	bool uniform, 
	bool projected, 
	bool isReaction, 
	LineLoadType^ symbol, 
	SketchPlane^ plane
)

Parameters

point
Type: Autodesk.Revit.DB XYZ
The first point of the LineLoad application.
force
Type: Autodesk.Revit.DB XYZ
The applied 3d linear force in the first point.
moment
Type: Autodesk.Revit.DB XYZ
The applied 3d linear moment in the first point.
point1
Type: Autodesk.Revit.DB XYZ
The second point of the LineLoad application.
force1
Type: Autodesk.Revit.DB XYZ
The applied 3d linear force in the second point.
moment1
Type: Autodesk.Revit.DB XYZ
The applied 3d linear moment in the second point.
uniform
Type: System Boolean
Set to True if you wish to create the uniform load.
projected
Type: System Boolean
Set to True if you wish to create the projected load.
isReaction
Type: System Boolean
Specifies if the load is a reaction load. The load cannot be modified if isReaction=True.
symbol
Type: Autodesk.Revit.DB.Structure LineLoadType
The symbol of the LineLoad.
plane
Type: Autodesk.Revit.DB SketchPlane
Indicate the work plane of the LineLoad.

Return Value

If successful, NewLineLoad returns the newly created LineLoad. a null reference ( Nothing in Visual Basic) is returned if the operation fails.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions InvalidOperationException If the product is not Revit Structure.
Autodesk.Revit.Exceptions ArgumentException Thrown if the line load symbol does not exist in the given document.
Autodesk.Revit.Exceptions ArgumentException Thrown if the work plane does not exist in the given document.

See Also