RVTDocs.com

StairsRun.SetLocationPathForStraightRun

Method
Description:
Set location path for a straight run by giving a line.
Syntax
public static bool SetLocationPathForStraightRun(
	StairsRun stairsRun,
	Line locationPath
)
Parameters
Parameter Type Description
stairsRun StairsRun The run whose location path will be set.
locationPath Line The location path.
Return Value
Type Description
Boolean Indicate if set is success or not.
Exceptions
Exception Condition
ArgumentException The input locationPath is not a bound line. -or- The input locationPath is not a valid location path line for straight run. -or- The locationPath is not valid line used as stairs path(probably it's too short).
ArgumentNullException A non-optional argument was null
InvalidOperationException The stairs element represented by stairsRun is not in an active StairsEditScope. The run cannot be modified.
RegenerationFailedException The locationPath doesn't satisfy restrictions to generate straight run.