Specific undo makes Idling event not fire anymore

Specific undo makes Idling event not fire anymore

simon_weinbergerC3JYQ
Explorer Explorer
201 Views
6 Replies
Message 1 of 7

Specific undo makes Idling event not fire anymore

simon_weinbergerC3JYQ
Explorer
Explorer

Repro steps:

  1. Start Revit
  2. Open new document
  3. Place a wall
  4. Double-click the wall to enter edit mode
  5. Ctrl+Z will exit the wall edit mode

Now, as long as that document is the active document, the UIControlledApplication.Idling event does not fire anymore. Changing the active document makes the Idling event fire again, but it's broken again when switching back to the broken document. Closing the document or restarting Revit fixes the problem.

 

I could reproduce this in Revit 2024-2026. I could not reproduce in Revit 2023 because step 5 does not exit the wall edit mode.

 

Exiting the wall edit mode in a non-undo way works just fine.

 

I haven't checked whether ExternalEvent is correctly raised, but you might want to do that.

202 Views
6 Replies
Replies (6)
Message 2 of 7

ricaun
Advisor
Advisor

Wooo, that's a great bug. 🙁

 

The same problem happen if you edit a Group and use Ctrl+Z to exit the GroupEdit.

 

Revit now have this Document.IsInEditMode()

 

Probably every time the user exit any EditMode using Ctrl+Z the document enter in this bug state that Idling does not trigger, I know in Idling and ExternalEvent does not trigger inside the EditMode.

 

I tested the ExternalEvent and works after the EditMode with Ctrl+Z, only Idling that stop triggering. 

 

Luiz Henrique Cassettari

ricaun.com - Revit API Developer

AppLoader EasyConduit WireInConduit ConduitMaterial CircuitName ElectricalUtils

0 Likes
Message 3 of 7

MarryTookMyCoffe
Collaborator
Collaborator

cool info I will add this to things that autodesk will never fix. Im 100% sure that my users will triger it in first week on my app release.  Searching for way to fix it will be another nightmare.

-------------------------------------------------------------
--------------------------------|\/\/|------------------------
do not worry it only gonna take Autodesk 5 years to fix bug
0 Likes
Message 4 of 7

ricaun
Advisor
Advisor

@MarryTookMyCoffe wrote:

cool info I will add this to things that autodesk will never fix. Im 100% sure that my users will triger it in first week on my app release.  Searching for way to fix it will be another nightmare.


Yes, this issue probably gonna live forever inside Revit, now that Jeremy is retired is kinda hard to reach the Revit dev team.

 

 

Luiz Henrique Cassettari

ricaun.com - Revit API Developer

AppLoader EasyConduit WireInConduit ConduitMaterial CircuitName ElectricalUtils

Message 5 of 7

ricaun
Advisor
Advisor

That's fun this issue combo with the missing Group ribbon Panel. The only way to exit the Group Edit mode when the Panel does not show is using Ctrl Z.

Luiz Henrique Cassettari

ricaun.com - Revit API Developer

AppLoader EasyConduit WireInConduit ConduitMaterial CircuitName ElectricalUtils

0 Likes
Message 6 of 7

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi,

I have submitted the issue to our Engineering team. The reference for this issue is:


REVIT-241515Revit API: Specific undo makes Idling event not fire anymore


Please make a note of this number for future reference.

I’ll get back to you promptly once I receive their feedback.


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 7 of 7

ricaun
Advisor
Advisor

@naveen.kumar.t wrote:

Hi,

I have submitted the issue to our Engineering team. The reference for this issue is:


REVIT-241515Revit API: Specific undo makes Idling event not fire anymore


Please make a note of this number for future reference.

I’ll get back to you promptly once I receive their feedback.


Nice, I open a Problem Report in the Revit feedback: RVTPR-01369 

With a video and code: https://youtu.be/cuvHTnE0-uE

Luiz Henrique Cassettari

ricaun.com - Revit API Developer

AppLoader EasyConduit WireInConduit ConduitMaterial CircuitName ElectricalUtils