<?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: Access rebar element through rebar container in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/access-rebar-element-through-rebar-container/m-p/10445719#M69153</link>
    <description>&lt;P&gt;I &lt;A href="https://autodesk.slack.com/archives/C0SR6NAP8/p1625547631151600" target="_blank"&gt;asked&lt;/A&gt; the development team for you and will let you know when I hear back from them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Jul 2021 05:02:29 GMT</pubDate>
    <dc:creator>jeremy_tammik</dc:creator>
    <dc:date>2021-07-06T05:02:29Z</dc:date>
    <item>
      <title>Access rebar element through rebar container</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/access-rebar-element-through-rebar-container/m-p/5925040#M69148</link>
      <description>&lt;P&gt;Hi!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a rebar schedule in Dynamo but it seems to be not so easy to me... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I get a help on accessing rebar elements from rebar containers?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Followings are what I have tried in Python...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;bars =&amp;nbsp;&lt;SPAN&gt;FilteredElementCollector&lt;/SPAN&gt;(doc).&lt;SPAN&gt;OfClass&lt;/SPAN&gt;(Autodesk.Revit.DB.Structure.RebarContainer).&lt;SPAN&gt;ToElements&lt;/SPAN&gt;()&lt;/P&gt;&lt;P&gt;(I can get rebar container list from this line)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;bars =&amp;nbsp;&lt;SPAN&gt;FilteredElementCollector&lt;/SPAN&gt;(doc).&lt;SPAN&gt;OfClass&lt;/SPAN&gt;(Autodesk.Revit.DB.Structure.Rebar).&lt;SPAN&gt;ToElements&lt;/SPAN&gt;()&lt;/P&gt;&lt;P&gt;(but this line returns nothing)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also tried this one... but I couldn't understand what exactly the RebarContainerItem means..&lt;/P&gt;&lt;P&gt;foreach(RebarContainerItem item in con.GetRebarContainerIterator())&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated!!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 18:51:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/access-rebar-element-through-rebar-container/m-p/5925040#M69148</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-25T18:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Access rebar element through rebar container</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/access-rebar-element-through-rebar-container/m-p/5929649#M69149</link>
      <description>&lt;P&gt;Dear JLee,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just looking at the Revit API help file Revit API.chm, I see the following description of the&amp;nbsp;RebarContainer class: "The Rebar Container element ...&amp;nbsp;is a collection of rebar sets".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Therefore, how could you expect to be able to access an individual rebar in a&amp;nbsp;&lt;SPAN&gt;RebarContainer element?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The&amp;nbsp;&lt;SPAN&gt;RebarContainerItem objects contained within the&amp;nbsp;&lt;SPAN&gt;RebarContainer provide a list of member properties and methods that you should take a closer look at.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;They may provide what you need.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Have you installed the Revit SDK and taken a look at the&amp;nbsp;&lt;SPAN&gt;Revit API help file Revit API.chm?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;I think you will need to do that in order to understand more.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Good luck, much success exploring, and have fun!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2015 17:17:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/access-rebar-element-through-rebar-container/m-p/5929649#M69149</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2015-11-30T17:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Access rebar element through rebar container</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/access-rebar-element-through-rebar-container/m-p/5929661#M69150</link>
      <description>Thanks Jeremy. I am downloading sdk file now and will take a look at Revit API help file.</description>
      <pubDate>Mon, 30 Nov 2015 17:21:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/access-rebar-element-through-rebar-container/m-p/5929661#M69150</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-30T17:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: Access rebar element through rebar container</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/access-rebar-element-through-rebar-container/m-p/9576861#M69151</link>
      <description>&lt;P&gt;Here is a link to what jeremy said.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="https://apidocs.co/apps/revit/2018/61979a57-facc-d97a-7a35-ee04eed59156.htm" href="https://apidocs.co/apps/revit/2018/61979a57-facc-d97a-7a35-ee04eed59156.htm" target="_blank" rel="noopener"&gt;https://apidocs.co/apps/revit/2018/61979a57-facc-d97a-7a35-ee04eed59156.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 16:02:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/access-rebar-element-through-rebar-container/m-p/9576861#M69151</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-12T16:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Access rebar element through rebar container</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/access-rebar-element-through-rebar-container/m-p/10445457#M69152</link>
      <description>&lt;P&gt;guys, I'm having the exact same issue.. Does anyone have ideas on how to schedule bars/ tag these in views that belong to a RebarContainer?? I've started exploring RebarContainer class via API &amp;amp; see very limited use for it.. When bars 'assembled' into RebarContainer they lose Rebar Numbers (even though Partition as a readonly property extended to the whole RebarContainer object). RebarContainerItem objects do not have any properties that can be used for scheduling (apart from ItemIndex maybe, but it cannot be reported to Revit schedules..).. Is there a solution to scheduling and tagging in views individual RebarContainerItems??&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 01:05:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/access-rebar-element-through-rebar-container/m-p/10445457#M69152</guid>
      <dc:creator>anton.bondarchuk</dc:creator>
      <dc:date>2021-07-06T01:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Access rebar element through rebar container</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/access-rebar-element-through-rebar-container/m-p/10445719#M69153</link>
      <description>&lt;P&gt;I &lt;A href="https://autodesk.slack.com/archives/C0SR6NAP8/p1625547631151600" target="_blank"&gt;asked&lt;/A&gt; the development team for you and will let you know when I hear back from them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 05:02:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/access-rebar-element-through-rebar-container/m-p/10445719#M69153</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2021-07-06T05:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Access rebar element through rebar container</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/access-rebar-element-through-rebar-container/m-p/10446792#M69154</link>
      <description>&lt;P&gt;Hi Jeremy,&lt;BR /&gt;Thank you for your comment. I would highly appreciate any advice on how to achieve the above. I'm looking into ExtensibleStorage now to configure schema data suitable for my scheduling purposes, but it seems overly complicated for this particular task. RebarContainer class is a really good idea, but unfortunately it's usability is rather very limited&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 13:40:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/access-rebar-element-through-rebar-container/m-p/10446792#M69154</guid>
      <dc:creator>anton.bondarchuk</dc:creator>
      <dc:date>2021-07-06T13:40:38Z</dc:date>
    </item>
  </channel>
</rss>

