RebarConstraintsManager.AllowConstraintTargets
Method
Description:
Returns true if references are valid targets for handle, false otherwise.
Returns true if references are valid targets for handle, false otherwise.
Remarks:
For a free form rebar valid targets are one or more references to 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.
Syntax
public bool AllowConstraintTargets(
RebarConstrainedHandle handle,
IList<Reference> targetsToConstrain
)
Parameters
Parameter | Type | Description |
---|---|---|
handle | RebarConstrainedHandle | Represents the constrainable rebar handle. |
targetsToConstrain | IList | Represent the refernces to be checked as valid targets for handle. |
Return Value
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |
InvalidOperationException | The RebarConstraintsManager does not manage a valid Rebar element. |