<Code Lib>
2027 Method
Changes 0
M

RebarConstraint.GetTargetElement(Int32)

Description:
Gets the Element object (either Host or Rebar) which provides the target reference at specified index for this constraint.
Overloads (2):
GetTargetElement(Int32)

public Element GetTargetElement(
	int targetIndex
)

  • Int32
    targetIndex
    The index of the target. Should be between 0 and NumberOfTargets().
Return Value Element Returns the Element object (either Host or Rebar) which provides the target reference at specified index for this constraint.

  • targetIndex is out of range.
  • RebarConstraint is no longer valid. -or- The RebarConstraint should not be of RebarConstraintType 'ToSurface'. -or- The RebarConstraintType of the RebarConstraint is 'ToCustomTarget'.

Loading…