FlipHandleOverTarget Method


Flips the RebarConstrainedHandle to the other side of the target bar handle, maintaining the distance in absolute value.

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2020.1

Syntax

C#
public void FlipHandleOverTarget()
Visual Basic
Public Sub FlipHandleOverTarget
Visual C++
public:
void FlipHandleOverTarget()

Remarks

Throw exception if constraint type is not 'ToOtherRebar', or for constraints involving bar/hook bend handle.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsInvalidOperationException RebarConstraint is no longer valid. -or- The RebarConstraint is not of RebarConstraintType 'ToOtherRebar.' -or- The RebarTargetConstraintType is 'HookBend' or 'BarBend'.

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →