2024 Method
Changes 0
M

StairsRun.CreateSpiralRun

Description:
Creates a spiral run in the project document by providing the center, start angle and included angle.
Remarks:
The new stairs run and the document will be regenerated. This should be run from within an open transaction.
public static StairsRun CreateSpiralRun(
	Document document,
	ElementId stairsId,
	XYZ center,
	double radius,
	double startAngle,
	double includedAngle,
	bool clockwise,
	StairsRunJustification justification
)
  • document
    The document.
  • stairsId
    The stairs that the new stairs run will belong to.
  • center
    The center of the location arc of the spiral run. The Z coordinate of the center is the base elevation for the new run (in model coordinates). It must be greater than or equal to the stairs base elevation.
  • Double
    radius
    The radius of the location arc of the spiral run.
  • Double
    startAngle
    The start angle of the location arc of the spiral run. The angle's coordinate system is world coordinate system which always is XYZ.BasisX and XYZ.BasisY.
  • Double
    includedAngle
    The total angle covered by the spiral run. Must be a positive value (direction is determined by the clockwise flag).
  • Boolean
    clockwise
    True if the spiral run will be created along clockwise direction, False otherwise.
  • justification
    The location path justification of the new stairs run.
Return Value StairsRun The new stairs run.