SetDistanceToCustomTarget Method


Rebar Constraint Set Distance To Custom Target Method

Sets 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 void SetDistanceToCustomTarget(
	double distanceToCustomTarget
)

Parameters

distanceToCustomTarget Double
The distance to custom target.
Exceptions
Exception Condition
ArgumentOutOfRangeException The given value for distanceToCustomTarget must be no more than 30000 feet in absolute value.
InvalidOperationException RebarConstraint is no longer valid. -or- The RebarConstraintType of the RebarConstraint must be 'ToCustomTarget'.
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 →