This function calculates the lap direction given a RebarSpliceGeometry and a RebarSplicePosition.
Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public static XYZ GetLapDirectionForSpliceGeometryAndPosition( Rebar rebar, RebarSpliceGeometry spliceGeometry, RebarSplicePosition splicePosition )
Parameters
- rebar Rebar
- The input rebar.
- spliceGeometry RebarSpliceGeometry
- The splice geometry.
- splicePosition RebarSplicePosition
- The splice position.
Return Value
XYZThe lap direction.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | RebarSplicePosition should not be Middle. -or- The rebar cannot be spliced with the provided RebarSpliceGeometry. |
| ArgumentNullException | A non-optional argument was null |
| ArgumentOutOfRangeException | A value passed for an enumeration argument is not a member of that enumeration |
