<?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: NewFamilyInstance Workaround in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/newfamilyinstance-workaround/m-p/5246265#M75891</link>
    <description>&lt;P&gt;Dear Graham,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much for this important hint.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actually, the topic '&lt;STRONG&gt;Need to Regenerate&lt;/STRONG&gt;' is a&amp;nbsp;big and important one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Omitting a required regeneration can cause a lot of head scratching, not to mention headache:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.33" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.33&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Sep 2014 07:22:51 GMT</pubDate>
    <dc:creator>jeremytammik</dc:creator>
    <dc:date>2014-09-02T07:22:51Z</dc:date>
    <item>
      <title>NewFamilyInstance Workaround</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/newfamilyinstance-workaround/m-p/5244861#M75889</link>
      <description>&lt;P&gt;I thought i would share what appears to be a workaround when placing new instances of families using the NewFamilyInstance method (2014).&amp;nbsp; I was using the following overload to place an electrical socket in a wall:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Document.Create.NewFamilyInstance(XYZ location, FamilySymbol symbol, Element host, Level level, StructuralType structuralType)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This was successfully placing the family instance, problem is i then wanted to flip the face using the&amp;nbsp;familyInstance.flipFacing() method which always returned false even though i&amp;nbsp;could flip the instance through the user interface.&amp;nbsp; But i found if i place the instance, commit the current transaction, then attempt to flip the instance in a new trasnsaction then it worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps someone else who may be fighting similar issues with the NewFamilyInstance method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Graham Cook&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Sep 2014 08:43:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/newfamilyinstance-workaround/m-p/5244861#M75889</guid>
      <dc:creator>grahamcook</dc:creator>
      <dc:date>2014-09-01T08:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: NewFamilyInstance Workaround</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/newfamilyinstance-workaround/m-p/5244877#M75890</link>
      <description>&lt;P&gt;Actually, doing a Doc.Regenerate() between placing the instance and flipFacing has the same effect and is obviously more straight forward.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Graham Cook&lt;/P&gt;</description>
      <pubDate>Mon, 01 Sep 2014 08:54:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/newfamilyinstance-workaround/m-p/5244877#M75890</guid>
      <dc:creator>grahamcook</dc:creator>
      <dc:date>2014-09-01T08:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: NewFamilyInstance Workaround</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/newfamilyinstance-workaround/m-p/5246265#M75891</link>
      <description>&lt;P&gt;Dear Graham,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much for this important hint.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actually, the topic '&lt;STRONG&gt;Need to Regenerate&lt;/STRONG&gt;' is a&amp;nbsp;big and important one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Omitting a required regeneration can cause a lot of head scratching, not to mention headache:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.33" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.33&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Sep 2014 07:22:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/newfamilyinstance-workaround/m-p/5246265#M75891</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2014-09-02T07:22:51Z</dc:date>
    </item>
  </channel>
</rss>

