<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Stair Run Offset in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/stair-run-offset/m-p/11355004#M17520</link>
    <description>&lt;P&gt;Hi, I have changed the codes from image to text. Thanks in advance for you help.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Aug 2022 01:16:15 GMT</pubDate>
    <dc:creator>cheahjunyao1998</dc:creator>
    <dc:date>2022-08-12T01:16:15Z</dc:date>
    <item>
      <title>Stair Run Offset</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/stair-run-offset/m-p/11352715#M17518</link>
      <description>&lt;P&gt;Hello everyone. I am now experiencing a problem where the stair run is offset when the actual run width is not equal to 1000mm. Is there anyone who can identify the potential problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the actual run width is 1000mm:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cheahjunyao1998_6-1660184168963.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1102681i3C0CCF99ED3AAFC9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cheahjunyao1998_6-1660184168963.png" alt="cheahjunyao1998_6-1660184168963.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the actual run width is 1500mm:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cheahjunyao1998_5-1660184133888.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1102679i072E7428D088F3FC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cheahjunyao1998_5-1660184133888.png" alt="cheahjunyao1998_5-1660184133888.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the actual run width is 500mm:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cheahjunyao1998_0-1660266726759.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1103142i2907193EA104E4A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cheahjunyao1998_0-1660266726759.png" alt="cheahjunyao1998_0-1660266726759.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the codes to create the run:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Line locationLine = Line.CreateBound(new XYZ(startPoint.X, startPoint.Y, topLevel.Elevation), new XYZ(endPoint.X, endPoint.Y, topLevel.Elevation));&lt;BR /&gt;StairsRunJustification orientation = StairsRunJustification.Left;&lt;BR /&gt;if (staircase.Orientation == StaircaseOrientation.ToLeft)&lt;BR /&gt;{&lt;BR /&gt;orientation = StairsRunJustification.Right;&lt;BR /&gt;}&lt;BR /&gt;StairsRun newRun2 = StairsRun.CreateStraightRun(doc, newStairsId, locationLine, orientation);&lt;BR /&gt;newRun2.ActualRunWidth = ConverterHelper.MmToFoot(flight.Width);&lt;BR /&gt;newRun2.BeginsWithRiser = true;&lt;BR /&gt;newRun2.EndsWithRiser = false;&lt;BR /&gt;newRun2.BaseElevation = ConverterHelper.MmToFoot(staircase.Start.Z);&lt;BR /&gt;newRun2.TopElevation = ConverterHelper.MmToFoot(staircase.End.Z);&lt;BR /&gt;var runType = doc.GetElement(newRun2.GetTypeId()) as StairsRunType;&lt;BR /&gt;runType.StructuralDepth = ConverterHelper.MmToFoot(staircase.FlightElements[0].WaistThickness);&lt;/P&gt;&lt;P&gt;stair.get_Parameter(BuiltInParameter.ALL_MODEL_MARK).Set(staircase.Label);&lt;BR /&gt;stair.get_Parameter(BuiltInParameter.ALL_MODEL_INSTANCE_COMMENTS).Set(staircase.ID);&lt;BR /&gt;t.Commit();&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 01:14:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/stair-run-offset/m-p/11352715#M17518</guid>
      <dc:creator>cheahjunyao1998</dc:creator>
      <dc:date>2022-08-12T01:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: Stair Run Offset</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/stair-run-offset/m-p/11353411#M17519</link>
      <description>&lt;P&gt;I cannot read your code. It would be easier to read as text, rather than an image. There is a button above the editor to &lt;U&gt;Insert/Edit code sample&lt;/U&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 11:31:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/stair-run-offset/m-p/11353411#M17519</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2022-08-11T11:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Stair Run Offset</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/stair-run-offset/m-p/11355004#M17520</link>
      <description>&lt;P&gt;Hi, I have changed the codes from image to text. Thanks in advance for you help.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 01:16:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/stair-run-offset/m-p/11355004#M17520</guid>
      <dc:creator>cheahjunyao1998</dc:creator>
      <dc:date>2022-08-12T01:16:15Z</dc:date>
    </item>
  </channel>
</rss>

