M

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.
public static RebarConstraint Create(
	RebarConstrainedHandle handle,
	IList<Reference> targetHostFaceReferences,
	bool isConstraintToCover,
	double offsetValue
)
  • handle
    The handle of the rebar that will be constrained. This handle should not be allowed to constrain to an edge.
  • IList<Reference>
    targetHostFaceReferences
    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.
  • Boolean
    isConstraintToCover
    If true the RebarConstraintType will be set to ToCover, otherwise RebarConstraintType will be set to FixedDistanceToHostFace.
  • Double
    offsetValue
    The distance from references to the rebar handle.
Return Value RebarConstraint Returns the newly created RebarConstraint.
  • 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