<?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 Cannot finish opening BIM 360 model using: OpenAndActivateDocument() in an Idling event in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/cannot-finish-opening-bim-360-model-using/m-p/11309775#M17904</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use this code in an Idling event the model opens (I think) but Revit stops processing and keeps the 'Open Model' dialog on the screen (Revit isn't frozen, the 'Open Model' dialog can be moved around but does not close). If I use&amp;nbsp;OpenAndActivateDocument() in the same Idling event to open a conventional RVT it works correctly. The test project is in the US, I deleted the BIM 360 cache, computer temp files and preference files. The same model opens very quickly if I do so manually in Revit 2022. Any ideas? I guess either an issue with my code,&amp;nbsp;OpenAndActivateDocument() should not be used in an Idling event or it's an API issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S. I use&amp;nbsp;OpenDocumentFile() in the same manner to automate printing and it works fine with BIM 360 models.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Guid oProjectGuid = new Guid("36d1c256-321c-4b5a-8672-b15848836dae");&lt;BR /&gt;Guid oModelGuid = new Guid("82e392bf-46a6-4638-acbb-c04425a071e0");&lt;BR /&gt;ModelPath oModelPath = ModelPathUtils.ConvertCloudGUIDsToCloudPath(ModelPathUtils.CloudRegionUS, oProjectGuid, oModelGuid);&lt;/P&gt;&lt;P&gt;OpenOptions oOpenOpts = new OpenOptions();&lt;BR /&gt;UIDocument oUIDocument = oUIApplication.OpenAndActivateDocument(oModelPath, oOpenOpts, false);&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="Problem.png" style="width: 542px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1093962i0440788B4C65274B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Problem.png" alt="Problem.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks for any assistance,&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jul 2022 19:11:07 GMT</pubDate>
    <dc:creator>dantartaglia8696</dc:creator>
    <dc:date>2022-07-20T19:11:07Z</dc:date>
    <item>
      <title>Cannot finish opening BIM 360 model using: OpenAndActivateDocument() in an Idling event</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/cannot-finish-opening-bim-360-model-using/m-p/11309775#M17904</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use this code in an Idling event the model opens (I think) but Revit stops processing and keeps the 'Open Model' dialog on the screen (Revit isn't frozen, the 'Open Model' dialog can be moved around but does not close). If I use&amp;nbsp;OpenAndActivateDocument() in the same Idling event to open a conventional RVT it works correctly. The test project is in the US, I deleted the BIM 360 cache, computer temp files and preference files. The same model opens very quickly if I do so manually in Revit 2022. Any ideas? I guess either an issue with my code,&amp;nbsp;OpenAndActivateDocument() should not be used in an Idling event or it's an API issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S. I use&amp;nbsp;OpenDocumentFile() in the same manner to automate printing and it works fine with BIM 360 models.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Guid oProjectGuid = new Guid("36d1c256-321c-4b5a-8672-b15848836dae");&lt;BR /&gt;Guid oModelGuid = new Guid("82e392bf-46a6-4638-acbb-c04425a071e0");&lt;BR /&gt;ModelPath oModelPath = ModelPathUtils.ConvertCloudGUIDsToCloudPath(ModelPathUtils.CloudRegionUS, oProjectGuid, oModelGuid);&lt;/P&gt;&lt;P&gt;OpenOptions oOpenOpts = new OpenOptions();&lt;BR /&gt;UIDocument oUIDocument = oUIApplication.OpenAndActivateDocument(oModelPath, oOpenOpts, false);&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="Problem.png" style="width: 542px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1093962i0440788B4C65274B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Problem.png" alt="Problem.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks for any assistance,&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 19:11:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/cannot-finish-opening-bim-360-model-using/m-p/11309775#M17904</guid>
      <dc:creator>dantartaglia8696</dc:creator>
      <dc:date>2022-07-20T19:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot finish opening BIM 360 model using: OpenAndActivateDocument() in an Idling event</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/cannot-finish-opening-bim-360-model-using/m-p/11318409#M17905</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone else tried this? Can Autodesk tell me if this a 'works as intended', bug or other?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 13:41:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/cannot-finish-opening-bim-360-model-using/m-p/11318409#M17905</guid>
      <dc:creator>dantartaglia8696</dc:creator>
      <dc:date>2022-07-25T13:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot finish opening BIM 360 model using: OpenAndActivateDocument() in an Idling event</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/cannot-finish-opening-bim-360-model-using/m-p/11328509#M17906</link>
      <description>&lt;P&gt;It would be great if someone from Autodesk had an answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 13:53:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/cannot-finish-opening-bim-360-model-using/m-p/11328509#M17906</guid>
      <dc:creator>dantartaglia8696</dc:creator>
      <dc:date>2022-07-29T13:53:27Z</dc:date>
    </item>
  </channel>
</rss>

