RebarConstraint.GetTargetElement
Description:
Gets the Element object (either Host or Rebar) which provides the target reference at specified index for this constraint.
Gets the Element object (either Host or Rebar) which provides the target reference at specified index for this constraint.
Overloads (2):
public Element GetTargetElement(
int targetIndex
)
-
Int32targetIndexThe 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'.