Stair Generation - locationPath issue

Stair Generation - locationPath issue

Anonymous
Not applicable
300 Views
1 Reply
Message 1 of 2

Stair Generation - locationPath issue

Anonymous
Not applicable

Hi All!

 

I am trying to generate stair runs using:

Line locationLine = Line.CreateBound(StartPoint,EndPoint);
StairsRun newRun = StairsRun.CreateStraightRun(document, newStairsId, locationLine, StairsRunJustification.Center);

 

Unfortunately for these lines that have locationLine.Direction = (0, -1, 0) Im getting this error:

The input locationPath is not a valid location path line for straight run.
Parameter name: locationPath

 

The lines seem to be ok nothing different from lines of stairs that were generated successfully apart from the direction. 

 

Has anyone faced a similar issue?

 

Thanks for help in advance!

0 Likes
301 Views
1 Reply
Reply (1)
Message 2 of 2

zrodgersTSSSU
Advocate
Advocate

Here is a link from Jeremys GitHub it has a lot of examples. Hopefully this answers your questions. If this answers your question please mark it as solved.

Link:

Stair Automation 

 

 

0 Likes