GetDistanceToCustomTarget Method


Rebar Constraint Get Distance To Custom Target Method

Gets the distance from the RebarConstrainedHandle to the custom target.

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntax
public double GetDistanceToCustomTarget()

Return Value

Double
Returns the distance from the RebarConstrainedHandle to the custom target.
Exceptions
Exception Condition
InvalidOperationException RebarConstraint is no longer valid. -or- The RebarConstraintType of the RebarConstraint must be 'ToCustomTarget'.
See Also
ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →