<Code Lib>
2025.3 Method
Changes 0
M

RebarConstraintsManager.AllowConstraintTargets

Description:
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.

public bool AllowConstraintTargets(
	RebarConstrainedHandle handle,
	IList<Reference> targetsToConstrain
)

  • handle
    Represents the constrainable rebar handle.
  • IList<Reference>
    targetsToConstrain
    Represent the refernces to be checked as valid targets for handle.
Return Value Boolean Boolean

Loading…