This method creates a constraint for a given Rebar Constrained Handle Tag.
Will throw exception if used for Shape Driven Rebar.
Namespace: Autodesk.Revit.DB.StructureAssembly: RevitAPI (in RevitAPI.dll) Version: 21.0.0.0 (21.1.1.109)
Since:
2018
Syntax
Parameters
- handle
- Type: Autodesk.Revit.DB.Structure..::..RebarConstrainedHandle
The handle of the rebar that will be constrained.
- targetReferences
- Type: System.Collections.Generic..::..IList<(Of <(<'Reference>)>)>
The references to which the rebar handle will be constrained.
This collection must contain one or more references to faces of elements that can host rebar.
- isConstraintToCover
- Type: System..::..Boolean
If true the RebarConstraintType will be set to ToCover, otherwise RebarConstraintType will be set to FixedDistanceToHostFace.
- offsetValue
- Type: System..::..Double
The distance from references to the rebar handle.
Return Value
Returns the newly created RebarConstraint.
Exceptions
See Also