Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DYN-6897 Dynamo Button Disabled Revit #15722

Conversation

RobertGlobant20
Copy link
Contributor

@RobertGlobant20 RobertGlobant20 commented Dec 12, 2024

Purpose

When opening Dynamo in Revit2025 and closing the SplashScreen using the Windows TaskBar the Dynamo button is disabled (there is no way to re-enable it) so you need to close Revit to be able to see the Dynamo button enabled again. So in this fix I'm handling the case of re-enable the Dynamo button in Revit when the SplashScreen is closed using the Windows TaskBar (CloseMode.ByOther).

TODO - This is just covering the Scenario 2 described in the Jira task DYN-6897 for the Scenario 1 I'm still checking the problem but in general until now I found that when closing the DynamoView (after was opened by pressing Start Dynamo in SplashScreen) we are generating the event WM_CLOSE (that's why the Dynamo button is re-enabled immediately) but when closing the SplashScreen using the close button or using the Windows Taskbar the WM_CLOSE event is not generated so the Dynamo button is not enabled immediately in Revit (just when the Revit workspace lose the Focus by clicking in a different part).

This was tested using Revit 2026 (Preview Release 20261111) using the DynamoRevit master branch and Dynamo RC3.4.0 branch.
In DynamoRevit I had to do a one line change for enabling the SplashScreen.
image

Declarations

Check these if you believe they are true

  • The codebase is in a better state after this PR
  • Is documented according to the standards
  • The level of testing this PR includes is appropriate
  • User facing strings, if any, are extracted into *.resx files
  • All tests pass using the self-service CI.
  • Snapshot of UI changes, if any.
  • Changes to the API follow Semantic Versioning and are documented in the API Changes document.
  • This PR modifies some build requirements and the readme is updated
  • This PR contains no files larger than 50 MB

Release Notes

Fixing Scenario 2 when closing the SplashScreen using the Windows Taskbar and the Dynamo button in Revit is still disabled.

Reviewers

@QilongTang

FYIs

When opening Dynamo in Revit2025 and closing the SplashScreen using the Windows TaskBar the Dynamo button is disabled (there is no way to re-enable it) so you need to close Revit to be able to see the Dynamo button enabled again.
So in this fix I'm handling the case of re-enable the Dynamo button in Revit when the SplashScreen is closed using the Windows TaskBar (CloseMode.ByOther).
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-6897

@RobertGlobant20
Copy link
Contributor Author

This is a GIF showing the expected behavior when closing SplashScreen using Windows Taskbar (the Dynamo button is re-enabled when changing Tab, before my fix even changing Tab was not re-enabling the button).
m4Mu0RaTvK

Copy link

UI Smoke Tests

Test: success. 11 passed, 0 failed.
TestComplete Test Result
Workflow Run: UI Smoke Tests
Check: UI Smoke Tests

@RobertGlobant20 RobertGlobant20 marked this pull request as ready for review December 26, 2024 19:55
@RobertGlobant20 RobertGlobant20 changed the title DRAFT-DYN-6897 Dynamo Button Disabled Revit DYN-6897 Dynamo Button Disabled Revit Jan 3, 2025
@QilongTang QilongTang added this to the 3.5 milestone Jan 3, 2025
@QilongTang QilongTang merged commit cb8159a into DynamoDS:master Jan 3, 2025
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants