<?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: Shared Nested families within a Selection in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/shared-nested-families-within-a-selection/m-p/4752449#M77963</link>
    <description>Super &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
    <pubDate>Wed, 15 Jan 2014 15:53:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-01-15T15:53:53Z</dc:date>
    <item>
      <title>Shared Nested families within a Selection</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/shared-nested-families-within-a-selection/m-p/4742757#M77958</link>
      <description>&lt;P&gt;I have an add-on that loops through selected components with this code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;foreach &lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;Element&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; ele &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;in&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; sel.Elements)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;I'm only getting the parent family information in my selection.&amp;nbsp; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;Is there a way to retreive the nested components?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2014 18:39:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/shared-nested-families-within-a-selection/m-p/4742757#M77958</guid>
      <dc:creator>RickyBell</dc:creator>
      <dc:date>2014-01-10T18:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Nested families within a Selection</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/shared-nested-families-within-a-selection/m-p/4746133#M77959</link>
      <description>&lt;P&gt;Hi, you can retreive the elementId's of nested fams like so :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ElementSet elemset = commandData.Application.ActiveUIDocument.Selection.Elements;&lt;/P&gt;&lt;P&gt;foreach (Element el in elemset)&lt;BR /&gt;{&lt;BR /&gt;FamilyInstance fi = el as FamilyInstance;&lt;/P&gt;&lt;P&gt;var subs = fi.GetSubComponentIds();&lt;BR /&gt;//subs is the list of nested families&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Remy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2014 07:33:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/shared-nested-families-within-a-selection/m-p/4746133#M77959</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-13T07:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Nested families within a Selection</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/shared-nested-families-within-a-selection/m-p/4749739#M77960</link>
      <description>&lt;P&gt;Thanks for the reply.&amp;nbsp; Using your code from the project, I get the same results.&amp;nbsp; Just the parent information.&amp;nbsp; I've included the component I'm working with.&amp;nbsp; This Flange Adapter has three subComponents, the last SubComponent has a subComponent of it's own.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally, I'd like to be able to loop through all of these items.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for any help!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2014 15:15:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/shared-nested-families-within-a-selection/m-p/4749739#M77960</guid>
      <dc:creator>RickyBell</dc:creator>
      <dc:date>2014-01-14T15:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Nested families within a Selection</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/shared-nested-families-within-a-selection/m-p/4749907#M77961</link>
      <description>&lt;P&gt;Okay, This is how it goes :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// nested families selecteren&lt;BR /&gt;ElementSet elemset = commandData.Application.ActiveUIDocument.Selection.Elements;&lt;/P&gt;&lt;P&gt;foreach (Element el in elemset)&lt;BR /&gt;{&lt;BR /&gt;FamilyInstance fi = el as FamilyInstance;&lt;/P&gt;&lt;P&gt;IList&amp;lt;ElementId&amp;gt; subs = fi.GetSubComponentIds().ToList();&lt;BR /&gt;&lt;BR /&gt;Element ele = doc.GetElement(subs[0]); // okay, do null check if family has no subcomponents&lt;BR /&gt;Parameter par =&amp;nbsp;ele.get_Parameter(buildin_parameter); &amp;nbsp;// or just loop al ele.paramters for the one you need&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2014 16:13:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/shared-nested-families-within-a-selection/m-p/4749907#M77961</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-14T16:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Nested families within a Selection</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/shared-nested-families-within-a-selection/m-p/4752337#M77962</link>
      <description>&lt;P&gt;Thanks for your help.&amp;nbsp; I was able to get it working using this code idea here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://revitapisearch.com/html/be37702c-1dcd-bc14-aa35-45f06f20210a.htm"&gt;http://revitapisearch.com/html/be37702c-1dcd-bc14-aa35-45f06f20210a.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ICollection was the difference.&amp;nbsp; I took my loop three layers deep to get all the SubComponents.&amp;nbsp; Thanks again!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2014 15:14:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/shared-nested-families-within-a-selection/m-p/4752337#M77962</guid>
      <dc:creator>RickyBell</dc:creator>
      <dc:date>2014-01-15T15:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Nested families within a Selection</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/shared-nested-families-within-a-selection/m-p/4752449#M77963</link>
      <description>Super &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Wed, 15 Jan 2014 15:53:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/shared-nested-families-within-a-selection/m-p/4752449#M77963</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-15T15:53:53Z</dc:date>
    </item>
  </channel>
</rss>

