Skip to content

Part 1 of fixing MAGN-7251 [Regression from 0.7.5] Select elements will cause a crash after switching Revit documents#4594

Merged
User-Zhaoyang merged 1 commit intoDynamoDS:masterfrom
User-Zhaoyang:master
Jun 3, 2015
Merged

Part 1 of fixing MAGN-7251 [Regression from 0.7.5] Select elements will cause a crash after switching Revit documents#4594
User-Zhaoyang merged 1 commit intoDynamoDS:masterfrom
User-Zhaoyang:master

Conversation

@User-Zhaoyang
Copy link
Contributor

Purpose

This is the first part to fix MAGN-7251. There are two changes here:
1). To ensure when the CanSelect property changes in SelectionBase, the UI updates.
2). When RunSettings.RunEnabled is false, the workspace should not run. This is already like this for the manual mode, because the run button is disabled. But for the automatic mode, the workspace's Run method can still be called. This submission will avoid this.

Declarations

Check these if you believe they are true

  • The code base is in a better state after this PR

Reviewers

@benglin

FYIs

Copy link
Contributor

Choose a reason for hiding this comment

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

Wow this is new, what scenario is this meant to solve? It'll be nice to add a comment to explain why this is important here so future readers.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There have been some comments about this in the summary. Hmmm, I will add some comments here as well.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the clarifications, @Randy-Ma. The comments did help!

…ll cause a crash after switching Revit documents
@User-Zhaoyang User-Zhaoyang added the DNM Do not merge. For PRs. label May 29, 2015
@benglin benglin added LGTM and removed PTAL Please Take A Look 👀 labels Jun 1, 2015
@User-Zhaoyang User-Zhaoyang removed the DNM Do not merge. For PRs. label Jun 3, 2015
User-Zhaoyang pushed a commit that referenced this pull request Jun 3, 2015
Part 1 of fixing MAGN-7251 [Regression from 0.7.5] Select elements will cause a crash after switching Revit documents
@User-Zhaoyang User-Zhaoyang merged commit d2cb1e3 into DynamoDS:master Jun 3, 2015
User-Zhaoyang pushed a commit that referenced this pull request Jun 4, 2015
Part 1 of fixing MAGN-7251 [Regression from 0.7.5] Select elements will cause a crash after switching Revit documents #4594
@benglin benglin mentioned this pull request Jun 10, 2015
2 tasks
@horatiubota horatiubota added the error/warning/crash Issues mentioning a Dynamo error, warning or crash message label Nov 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

error/warning/crash Issues mentioning a Dynamo error, warning or crash message

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants