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

CNX-9205 : Properly initialize connector on Revit file double-click #3311

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

connorivy
Copy link
Contributor

Description & motivation

properly initialize revit plugin on file double-click

Changes:

References

#1469
Original issue describing the problem in more detail

#3255
External PR that figured out how to fix the issue. We let it get too out of date and the logic was fairly straightforward so instead of resolving merge conflicts, I just made a new PR.

Copy link
Member

@AlanRynne AlanRynne left a comment

Choose a reason for hiding this comment

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

Super nice to get this in! Let's remember to add the original author as a contributor in the PR merge comment so they get the GitHub cred 🚀🙌🏼

RevitApp.Application.DocumentOpening += Application_DocumentOpening;
// This code may fire during the DocumentOpening event, in which case an exception will be
// thrown about being unable to subscribe to an event during that event
//RevitApp.Application.DocumentOpening += Application_DocumentOpening;
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we comment this out or maybe just rephrase this in the comment to say Removed hooking to DocumentOpening event because....

Copy link
Contributor

Choose a reason for hiding this comment

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

Just makes it clear as opposed to commented out code, which reads ambiguous, like we might need a solution to this

@AlanRynne AlanRynne merged commit 607d327 into dev Apr 26, 2024
32 checks passed
@AlanRynne AlanRynne deleted the revit/connor/launch-on-double-click branch April 26, 2024 09:31
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.

None yet

3 participants