Replaces the current set of references, the type of constraint and the offset value, with the newly provided ones.
Will throw exception if this is a constraint 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
Visual Basic |
---|
Public Sub ReplaceReferenceTargets ( _
handle As RebarConstrainedHandle, _
targetReferences As IList(Of Reference), _
isConstraintToCover As Boolean, _
offsetValue As Double _
) |
Visual C++ |
---|
public:
void ReplaceReferenceTargets(
RebarConstrainedHandle^ handle,
IList<Reference^>^ targetReferences,
bool isConstraintToCover,
double offsetValue
) |
Parameters
- handle
- Type: Autodesk.Revit.DB.Structure..::..RebarConstrainedHandle
The RebarConstrainedHandle that has this constraint.
- 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.
Exceptions
See Also