2027 Method
Changes 8
M

RebarConstraint.CreateConstraintToHostEdgeCover

Description:
This method creates a constraint of 'ToHostEdgeCover' type for a given RebarConstrainedHandle.The RebarConstrainedHandle should belong to a Free Form Rebar and must be allowed to constrain to host edges.
public static RebarConstraint CreateConstraintToHostEdgeCover(
	RebarConstrainedHandle handle,
	IList<Reference> targetReferences
)
  • handle
    The handle of the rebar that will be constrained.
  • IList<Reference>
    targetReferences
    The references to which the rebar handle will be constrained. This collection must contain one or more references to edges of an element that can host rebar.
Return Value RebarConstraint Returns the newly created RebarConstraint.
  • handle is no longer valid. -or- targetReferences is empty. -or- The RebarConstrainedHandle doesn't allow constraint of RebarConstraintType.ToHostEdgeCover type. -or- targetReferences do not represent edges from the same structural that can host rebar.
  • A non-optional argument was null