<?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: Open every family in a directory &amp;amp; sub directory, see if a nested family exists, if it does - swap it with another nested family in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/open-every-family-in-a-directory-amp-sub-directory-see-if-a/m-p/11589332#M15295</link>
    <description>&lt;P&gt;Ahhh you shot my hopes down pretty quickly... It did sound easy until you mentioned this... I will dig around, hopefully a good chunk of them are placed with same origin and no constraints&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":crossed_fingers:"&gt;🤞&lt;/span&gt;(ADA clearances at various elements) Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1035859"&gt;@RPTHOMAS108&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Nov 2022 23:07:06 GMT</pubDate>
    <dc:creator>EATREVITPOOPCAD</dc:creator>
    <dc:date>2022-11-30T23:07:06Z</dc:date>
    <item>
      <title>Open every family in a directory &amp; sub directory, see if a nested family exists, if it does - swap it with another nested family</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/open-every-family-in-a-directory-amp-sub-directory-see-if-a/m-p/11589054#M15293</link>
      <description>&lt;P&gt;The title says it all...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to make a plugin, that when executed will not affect whatever current open project is at all. Instead, it will go to a given directory and its sub-directories, open each RFA file, see if there is a nested family in it with a specific file name and if it exists swap it with another nested family by file name, and then saves changes. If the open family does not contain a nested family with a specific name, then it will just close the file without saving any changes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would like to get advice and pointers from this wonderful community. Is this easy as it sounds? Any similar examples out there? I've seen a few examples of doing this within the open Revit project, but not the way I described it above.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 20:43:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/open-every-family-in-a-directory-amp-sub-directory-see-if-a/m-p/11589054#M15293</guid>
      <dc:creator>EATREVITPOOPCAD</dc:creator>
      <dc:date>2022-11-30T20:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Open every family in a directory &amp; sub directory, see if a nested family exists, if it does - swap it with another nested family</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/open-every-family-in-a-directory-amp-sub-directory-see-if-a/m-p/11589159#M15294</link>
      <description>&lt;P&gt;The opening and looking for nested families is easy in part*. The more difficult part is swapping the family without breaking existing functionality. The nested family may be used in a way where its parameters are driven through the host family. Swapping the family out would likely break that relationship additionally if the family is of a different category, then that will also affect the parameters that refer to it. So you would have to first build a map of existing relationships to then transfer those over to the replacement. I think also nesting level makes these kinds of tasks inherently complex. You may be ok if the linked parameters are like for like but you would have to test that since I wouldn't bank on it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*In terms of comparing family file names the nearest you'll get to that is perhaps by editing the nested family and looking at the path. So in effect you would have to edit every single family to get the path in order to identify if it is the family you want to change. The family name alone would not be adequate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 21:32:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/open-every-family-in-a-directory-amp-sub-directory-see-if-a/m-p/11589159#M15294</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2022-11-30T21:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Open every family in a directory &amp; sub directory, see if a nested family exists, if it does - swap it with another nested family</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/open-every-family-in-a-directory-amp-sub-directory-see-if-a/m-p/11589332#M15295</link>
      <description>&lt;P&gt;Ahhh you shot my hopes down pretty quickly... It did sound easy until you mentioned this... I will dig around, hopefully a good chunk of them are placed with same origin and no constraints&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":crossed_fingers:"&gt;🤞&lt;/span&gt;(ADA clearances at various elements) Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1035859"&gt;@RPTHOMAS108&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 23:07:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/open-every-family-in-a-directory-amp-sub-directory-see-if-a/m-p/11589332#M15295</guid>
      <dc:creator>EATREVITPOOPCAD</dc:creator>
      <dc:date>2022-11-30T23:07:06Z</dc:date>
    </item>
  </channel>
</rss>

