2022 Method
Changes 0
M

StairsRun.CreateStraightRun

Description:
Creates a straight run in the project document.
Remarks:
The new stairs run and the document will be regenerated. This should be run from within an open transaction.
public static StairsRun CreateStraightRun(
	Document document,
	ElementId stairsId,
	Line locationPath,
	StairsRunJustification justification
)
  • document
    The document.
  • stairsId
    The stairs that the new stairs run will belong to.
  • locationPath
    The line for location path of the new stairs run. The line has following restriction:
    • The line should be bound line which is parallel to the XY plane.
    • The Z coordinate of the line is the base elevation for the new run (in model coordinates). It must be greater than or equal to the stairs base elevation.
    • The number of created risers will be calculated by rounding the length of the location path to a multiple of the tread depth.
  • justification
    The location path justification of the new stairs run.
Return Value StairsRun The new stairs run.