2027 Method
Changes 8
M

RebarConstraint.GetTargetHostEdgeAndTransform

Description:
Returns the target host edge and the transform that is associated to the host edge's geometry. The RebarConstraintType of the RebarConstraint must be 'ToHostEdge' or 'ToHostEdgeCover'. Only applied to Free Form Rebar.
public TargetHostEdgeAndTransform GetTargetHostEdgeAndTransform(
	int targetIndex
)
  • Int32
    targetIndex
    The index of the target. Should be between 0 and NumberOfTargets().
Return Value TargetHostEdgeAndTransform Returns the target host edge and the transform that is associated to the host edge's geometry.
  • targetIndex is out of range.
  • RebarConstraint is no longer valid. -or- The RebarConstraint is not of RebarConstraintType 'ToHostEdge' or 'ToHostEdgeCover'. -or- Constrained rebar isn't a Free Form Rebar element.