Revit 2026 API
Rebar |
Sets the rotation angle in radians for the bending detail relative to its view.
Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public static void SetRotation( Element bendingDetail, double rotation )
Public Shared Sub SetRotation ( bendingDetail As Element, rotation As Double )
public: static void SetRotation( Element^ bendingDetail, double rotation )
static member SetRotation : bendingDetail : Element * rotation : float -> unit
Parameters
- bendingDetail Element
- The bending detail for which we want to get the rotation.
- rotation Double
- The new rotation angle of the bending detail relative to its view.
| Exception | Condition |
|---|---|
| ArgumentException | -or- The given value for rotation is not a number -or- The given value for rotation is not finite |
| ArgumentNullException | A non-optional argument was null |
See Also