2027 Method
Changes 8
M

Rebar.AreBarIndicesValidForSplit

Description:
Verifies that all bar indices in the input set are within the valid range of [0, NumberOfBarPositions - 2].
public static bool AreBarIndicesValidForSplit(
	Document document,
	ElementId elementIdToCheck,
	ISet<int> barIndices
)
  • document
    The document.
  • elementIdToCheck
    The elementId to check.
  • ISet<Int32>
    barIndices
    The set of bar indices to validate.
Return Value Boolean Returns true if the validation is successful, false otherwise.
  • Free Form Rebars other than 3D Path or Morphed, rebar sets with only one bar included or rebars that are part of a group can't be split. Morphed Free Form Rebars that targets Spiral or Lapped Circle shapes can't be split.
  • A non-optional argument was null