<?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: RebarConstraint ToOtherRebar in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/rebarconstraint-tootherrebar/m-p/13040411#M2881</link>
    <description>&lt;P&gt;Thanks Jeremy Tammik so much, I really tried everything but couldn't create a RebarConstraint with type ToOtherRebar.&lt;/P&gt;&lt;P&gt;I noticed that when I get all the RebarConstraints of Handle there is no RebarConstraint type ToOtherRebar even though I set it manually in Revit environment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again, if there is any new information please let me know&lt;/P&gt;</description>
    <pubDate>Tue, 24 Sep 2024 07:10:00 GMT</pubDate>
    <dc:creator>vankhoi9966</dc:creator>
    <dc:date>2024-09-24T07:10:00Z</dc:date>
    <item>
      <title>RebarConstraint ToOtherRebar</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/rebarconstraint-tootherrebar/m-p/13039537#M2879</link>
      <description>&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;How to set RebarConstrait as ToOtherRebar like in the picture.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is that I cannot get or create a RebarConstraint with type ToOtherRebar so that I can continue processing in the API if the user has not manually manipulated in the Revit environment for the Handle to be a constraint to Rebar.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I use Shape Driven Rebar&lt;BR /&gt;Sorry, I use google translate because my english is not good.&lt;BR /&gt;Thanks all&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="Screenshot 2024-09-24 041734.png" style="width: 984px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1412775iE6E6D880D5282855/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-09-24 041734.png" alt="Screenshot 2024-09-24 041734.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 12:22:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/rebarconstraint-tootherrebar/m-p/13039537#M2879</guid>
      <dc:creator>vankhoi9966</dc:creator>
      <dc:date>2024-09-24T12:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: RebarConstraint ToOtherRebar</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/rebarconstraint-tootherrebar/m-p/13040253#M2880</link>
      <description>&lt;P&gt;I searched my files and found some hints in the DLL-embedded Revit API documentation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Searching 6234 files for "ToOtherRebar" (regex)

~/a/src/rvt/ObjExporter/bin/Debug/RevitAPI.xml:
 22488  &amp;lt;/summary&amp;gt;
 22489        &amp;lt;remarks&amp;gt;
 22490:    The RebarConstraintType of the RebarConstraint must be 'ToOtherRebar,' and the
 22491     RebarTargetConstraintType must be 'Edge' or 'BarBend.'
 22492  &amp;lt;/remarks&amp;gt;
 .....
 22513      &amp;lt;member name="M:Autodesk.Revit.DB.Structure.RebarConstraint.TargetRebarConstraintTypeIsEdge"&amp;gt;
 22514        &amp;lt;summary&amp;gt;
 22515:    Returns true if the RebarConstraintType of the RebarConstraint is 'ToOtherRebar,'
 22516     and the RebarConstraint is attached to an edge of the other Rebar Element.
 22517  &amp;lt;/summary&amp;gt;
 .....
 22528  &amp;lt;/since&amp;gt;
 22529      &amp;lt;/member&amp;gt;
 22530:     &amp;lt;member name="M:Autodesk.Revit.DB.Structure.RebarConstraint.IsToOtherRebar"&amp;gt;
 22531        &amp;lt;summary&amp;gt;
 22532:    Returns true if the RebarConstraintType of the RebarConstraint is 'ToOtherRebar.'
 22533  &amp;lt;/summary&amp;gt;
 22534        &amp;lt;since&amp;gt;
 .....
 22688     RebarConstraint is no longer valid.
 22689     -or-
 22690:    The RebarConstraint is not of RebarConstraintType 'ToOtherRebar.'
 22691     -or-
 22692     The RebarTargetConstraintType is not 'HookBend' or 'BarBend'.
 .....
 22701        &amp;lt;summary&amp;gt;
 22702     Returns 0 or 1 to indicate which end hook on the other Rebar Element to which this RebarConstraint is attached.
 22703:    The RebarConstraint must be of RebarConstraintType 'ToOtherRebar,' and the TargetRebarConstraintType
 22704     must be 'HookBend.'
 22705     Rebar must be Shape Driven Rebar element.
 .....
 22711     RebarConstraint is no longer valid.
 22712     -or-
 22713:    The RebarConstraint is not of RebarConstraintType 'ToOtherRebar.'
 22714     -or-
 22715     The RebarTargetConstraintType is not 'HookBend'
 .....
 22724        &amp;lt;summary&amp;gt;
 22725     Returns the number of the bend on the other Rebar Element to which this RebarConstraint is attached.
 22726:    The RebarConstraint must be of RebarConstraintType 'ToOtherRebar,' and the TargetRebarConstraintType
 22727     must be 'BarBend.'
 22728     Rebar must be Shape Driven Rebar element.
 .....
 22731     RebarConstraint is no longer valid.
 22732     -or-
 22733:    The RebarConstraint is not of RebarConstraintType 'ToOtherRebar.'
 22734     -or-
 22735     The RebarTargetConstraintType is not 'BarBend'
 .....
 22744        &amp;lt;summary&amp;gt;
 22745     Returns the number of the edge on the other Rebar Element to which this RebarConstraint is attached.
 22746:    The RebarConstraint must be of RebarConstraintType 'ToOtherRebar,' and the TargetRebarConstraintType
 22747     must be 'Edge.'
 22748     Rebar must be Shape Driven Rebar element.
 .....
 22751     RebarConstraint is no longer valid.
 22752     -or-
 22753:    The RebarConstraint is not of RebarConstraintType 'ToOtherRebar.'
 22754     -or-
 22755     The RebarConstraint is not attached to an edge, or bend, or hook bend of another Rebar Element.
 .....
 22765     Returns the TargetRebarConstraintType of the handle on the other Rebar Element
 22766     to which this RebarConstraint is attached. The RebarConstraintType of the
 22767:    RebarConstraint must be 'ToOtherRebar.'
 22768     Rebar must be Shape Driven Rebar element.
 22769  &amp;lt;/summary&amp;gt;
 .....
 22771     RebarConstraint is no longer valid.
 22772     -or-
 22773:    The RebarConstraint is not of RebarConstraintType 'ToOtherRebar.'
 22774     -or-
 22775     Constrained rebar is a free form rebar element.
 .....
 23223  &amp;lt;/since&amp;gt;
 23224      &amp;lt;/member&amp;gt;
 23225:     &amp;lt;member name="F:Autodesk.Revit.DB.Structure.RebarConstraintType.ToOtherRebar"&amp;gt;
 23226        &amp;lt;summary&amp;gt;
 23227     Handle is attached to a handle on another Rebar Element.  Only applies to
 .....
 24546     locked dimension, moving one of dimension references, and then re-locking the
 24547     dimension - all in one step.&amp;lt;/p&amp;gt;
 24548:         &amp;lt;p&amp;gt;When a handle with a ToCover or ToOtherRebar preferred constraint is dragged by
 24549     the user, it will snap back to its constraint target, unless it is dragged
 24550     beyond tolerance distance.  In that case, it will select a new constraint using&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe you can glean some info from them. Another way to explore how to achieve this might be to set up the required constraint manually in the end user interface and then use RevitLookup and other database exploration tools to analyse the resulting elements, their properties and relationships. Meanwhile, I also &lt;A href="https://autodesk.slack.com/archives/C0SR6NAP8/p1727155513143979" target="_blank"&gt;asked&lt;/A&gt; the development team for advice for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 05:27:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/rebarconstraint-tootherrebar/m-p/13040253#M2880</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2024-09-24T05:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: RebarConstraint ToOtherRebar</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/rebarconstraint-tootherrebar/m-p/13040411#M2881</link>
      <description>&lt;P&gt;Thanks Jeremy Tammik so much, I really tried everything but couldn't create a RebarConstraint with type ToOtherRebar.&lt;/P&gt;&lt;P&gt;I noticed that when I get all the RebarConstraints of Handle there is no RebarConstraint type ToOtherRebar even though I set it manually in Revit environment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again, if there is any new information please let me know&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 07:10:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/rebarconstraint-tootherrebar/m-p/13040411#M2881</guid>
      <dc:creator>vankhoi9966</dc:creator>
      <dc:date>2024-09-24T07:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: RebarConstraint ToOtherRebar</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/rebarconstraint-tootherrebar/m-p/13040951#M2882</link>
      <description>&lt;P&gt;Answer:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;RebarConstraint.SetToUseClearBarSpacing(useClearBarSpacing)&lt;BR /&gt;&lt;SPAN&gt;&lt;A href="https://www.revitapidocs.com/2024/2e8fd543-a754-0c53-6812-e11b4c27f438.htm" target="_blank"&gt;https://www.revitapidocs.com/2024/2e8fd543-a754-0c53-6812-e11b4c27f438.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the picture, it looks like you want to set it to "true".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 11:47:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/rebarconstraint-tootherrebar/m-p/13040951#M2882</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2024-09-24T11:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: RebarConstraint ToOtherRebar</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/rebarconstraint-tootherrebar/m-p/13041043#M2883</link>
      <description>&lt;P&gt;Thanks jeremy_tammik, maybe my question was not clear, I apologize for this.&lt;/P&gt;&lt;P&gt;My problem is that I cannot get or create a RebarConstraint with type ToOtherRebar so that I can continue processing in the API if the user has not manually manipulated in the Revit environment for the Handle to be a constraint to Rebar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 12:21:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/rebarconstraint-tootherrebar/m-p/13041043#M2883</guid>
      <dc:creator>vankhoi9966</dc:creator>
      <dc:date>2024-09-24T12:21:30Z</dc:date>
    </item>
  </channel>
</rss>

