<?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: Application.ActiveDocumentChanging &amp;amp; Application.ActiveDocumentChanged events not triggered in Navisworks API Forum</title>
    <link>https://forums.autodesk.com/t5/navisworks-api-forum/application-activedocumentchanging-amp-application/m-p/11876791#M1471</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3121954"&gt;@tetsuya_miwa&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, exactly that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would say it is a bug even if Navisworks is a SDI app.&lt;/P&gt;&lt;P&gt;MainDocumentChanging and MainDocumentChanged not raised in a SDI app makes total sense but ActiveDocumentChanging/Changed should be raised!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The hack of using FileNameChanged is just a dirty hack, the same I used until now actually.&lt;BR /&gt;And it still does not solve lots of dangerous issues: Models, SavedViewPoints etc being reset, events being raised on those etc. while everything is in an unknown state. I had a gazillion of hangs just because of this, and the source code to handle all these edge cases is a real soup&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grimacing_face:"&gt;😬&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;@Autodesk, please settle this in future releases.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Apr 2023 06:32:09 GMT</pubDate>
    <dc:creator>alexisDVJML</dc:creator>
    <dc:date>2023-04-06T06:32:09Z</dc:date>
    <item>
      <title>Application.ActiveDocumentChanging &amp; Application.ActiveDocumentChanged events not triggered</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/application-activedocumentchanging-amp-application/m-p/11875331#M1469</link>
      <description>&lt;P&gt;I was expecting Application.ActiveDocumentChanging &amp;amp; Application.ActiveDocumentChanged events to be triggered when opening a document or choosing New, so our plugin can clear its cache etc.&lt;BR /&gt;&lt;BR /&gt;Seems this is not happening.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only event I seem to get is Document.FileNameChanged.&lt;BR /&gt;Which is also called when saving under a new name, which make sense for a save as BUT does not make any sense when changing document !!!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;So wondering how to know when a document is "closed"/ another one become the current one?&lt;BR /&gt;This is key to almost any plug-in so I'm sure I am missing something &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 17:10:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/application-activedocumentchanging-amp-application/m-p/11875331#M1469</guid>
      <dc:creator>alexisDVJML</dc:creator>
      <dc:date>2023-04-05T17:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Application.ActiveDocumentChanging &amp; Application.ActiveDocumentChanged events not triggered</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/application-activedocumentchanging-amp-application/m-p/11876358#M1470</link>
      <description>&lt;P&gt;Same topic here;&lt;BR /&gt;&lt;A href="https://forums.autodesk.com/t5/navisworks-api/activedocumentchanged-event-is-not-working-in/td-p/7956840" target="_blank"&gt;https://forums.autodesk.com/t5/navisworks-api/activedocumentchanged-event-is-not-working-in/td-p/7956840&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 00:15:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/application-activedocumentchanging-amp-application/m-p/11876358#M1470</guid>
      <dc:creator>tetsuya_miwa</dc:creator>
      <dc:date>2023-04-06T00:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Application.ActiveDocumentChanging &amp; Application.ActiveDocumentChanged events not triggered</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/application-activedocumentchanging-amp-application/m-p/11876791#M1471</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3121954"&gt;@tetsuya_miwa&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, exactly that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would say it is a bug even if Navisworks is a SDI app.&lt;/P&gt;&lt;P&gt;MainDocumentChanging and MainDocumentChanged not raised in a SDI app makes total sense but ActiveDocumentChanging/Changed should be raised!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The hack of using FileNameChanged is just a dirty hack, the same I used until now actually.&lt;BR /&gt;And it still does not solve lots of dangerous issues: Models, SavedViewPoints etc being reset, events being raised on those etc. while everything is in an unknown state. I had a gazillion of hangs just because of this, and the source code to handle all these edge cases is a real soup&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grimacing_face:"&gt;😬&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;@Autodesk, please settle this in future releases.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 06:32:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/application-activedocumentchanging-amp-application/m-p/11876791#M1471</guid>
      <dc:creator>alexisDVJML</dc:creator>
      <dc:date>2023-04-06T06:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Application.ActiveDocumentChanging &amp; Application.ActiveDocumentChanged events not triggered</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/application-activedocumentchanging-amp-application/m-p/11876798#M1472</link>
      <description>&lt;P&gt;Did you read this&amp;nbsp;&lt;A href="https://adndevblog.typepad.com/aec/xiaodong-liang.html" target="_self"&gt;Xiaodong&lt;/A&gt;'s blog?&lt;BR /&gt;&lt;A href="https://adndevblog.typepad.com/aec/2012/06/eventwatcherplugin-cannot-work-after-navisworks-launches.html" target="_blank"&gt;https://adndevblog.typepad.com/aec/2012/06/eventwatcherplugin-cannot-work-after-navisworks-launches.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;He recomended to use&amp;nbsp;ActiveDocument.Models.CollectionChanged event instead.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 06:38:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/application-activedocumentchanging-amp-application/m-p/11876798#M1472</guid>
      <dc:creator>tetsuya_miwa</dc:creator>
      <dc:date>2023-04-06T06:38:28Z</dc:date>
    </item>
  </channel>
</rss>

