<?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 Disable DockablePane for IExternalCommand Execute in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/disable-dockablepane-for-iexternalcommand-execute/m-p/11555770#M15557</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been searching for a while, but did not find an elegant solution yet. Using Revit 2020 at the moment.&lt;/P&gt;&lt;P&gt;I have a DockablePane in my application. It is similar to what is done in the DockableDialogs Revit SDK sample.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If a command that derives from&amp;nbsp;IExternalCommand is executed, all the buttons in the UI and also the Project Browser is disabled, see picture. The custom DockablePane is still enabled and every button/element can be used. I want the whole pane to be disabled.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mariusfe_0-1668590058422.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1140315iCB1CB7452CC8DF99/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mariusfe_0-1668590058422.png" alt="mariusfe_0-1668590058422.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know I could use the IsEnabled binding of the view. But I want to use the Revit UI state if possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know if and how this is possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Wed, 16 Nov 2022 09:16:09 GMT</pubDate>
    <dc:creator>marius.fe</dc:creator>
    <dc:date>2022-11-16T09:16:09Z</dc:date>
    <item>
      <title>Disable DockablePane for IExternalCommand Execute</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/disable-dockablepane-for-iexternalcommand-execute/m-p/11555770#M15557</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been searching for a while, but did not find an elegant solution yet. Using Revit 2020 at the moment.&lt;/P&gt;&lt;P&gt;I have a DockablePane in my application. It is similar to what is done in the DockableDialogs Revit SDK sample.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If a command that derives from&amp;nbsp;IExternalCommand is executed, all the buttons in the UI and also the Project Browser is disabled, see picture. The custom DockablePane is still enabled and every button/element can be used. I want the whole pane to be disabled.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mariusfe_0-1668590058422.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1140315iCB1CB7452CC8DF99/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mariusfe_0-1668590058422.png" alt="mariusfe_0-1668590058422.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know I could use the IsEnabled binding of the view. But I want to use the Revit UI state if possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know if and how this is possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 09:16:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/disable-dockablepane-for-iexternalcommand-execute/m-p/11555770#M15557</guid>
      <dc:creator>marius.fe</dc:creator>
      <dc:date>2022-11-16T09:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Disable DockablePane for IExternalCommand Execute</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/disable-dockablepane-for-iexternalcommand-execute/m-p/11557280#M15558</link>
      <description>&lt;P&gt;It think it is essentially the opposite of the idling event which can be therefore developed from that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Possibly also&amp;nbsp;ActiveAddInId accessible from various Application objects in conjunction with idling event.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively, I believe some use AdWindows to check the Revit UI state so you may find examples of that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lastly if you have added ribbon buttons you can check RibbonButton.IsEnabledByContext, this would require checking at a timed interval.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 12:11:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/disable-dockablepane-for-iexternalcommand-execute/m-p/11557280#M15558</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2022-11-17T12:11:38Z</dc:date>
    </item>
    <item>
      <title>Betreff: Disable DockablePane for IExternalCommand Execute</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/disable-dockablepane-for-iexternalcommand-execute/m-p/11567591#M15559</link>
      <description>&lt;P&gt;Thank you for the answer! We did it via direct calls because of a missing event that is triggered during external command calls. Not elegant now, but it works good.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 15:21:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/disable-dockablepane-for-iexternalcommand-execute/m-p/11567591#M15559</guid>
      <dc:creator>marius.fe</dc:creator>
      <dc:date>2022-11-21T15:21:49Z</dc:date>
    </item>
  </channel>
</rss>

