RebarConstraintCreateConstraintToHostEdgeCover Method

This method creates a constraint of 'ToHostEdgeCover' type for a given RebarConstrainedHandle.

The RebarConstrainedHandle should belong to a Free Form Rebar and must be allowed to constrain to host edges.

The RebarConstrainedHandle that is constrained 'ToHostEdgeCover' 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 static RebarConstraint CreateConstraintToHostEdgeCover(
	RebarConstrainedHandle handle,
	IList<Reference> targetReferences
)

Parameters

handle  RebarConstrainedHandle
The handle of the rebar that will be constrained.
targetReferences  IListReference
The references to which the rebar handle will be constrained. This collection must contain one or more references to edges of an element that can host rebar.

Return Value

RebarConstraint
Returns the newly created RebarConstraint.
Exceptions
ExceptionCondition
ArgumentException handle is no longer valid. -or- targetReferences is empty. -or- The RebarConstrainedHandle doesn't allow constraint of RebarConstraintType.ToHostEdgeCover type. -or- targetReferences do not represent edges from the same structural that can host rebar.
ArgumentNullException A non-optional argument was null
See Also