<?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: Detecting Modify Mode aka Edit Mode in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/10069397#M72595</link>
    <description>&lt;P&gt;Looks good. Well done!&lt;/P&gt;&lt;P&gt;Thanks for your efforts.&lt;/P&gt;</description>
    <pubDate>Tue, 09 Feb 2021 12:59:18 GMT</pubDate>
    <dc:creator>Wolfgang.B.Weh</dc:creator>
    <dc:date>2021-02-09T12:59:18Z</dc:date>
    <item>
      <title>Detecting Modify Mode aka Edit Mode</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/5616006#M72579</link>
      <description>&lt;P&gt;I have encountered some issues while using the API if the user has left Revit in Modify Mode aka Edit Mode when trying some operations.&amp;nbsp; For example, if I click on a Roof (graphically) then edit the Comment on the Roof and hit Apply, Revit leaves the app in Edit Mode with the Modify|Roof ribbon highlighted green.&amp;nbsp; I would like to be able to either be notifified with an event when the user enters or exits this mode, or be able to check a property.&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2015 20:54:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/5616006#M72579</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-01T20:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting Edit Mode</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/5616171#M72580</link>
      <description>Jasonleejackson:&lt;BR /&gt;&lt;BR /&gt;And you need such an event because you want to disable or re-enable your modeless palette upon Revit entering and leaving an edit mode, respectively?&lt;BR /&gt;&lt;BR /&gt;Thank you</description>
      <pubDate>Sat, 02 May 2015 00:51:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/5616171#M72580</guid>
      <dc:creator>arnostlobel</dc:creator>
      <dc:date>2015-05-02T00:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting Edit Mode</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/5616173#M72581</link>
      <description>&lt;P&gt;I just want to detect it so I don't allow the user to take the action my code does. It would be most convenient for me to get an event, because then I can disable a button in my add-in, but if I can only access a property I might then warn the user that they cannot proceed by checking that property when they click the button.&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2015 00:58:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/5616173#M72581</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-02T00:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting Edit Mode</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/5616184#M72582</link>
      <description>So, basically, you are confirming what I asked, right?</description>
      <pubDate>Sat, 02 May 2015 02:12:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/5616184#M72582</guid>
      <dc:creator>arnostlobel</dc:creator>
      <dc:date>2015-05-02T02:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting Edit Mode</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/5616186#M72583</link>
      <description>&lt;P&gt;I don't know if something is getting lost here; I am not real clear why you are going around with me. Am I missing something? I don't know what a modeless palette is. I feel like I described fairly succinctly what I actually am trying to do. Are you aware of a property or event that can be used to determine if Revit is in Modify mode?&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2015 02:17:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/5616186#M72583</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-02T02:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting Edit Mode</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/5616188#M72584</link>
      <description>&lt;P&gt;So I just went to do some research about what a modeless palette is. Apparently Autodesk uses that term for the properties editor. I don't want to do anything, at all, with the modeless palette them. Totally unconcerned with it. Don't care. I have an add-on that is on a ribbon. I want to disable a button there if Modify mode is happening as described in my original question, else enable that button. If I cannot do this with something like an event then checking a property would be great.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Besides the point of what I want to do with the information, this seems like an incredibly straight forward question? How does one find out if Revit is in Modify mode from the .Net API?&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2015 02:27:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/5616188#M72584</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-02T02:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting Modify Mode aka Edit Mode</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/5616298#M72585</link>
      <description>&lt;P&gt;the &lt;EM&gt;&lt;STRONG&gt;Application.IsQuiescent&lt;/STRONG&gt;&lt;/EM&gt; property is what you need. look it up on the api reference&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2015 11:23:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/5616298#M72585</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-02T11:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting Modify Mode aka Edit Mode</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/5616362#M72586</link>
      <description>&lt;P&gt;jasonleejackson:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It was a perfectly reasonable question you asked. I simply wanted to find out more. I am sorry I was not clear enough about it. Your added details explain it fine why you need the event. However, in your case the event&amp;nbsp;should not be necessary, because&amp;nbsp;all buttons related to external commands&amp;nbsp;&lt;STRONG&gt;should&lt;/STRONG&gt; be disabled automatically when Revit is in an edit mode. It the the same with external commands in the Add-ins menu. There are (should be) all disabled when in edit mode, for all API is disabled in edit modes - meaning Revit never calls out from an edit more (or while the end-user&amp;nbsp;is editing&amp;nbsp;and/or have an open transaction). If your ribbon button is not disabled while Revit is in an edit mode, we (Revit R&amp;amp;D) need to to look into it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I asked about modeless palettes (or any modeless dialog) because&amp;nbsp;it is probably the only legitimate reason for someone needing the event you mentioned. Unless I am forgetting&amp;nbsp;something, that is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;IsQuiescent&lt;/STRONG&gt; cannot be used, technically, because&amp;nbsp;it should not be called from outside the main thread. And if an an API user is actually calling on the main thread, then the answer&amp;nbsp;to is&amp;nbsp;&lt;SPAN&gt;IsQuiescent is going to be always False, for Revit would&amp;nbsp;be busy with executing the very same application that is calling&amp;nbsp;IsQuiescent.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2015 15:53:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/5616362#M72586</guid>
      <dc:creator>arnostlobel</dc:creator>
      <dc:date>2015-05-02T15:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting Modify Mode aka Edit Mode</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/5616378#M72587</link>
      <description>I am creating a custom ribbon with custom buttons in WPF, which then launches a custom modal which eventually asks Revit to execute API code for me using an IExternalEventHandler implementation. If a user has left the app in the Modify (Quescient) state then my callbacks are extremely slow. I will raise an event and then a few minutes later Revit will callback, and then wait as long to answer the next event. I had hope to be able to respond to an idle event of some sort. Reading through various blog posts it looks like IsQuiscent is dangerous to call outside of context because it is part of the Revit API. It also looks like the idle example in the SDK is not the path either from what I have read over on the Building Coder blog. It looks like I may just be stuck.</description>
      <pubDate>Sat, 02 May 2015 16:49:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/5616378#M72587</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-02T16:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting Modify Mode aka Edit Mode</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/5616431#M72588</link>
      <description>&lt;P&gt;I am sorry, but I must ask again. What do you means by "&lt;SPAN&gt;&lt;EM&gt;I am creating a &lt;U&gt;custom ribbon&lt;/U&gt; with &lt;U&gt;custom buttons&lt;/U&gt; in WPF&lt;/EM&gt;.&lt;/SPAN&gt;" Where is the Ribbon? Is it at the&amp;nbsp;Ribbon&amp;nbsp;bar in Revit? If so, how do you create the custom ribbon there and how do you add your&amp;nbsp;commands&amp;nbsp;there? Is it bia the Revit API? If your ribbon is NOT at the Revit ribbon bar, where is it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am asking because&amp;nbsp;if you need to execute an external command&amp;nbsp;it means you are communicating&amp;nbsp;from an outside thread&amp;nbsp;(like, basically, from a modeless dialog which is what I ask about&amp;nbsp;first&amp;nbsp;at the beginning.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2015 18:57:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/5616431#M72588</guid>
      <dc:creator>arnostlobel</dc:creator>
      <dc:date>2015-05-02T18:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting Modify Mode aka Edit Mode</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/10060028#M72589</link>
      <description>&lt;P&gt;I'm having exactly the same use case&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;a non-modal dialogue using an&amp;nbsp;&lt;SPAN&gt;IExternalEventHandler.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;&lt;SPAN&gt;To detect edit mode&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;&lt;SPAN&gt;I'm checking the transaction names in the DocumentChanged event, as suggested by&amp;nbsp;Ahmed Nabil in this post:&lt;BR /&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/group-edit-event/m-p/9232010/highlight/true#M43668" target="_blank"&gt;https://forums.autodesk.com/t5/revit-api-forum/group-edit-event/m-p/9232010/highlight/true#M43668&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I've created an example project to show how it works:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/woweh/TestEditModeChecker" target="_blank"&gt;https://github.com/woweh/TestEditModeChecker&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This works for me and my use-case.&lt;/P&gt;&lt;P&gt;You might have to extend the solution to cater for non-English versions of Revit or any edit mode transactions which I might have missed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be nice if Autodesk could add events to the&amp;nbsp;ControlledApplication which get triggered when some edit mode starts or ends.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wolfgang&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 10:11:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/10060028#M72589</guid>
      <dc:creator>Wolfgang.B.Weh</dc:creator>
      <dc:date>2021-02-05T10:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting Modify Mode aka Edit Mode</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/10060144#M72590</link>
      <description>&lt;P&gt;Although this thread is old it isn't as old as the property RibbonButton.IsEnabled since then (or around the same time) RibbonButton.IsEnabledByContext was added also.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does this second property not work i.e. even for modeless dialogues where you could query a static variable of the RibbonButton you've added to show your modeless dialogue or some other button on the Revit Ribbon prior to raising the external event?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would be interested to know the answer to this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 11:30:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/10060144#M72590</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2021-02-05T11:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting Modify Mode aka Edit Mode</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/10060578#M72591</link>
      <description>&lt;P&gt;Not sure if we talk about the same thing.&lt;/P&gt;&lt;P&gt;In my case, I'm having a non-modal WinForm (but the same would apply for a WPF form) where functionality should be disabled when the user enters some "Edit Mode" in Revit.&lt;/P&gt;&lt;P&gt;I'm not talking about buttons in the Revit ribbon.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When searching I find three similar questions/discussions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/revit-modes/m-p/2951504" target="_blank"&gt;https://forums.autodesk.com/t5/revit-api-forum/revit-modes/m-p/2951504&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/assembly-edit-mode/m-p/8761572" target="_blank"&gt;https://forums.autodesk.com/t5/revit-api-forum/assembly-edit-mode/m-p/8761572&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/determine-when-revit-api-is-not-available/m-p/7926155" target="_blank"&gt;https://forums.autodesk.com/t5/revit-api-forum/determine-when-revit-api-is-not-available/m-p/7926155&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Naing Oo suggest in &lt;A href="https://forums.autodesk.com/t5/revit-api-forum/assembly-edit-mode/m-p/8761572" target="_blank" rel="noopener"&gt;his post&lt;/A&gt;&amp;nbsp;to monitor the Revit ribbon to see if Revit is in "Assembly Edit Mode". I guess this technique can also be extended to check for all kinds of edit modes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you give me some more details about how &lt;SPAN&gt;RibbonButton.IsEnabled or RibbonButton.IsEnabledByContext can be used to solve this problem&lt;/SPAN&gt;?&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;Wolfgang&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 14:18:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/10060578#M72591</guid>
      <dc:creator>Wolfgang.B.Weh</dc:creator>
      <dc:date>2021-02-05T14:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting Modify Mode aka Edit Mode</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/10060733#M72592</link>
      <description>&lt;P&gt;I've not tested but in theory if you have access to a static variable containing any ribbon item either one created by your Add-in or one found to exist by looking through Revit Ribbon during OnStartUp. Then you could look at it's IsEnabledByContext at anytime.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i.e. within the event handler for your button on the modeless window/form you first review the RibbonItem.IsEnabledByContext stored on a static field containing RibbonItem or the UIApplication. If one Add-in button is disabled this way they likely all are.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There may be issues surrounding holding onto a static version of UIApplication, although it's state is not as changeable as UIDocument or other DB level API objects. If that is an issue then idling event provides a fresh UIApplication. From UIApplication you can iterate the ribbon items to see if any Ribbon Add-in item has this property set to true/false.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm kind of following the logic that if you reflect the state of any Revit Revit Ribbon button in your modeless one by inspecting such then you achieve the same. Often even modeless forms/windows require some button that your add-in knows about on the Revit ribbon to show them for the first time.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 15:19:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/10060733#M72592</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2021-02-05T15:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting Modify Mode aka Edit Mode</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/10065381#M72593</link>
      <description>&lt;P&gt;Tested, seems the property .IsEnabledByContext and .Enabled are both always true, when the UI shows it grayed out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tested the adWindow.dll route mentioned in another post, partly works, but not perfect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/determine-when-revit-api-is-not-available/m-p/8429631/highlight/false#M35080&amp;nbsp;" target="_blank"&gt;https://forums.autodesk.com/t5/revit-api-forum/determine-when-revit-api-is-not-available/m-p/8429631/highlight/false#M35080&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 01:36:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/10065381#M72593</guid>
      <dc:creator>zhuliyi0</dc:creator>
      <dc:date>2021-02-08T01:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting Modify Mode aka Edit Mode</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/10066190#M72594</link>
      <description>&lt;P&gt;Yes unfortunately I noticed that. I also noticed that the idling event didn't fire when in 'edit' mode and this gave me another (non AdWindows) idea which seems to work well:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Subscribe to idling event which reports current system ticks to a variable&lt;/P&gt;&lt;P&gt;2) Start a timer on a separate thread (interval 250) to check the current system ticks against the last idle time from (1)&lt;/P&gt;&lt;P&gt;3) Within timer elapsed event raise new class wide event on modeless window with event args containing boolean .Enabled:&lt;/P&gt;&lt;P&gt;3a) If 0.5 seconds or more has passed since last idle set EventArgs.Enabled to false.&lt;/P&gt;&lt;P&gt;3b) If less than 0,5 seconds has passed since last idle set EventArgs.Enabled to true.&lt;/P&gt;&lt;P&gt;4) Subroutine on modeless windows handles event. Dispatcher for window instance is invoked to update it's UI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems quite reliable for short test periods and has the added benefit of working also for when modal dialogues are displayed i.e. it is in effect an AntiIdlingEvent or a BusyingEvent perhaps a ActivingEvent...(actual name to follow).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The attached solution is in VB.Net and has some VB specific language features regarding events but I'm sure it could be adapted for C#.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 11:32:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/10066190#M72594</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2021-02-08T11:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting Modify Mode aka Edit Mode</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/10069397#M72595</link>
      <description>&lt;P&gt;Looks good. Well done!&lt;/P&gt;&lt;P&gt;Thanks for your efforts.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 12:59:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/10069397#M72595</guid>
      <dc:creator>Wolfgang.B.Weh</dc:creator>
      <dc:date>2021-02-09T12:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting Modify Mode aka Edit Mode</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/10069444#M72596</link>
      <description>&lt;P&gt;This other discussion seems closely related and may provide some additional useful ideas:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/determine-when-revit-api-is-not-available/m-p/7926155#M30195" target="_blank"&gt;https://forums.autodesk.com/t5/revit-api-forum/determine-when-revit-api-is-not-available/m-p/7926155&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 13:23:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/detecting-modify-mode-aka-edit-mode/m-p/10069444#M72596</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2021-02-09T13:23:38Z</dc:date>
    </item>
  </channel>
</rss>

