Creates a new hosted point load within the project.
Namespace:
Autodesk.Revit.DB.Structure
Assembly:
RevitAPI
(in RevitAPI.dll) Version: 16.0.0.0 (16.0.0.0)
Since:
2016
Syntax
C# |
---|
|
Visual Basic |
---|
|
Visual C++ |
---|
|
Parameters
- aDoc
-
Type:
Autodesk.Revit.DB
Document
Document to which new point load will be added.
- host
-
Type:
Autodesk.Revit.DB.Structure
AnalyticalModelStick
The AnalyticalModelStick (Analytical Beam, Analytical Brace, Analytical Column) host element for the point Load.
- selector
-
Type:
Autodesk.Revit.DB.Structure
AnalyticalElementSelector
The start or end point of the Analytical stick element.
- forceVector
-
Type:
Autodesk.Revit.DB
XYZ
The applied 3d force vector.
- momentVector
-
Type:
Autodesk.Revit.DB
XYZ
The applied 3d moment vector.
- symbol
-
Type:
Autodesk.Revit.DB.Structure
PointLoadType
The symbol of the PointLoad. Set a null reference ( Nothing in Visual Basic) to use default type.
Return Value
If successful, returns the newly created PointLoad, a null reference ( Nothing in Visual Basic) otherwise.Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions ArgumentException | The element host was not found in the given document. |
Autodesk.Revit.Exceptions ArgumentNullException | A non-optional argument was NULL |
Autodesk.Revit.Exceptions ArgumentOutOfRangeException | A value passed for an enumeration argument is not a member of that enumeration |
Autodesk.Revit.Exceptions ArgumentsInconsistentException | Thrown when force and moment vectors are equal zero. |
Autodesk.Revit.Exceptions InvalidOperationException | Thrown if type could not be set for newly created point load. |