SetDistanceToTargetHostEdge Method


Rebar Constraint Set Distance To Target Host Edge Method

Sets the distance from the RebarConstrainedHandle to the target host edge. The RebarConstraintType of the RebarConstraint must be 'ToHostEdge' and must allow offset value.

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

Parameters

distanceToTargetEdge Double
The distance to target host edge.
Exceptions
Exception Condition
ArgumentOutOfRangeException The given value for distanceToTargetEdge must be no more than 30000 feet in absolute value.
InvalidOperationException RebarConstraint is no longer valid. -or- The RebarConstraint is not of RebarConstraintType 'ToHostEdge'. -or- The RebarConstrainedHandle doesn't allow distance for constraint of ToHostEdge or ToHostEdgeCover type.
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 →