<?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: [Bug] document.LoadFamily() breaks UI update in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/bug-document-loadfamily-breaks-ui-update/m-p/11308968#M17916</link>
    <description>&lt;P&gt;I had the same problem in Revit 2022, but for now only on default Sample Architecture Project&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jul 2022 14:26:57 GMT</pubDate>
    <dc:creator>a.slutskij</dc:creator>
    <dc:date>2022-07-20T14:26:57Z</dc:date>
    <item>
      <title>[Bug] document.LoadFamily() breaks UI update</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/bug-document-loadfamily-breaks-ui-update/m-p/11308813#M17915</link>
      <description>&lt;P&gt;When using the document.LoadFamily() method, there is a problem that freezes the UI update of both my plugin and the entire Revit ribbon. The problem occurs when my plugin has a Storyboard animation and when the family is updated during LoadFamily (for example, from version 2019 to 2023).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tested Revit versions: 2021-2023&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Before loading:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nice3point_2-1658323777150.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1093762i419A36543CD19DAD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nice3point_2-1658323777150.png" alt="nice3point_2-1658323777150.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Updating:&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="nice3point_0-1658323737671.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1093760iB876350B5A672354/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nice3point_0-1658323737671.png" alt="nice3point_0-1658323737671.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After loading:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nice3point_1-1658323765193.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1093761iC9C217BF2BD02428/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nice3point_1-1658323765193.png" alt="nice3point_1-1658323765193.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The revit ribbon is not responding, neither is my plugin. Temporary treatment by right-clicking anywhere or left-clicking on the properties panel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solution and family in attached files.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 13:50:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/bug-document-loadfamily-breaks-ui-update/m-p/11308813#M17915</guid>
      <dc:creator>nice3point</dc:creator>
      <dc:date>2022-07-20T13:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: [Bug] document.LoadFamily() breaks UI update</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/bug-document-loadfamily-breaks-ui-update/m-p/11308968#M17916</link>
      <description>&lt;P&gt;I had the same problem in Revit 2022, but for now only on default Sample Architecture Project&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 14:26:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/bug-document-loadfamily-breaks-ui-update/m-p/11308968#M17916</guid>
      <dc:creator>a.slutskij</dc:creator>
      <dc:date>2022-07-20T14:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: [Bug] document.LoadFamily() breaks UI update</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/bug-document-loadfamily-breaks-ui-update/m-p/11309440#M17917</link>
      <description>&lt;P&gt;I was not able to compile your solution in Visual Studio 2022, something with '&lt;EM&gt;Duplicate AttributeUsage&lt;/EM&gt;' related to the '&lt;EM&gt;Microsoft.Toolkit.Mvvm.SourceGenerators.NullabilityAttributesGenerator&lt;/EM&gt;'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I create an example from scratch and looks like works fine.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;After that, I add the 'ProgressRing' code on the WPF and something happens after loading the family, the UI break and stops updating or something.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a quick video.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://youtu.be/ZnaGXmanCrI" target="_blank"&gt;https://youtu.be/ZnaGXmanCrI&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 17:04:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/bug-document-loadfamily-breaks-ui-update/m-p/11309440#M17917</guid>
      <dc:creator>ricaun</dc:creator>
      <dc:date>2022-07-20T17:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: [Bug] document.LoadFamily() breaks UI update</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/bug-document-loadfamily-breaks-ui-update/m-p/11309485#M17918</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4176855"&gt;@ricaun&lt;/a&gt;thanks for the video) &lt;A href="https://github.com/dotnet/wpf/issues/6792#issuecomment-1183530305" target="_blank" rel="noopener"&gt;https://github.com/dotnet/wpf/issues/6792#issuecomment-1183530305&lt;/A&gt;&amp;nbsp; this is a bug in the latest version of .Net 6, Microsoft hasn't fixed it yet, a workaround is to downgrade the Sdk version in global.json &lt;A href="https://github.com/Nice3point/RevitTemplates/discussions/25" target="_blank" rel="noopener"&gt;https://github.com/Nice3point/RevitTemplates/discussions/25&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 20 Jul 2022 17:29:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/bug-document-loadfamily-breaks-ui-update/m-p/11309485#M17918</guid>
      <dc:creator>nice3point</dc:creator>
      <dc:date>2022-07-20T17:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: [Bug] document.LoadFamily() breaks UI update</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/bug-document-loadfamily-breaks-ui-update/m-p/11309615#M17919</link>
      <description>&lt;P&gt;I had the same problem, UI breaks when there is animation during family update&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 18:06:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/bug-document-loadfamily-breaks-ui-update/m-p/11309615#M17919</guid>
      <dc:creator>ilya.sector.1</dc:creator>
      <dc:date>2022-07-20T18:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: [Bug] document.LoadFamily() breaks UI update</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/bug-document-loadfamily-breaks-ui-update/m-p/11309782#M17920</link>
      <description>&lt;P&gt;Looks like is something related to the &lt;STRONG&gt;Storyboard&lt;/STRONG&gt; and &lt;STRONG&gt;Animation&lt;/STRONG&gt; in the WPF.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 19:16:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/bug-document-loadfamily-breaks-ui-update/m-p/11309782#M17920</guid>
      <dc:creator>ricaun</dc:creator>
      <dc:date>2022-07-20T19:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: [Bug] document.LoadFamily() breaks UI update</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/bug-document-loadfamily-breaks-ui-update/m-p/11310520#M17921</link>
      <description>&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/loading-a-rfa-file-into-a-document-using-loadfamily-freezes/m-p/8955088" target="_blank"&gt;Loading a rfa file into a document using LoadFamily() freezes Revit UI - Autodesk Community - Revit Products&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran into this problem years ago and you can refer to the above thread to get a workaround&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 04:52:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/bug-document-loadfamily-breaks-ui-update/m-p/11310520#M17921</guid>
      <dc:creator>Kennan.Chen</dc:creator>
      <dc:date>2022-07-21T04:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: [Bug] document.LoadFamily() breaks UI update</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/bug-document-loadfamily-breaks-ui-update/m-p/11313214#M17922</link>
      <description>&lt;P&gt;The first time Balloon worked, all the others had no effect. It's a shame that for so many years the problem has not been raised or solved by Autodesk&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 07:18:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/bug-document-loadfamily-breaks-ui-update/m-p/11313214#M17922</guid>
      <dc:creator>nice3point</dc:creator>
      <dc:date>2022-07-22T07:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: [Bug] document.LoadFamily() breaks UI update</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/bug-document-loadfamily-breaks-ui-update/m-p/11313279#M17923</link>
      <description>It functions well to host the UI in a standalone WPF app that communicates with Revit process via IPC.&lt;BR /&gt;I use this workaround in production for years.</description>
      <pubDate>Fri, 22 Jul 2022 07:47:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/bug-document-loadfamily-breaks-ui-update/m-p/11313279#M17923</guid>
      <dc:creator>Kennan.Chen</dc:creator>
      <dc:date>2022-07-22T07:47:54Z</dc:date>
    </item>
  </channel>
</rss>

