RebarConstraintReplaceReferenceTargets(RebarConstrainedHandle, IListReference, Boolean, Double) Method |
Note: This API is now obsolete.
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: 27.0.4.0 (27.0.4.0)
Syntax[ObsoleteAttribute("This property is deprecated in Revit 2027 and might be removed in a future version. Use the new signature of the RebarConstraint.replaceReferenceTargets.")]
public void ReplaceReferenceTargets(
RebarConstrainedHandle handle,
IList<Reference> targetReferences,
bool isConstraintToCover,
double offsetValue
)<ObsoleteAttribute("This property is deprecated in Revit 2027 and might be removed in a future version. Use the new signature of the RebarConstraint.replaceReferenceTargets.")>
Public Sub ReplaceReferenceTargets (
handle As RebarConstrainedHandle,
targetReferences As IList(Of Reference),
isConstraintToCover As Boolean,
offsetValue As Double
)public:
[ObsoleteAttribute(L"This property is deprecated in Revit 2027 and might be removed in a future version. Use the new signature of the RebarConstraint.replaceReferenceTargets.")]
void ReplaceReferenceTargets(
RebarConstrainedHandle^ handle,
IList<Reference^>^ targetReferences,
bool isConstraintToCover,
double offsetValue
)
[<ObsoleteAttribute("This property is deprecated in Revit 2027 and might be removed in a future version. Use the new signature of the RebarConstraint.replaceReferenceTargets.")>]
member ReplaceReferenceTargets :
handle : RebarConstrainedHandle *
targetReferences : IList<Reference> *
isConstraintToCover : bool *
offsetValue : float -> unit Parameters
- handle RebarConstrainedHandle
-
The RebarConstrainedHandle that has this constraint.
- targetReferences IListReference
-
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 Boolean
-
If true the RebarConstraintType will be set to ToCover, otherwise RebarConstraintType will be set to FixedDistanceToHostFace.
- offsetValue Double
-
The distance from references to the rebar handle.
Exceptions| Exception | Condition |
|---|
| ArgumentException |
handle is no longer valid.
-or-
targetReferences is empty.
-or-
targetReferences do not represent faces from structurals that can host rebar.
|
| ArgumentNullException |
A non-optional argument was null
|
| InvalidOperationException |
Constrained rebar isn't a Free Form Rebar element.
-or-
The RebarConstraint is not of RebarConstraintType 'FixedDistanceToHostFace' or 'ToCover'.
|
See Also