RebarConstraint.CreateConstraintToRebarEdge
Description:
This method creates a constraint of 'ToOtherRebar' type with target type for a given RebarConstrainedHandle.The RebarConstrainedHandle should belong to a Free Form Rebar, otherwise it will throw exception.
This method creates a constraint of 'ToOtherRebar' type with target type for a given RebarConstrainedHandle.The RebarConstrainedHandle should belong to a Free Form Rebar, otherwise it will throw exception.
public static RebarConstraint CreateConstraintToRebarEdge(
RebarConstrainedHandle handle,
IList<ConstraintToRebarEdgeProperties> allEdgesProperties
)
-
handleThe handle of the rebar that will be constrained.
-
allEdgesPropertiesAn array containing all target edges to which will be constrained and the constraint properties for each target edge.
-
handle is no longer valid. -or- Constrained rebar isn't a Free Form Rebar element. -or- The RebarConstrainedHandle doesn't allow constraint of RebarConstraintType.ToOtherRebar type, where target is TargetRebarConstraintType.Edge"/>. -or- All targets(TargetRebarEdge) should be different.
-
A non-optional argument was null