RebarConstraint.Create
Description:
This method creates a constraint of 'ToHostFace' or 'ToCover' type for a given RebarConstrainedHandle. Using this method for Shape-Driven Rebar will throw exception.
This method creates a constraint of 'ToHostFace' or 'ToCover' type for a given RebarConstrainedHandle. Using this method for Shape-Driven Rebar will throw exception.
public static RebarConstraint Create(
RebarConstrainedHandle handle,
IList<Reference> targetHostFaceReferences,
bool isConstraintToCover,
double offsetValue
)
-
handleThe handle of the rebar that will be constrained. This handle should not be allowed to constrain to an edge.
-
IList<Reference>targetHostFaceReferencesThe 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 isn't a Free Form Rebar element. -or- handle is no longer valid. -or- targetHostFaceReferences is empty. -or- The RebarConstrainedHandle doesn't allow constraint of RebarConstraintType.FixedDistanceToHostFace or RebarConstraintTypeToCover type. -or- targetHostFaceReferences do not represent faces from structurals that can host rebar.
-
A non-optional argument was null