Specify a variable-radius bend.
Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Syntax
C# |
---|
|
Visual Basic |
---|
|
Visual C++ |
---|
|
Parameters
- vertexIndex
- Type: SystemInt32
Index of the vertex (1 to NumberOfVertices - 2).
- turn
- Type: Autodesk.Revit.DB.StructureRebarShapeVertexTurn
Specify turn direction (RebarShapeVertexTurn::Left or RebarShapeVertexTurn::Right).
- angle
- Type: Autodesk.Revit.DB.StructureRebarShapeBendAngle
Specify whether the bend is acute, obtuse, etc.
- paramId
- Type: Autodesk.Revit.DBElementId
Id of a parameter driving the radius.
- measureIncludingBarThickness
- Type: SystemBoolean
If true, the radius is measured to the outside of the bend; if false, it is measured to the inside.
Remarks
You must add a bend between each two segments.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.ExceptionsArgumentException | vertexIndex is not between 0 and NumberOfVertices. -or- paramId is not the id of a shared parameter in the current document, or its unit type is not UT_Reinforcement_Length or UT_Angle. |
Autodesk.Revit.ExceptionsArgumentNullException | A non-optional argument was null |
Autodesk.Revit.ExceptionsArgumentOutOfRangeException | A value passed for an enumeration argument is not a member of that enumeration |