M

ComputationDataFor3DPathSet.CreateFromRebar

Description:
Creates a new instance of the ComputationDataFor3DPathSet class from the provided Rebar element.
Remarks:
When setting the data from a rebar, the curves are extracted from the bar at index barPositionIndex. The terminations in the 3D Path set will be oriented similarly to the terminations in the rebar.
public static ComputationDataFor3DPathSet CreateFromRebar(
	Rebar rebar,
	int barPositionIndex
)
  • rebar
    The rebar element from which the data will be obtained.
  • Int32
    barPositionIndex
    The index of the bar. Should be a number between 0 and Rebar.NumberOfBarPositions - 1.
Return Value ComputationDataFor3DPathSet Returns a new instance of the ComputationDataFor3DPathSet class.
  • barPositionIndex should be a number between 0 and Rebar.NumberOfBarPositions - 1. -or- rebar should have coplanar curves.
  • A non-optional argument was null