Message 1 of 1
Stair generation - invalid locationPath

Not applicable
06-08-2021
08:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all!
I am trying to generate stairs using
Line locationLine = Line.CreateBound(StartPoint,EndPoint);
StairsRun.CreateStraightRun(document, newStairsId, locationLine, StairsRunJustification.Center);
For majority of stairs it works fine but these that have
locationLine.Direction = (0, -1, 0)
I am getting this error with no explanation why the path is invalid:
The input locationPath is not a valid location path line for straight run.
Parameter name: locationPath
Has anyone had a similar issue before? What could make the locationLine "invalid"?
Thanks for help!