-
Notifications
You must be signed in to change notification settings - Fork 199
Revit element selection nodes should serialize and deserialize properly in Json #1768
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
Conversation
| "Select a face.", | ||
| "Face of Element Id") { } | ||
|
|
||
| [JsonConstructor] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so you'll need to add these for all derived selection types right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes I believe so, I only did this first one as an example so far. I am still figuring out why I can't modify the selection once reopening the json file before I add them all.
| [Category("SmokeTests")] | ||
| [TestModel(@".\Selection\Selection.rfa")] | ||
| public void SelectionVerifyElementID() | ||
| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test:
- opens an xml graph w/ a model element selection node
- verifies the selectionId and node UUID
- saves to temporary json file
- closes and reopens the graph
- verifies data remains unchanged after execution
- deletes temporary json file
|
LGTM from @mjkkirschner |
Purpose
QNTM-1284
The purpose of this PR is to enable the serialization and deserialization of Revit element selection nodes in Json. Previously Revit/Dynamo would freeze when attempting save a graph containing Revit selection nodes and the Json file is never written. The selection node should also maintain the Revit element id that is referenced so it will automatically be recognized when reopening a graph.
Supplemental to Dynamo PR #8131
All RTF selection tests are passing including new tests:

Declarations
Check these if you believe they are true
*.resxfilesReviewers
(FILL ME IN) Reviewer 1 (If possible, assign the Reviewer for the PR)
FYIs