RebarConstraint.Create
Description:
This method creates a constraint for a given Rebar Constrained Handle Tag. Will throw exception if used for Shape Driven Rebar.
This method creates a constraint for a given Rebar Constrained Handle Tag. Will throw exception if used for Shape Driven Rebar.
public static RebarConstraint Create(
RebarConstrainedHandle handle,
IList<Reference> targetReferences,
bool isConstraintToCover,
double offsetValue
)
-
handleThe handle of the rebar that will be constrained.
-
IList<Reference>targetReferencesThe 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.
-
BooleanisConstraintToCoverIf true the RebarConstraintType will be set to ToCover, otherwise RebarConstraintType will be set to FixedDistanceToHostFace.
-
DoubleoffsetValueThe distance from references to the rebar handle.
-
Constrained rebar is a shape driven rebar element. -or- handle is no longer valid. -or- targetReferences is empty. -or- targetReferences do not represent faces from structurals that can host rebar.
-
A non-optional argument was null