Rebar |
public bool AllowConstraintTargets( RebarConstrainedHandle handle, IList<Reference> targetsToConstrain )
| Exception | Condition |
|---|---|
| ArgumentNullException | A non-optional argument was null |
| InvalidOperationException | The RebarConstraintsManager does not manage a valid Rebar element. |
For a free form rebar valid targets are one or more references to faces or edges of elements that can host rebar.
If the handle accepts constraints to edges, the references should be edges of elements that can host rebar.
If the handle does not accept constraints to edges, the references should be faces of elements that can host rebar.
For a shape driven rebar this function will always return false. RebarConstraintsManager.GetConstraintCandidatesForHandle() can be used to obtain possible constraints.