<?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: Rebar shape length parameters inverted when creating rebar from curves in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/rebar-shape-length-parameters-inverted-when-creating-rebar-from/m-p/14007378#M85271</link>
    <description>&lt;P&gt;Any guidance, please? Thanks! this is Revit 2024&lt;/P&gt;</description>
    <pubDate>Fri, 06 Feb 2026 13:11:53 GMT</pubDate>
    <dc:creator>purzua5SCRP</dc:creator>
    <dc:date>2026-02-06T13:11:53Z</dc:date>
    <item>
      <title>Rebar shape length parameters inverted when creating rebar from curves</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/rebar-shape-length-parameters-inverted-when-creating-rebar-from/m-p/13992938#M85241</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’m having problems when creating rebars using the API (although I think the same issue also happens when using the Revit UI).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a custom Rebar Shape family named “TEST2”:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="purzua5SCRP_0-1769526562591.png" style="width: 223px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1613575iC0DCDF817F595653/image-dimensions/223x320?v=v2" width="223" height="320" role="button" title="purzua5SCRP_0-1769526562591.png" alt="purzua5SCRP_0-1769526562591.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;To create a rebar in the following floor, I define three points, which define two curves. Hoping curve0 gets length A and curve1 length B:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="purzua5SCRP_6-1769535648976.png" style="width: 247px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1613621i019DFDF9DA201E98/image-dimensions/247x294?v=v2" width="247" height="294" role="button" title="purzua5SCRP_6-1769535648976.png" alt="purzua5SCRP_6-1769535648976.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="purzua5SCRP_7-1769535752136.png" style="width: 628px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1613622i2A269CCFADFDC796/image-dimensions/628x273?v=v2" width="628" height="273" role="button" title="purzua5SCRP_7-1769535752136.png" alt="purzua5SCRP_7-1769535752136.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After execution, I get this rebar. As you can see, the parameters are inverted: I expected the horizontal bar to have length A and the vertical bar to have length B.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="purzua5SCRP_2-1769535036893.png" style="width: 314px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1613616i18BFB59F3B5EF93F/image-dimensions/314x348?v=v2" width="314" height="348" role="button" title="purzua5SCRP_2-1769535036893.png" alt="purzua5SCRP_2-1769535036893.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I already tried editing the Rebar Shape family so that length A &amp;gt; length B, but the result is the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, if I edit the Rebar Shape family (toggle Shape Orientation):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="purzua5SCRP_3-1769535258702.png" style="width: 284px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1613617i22CDA598FE807084/image-dimensions/284x353?v=v2" width="284" height="353" role="button" title="purzua5SCRP_3-1769535258702.png" alt="purzua5SCRP_3-1769535258702.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And in the code I define the points like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="purzua5SCRP_8-1769535854886.png" style="width: 266px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1613623i0F16584710253D21/image-dimensions/266x338?v=v2" width="266" height="338" role="button" title="purzua5SCRP_8-1769535854886.png" alt="purzua5SCRP_8-1769535854886.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get this rebar. Now the first curve (curve0) gets the correct length parameter (B)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="purzua5SCRP_5-1769535414101.png" style="width: 303px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1613620iB220E727F115FC4B/image-dimensions/303x362?v=v2" width="303" height="362" role="button" title="purzua5SCRP_5-1769535414101.png" alt="purzua5SCRP_5-1769535414101.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be great if someone could explain the logic behind this behavior.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should I always define the points in the Shape Orientation order?&lt;/P&gt;&lt;P&gt;How does Revit assign parameters to rebars created using the CreateFromCurvesAndShape method?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2026 15:38:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/rebar-shape-length-parameters-inverted-when-creating-rebar-from/m-p/13992938#M85241</guid>
      <dc:creator>purzua5SCRP</dc:creator>
      <dc:date>2026-02-06T15:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Rebar shape length parameters inverted when creating rebar from curves</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/rebar-shape-length-parameters-inverted-when-creating-rebar-from/m-p/14007378#M85271</link>
      <description>&lt;P&gt;Any guidance, please? Thanks! this is Revit 2024&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2026 13:11:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/rebar-shape-length-parameters-inverted-when-creating-rebar-from/m-p/14007378#M85271</guid>
      <dc:creator>purzua5SCRP</dc:creator>
      <dc:date>2026-02-06T13:11:53Z</dc:date>
    </item>
  </channel>
</rss>

