-
-
Notifications
You must be signed in to change notification settings - Fork 332
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
Dev/issues/1442 #1465
Dev/issues/1442 #1465
Conversation
…selection is changed to nothing. other values considered include 0, which selects the project phase information, which i don't believe is supposed to be selectable, and may cause more confusion than it's worth.
@@ -1397,6 +1397,7 @@ def cleanup_sheetnumbers(doc): | |||
|
|||
# verify model is printable | |||
forms.check_modeldoc(exitscript=True) | |||
selection = revit.uidoc.Selection.SetElementIds(List[DB.ElementId]([revit.DB.ElementId(2147483647)])) |
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.
@alexdaversa I'm going to change this to use DB.ElementId.InvalidElementId
and will add this to pyrevit.revit.selection
as helper method.
RE: https://forums.autodesk.com/t5/revit-api-forum/how-to-clear-a-selection/td-p/9926146
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.
📦 New work-in-progress (wip) builds are available for 4.8.9.22031+0140-wip |
📦 New work-in-progress (wip) builds are available for 4.8.9.22031+0156-wip |
📦 New work-in-progress (wip) builds are available for 4.8.9.22032+0111-wip |
📦 New work-in-progress (wip) builds are available for 4.8.9.22032+1632-wip |
📦 New work-in-progress (wip) builds are available for 4.8.9.22032+1638-wip |
📦 New work-in-progress (wip) builds are available for 4.8.9.22039+2254-wip |
📦 New work-in-progress (wip) builds are available for 4.8.9.22039+2341-wip |
📦 New work-in-progress (wip) builds are available for 4.8.9.22040+0150-wip |
📦 New work-in-progress (wip) builds are available for 4.8.9.22040+1708-wip |
📦 New work-in-progress (wip) builds are available for 4.8.11.22040+1907-wip |
📦 New work-in-progress (wip) builds are available for 4.8.11.22040+1932-wip |
trying this again...
I spent awhile, growing more surprised by the minute, searching the Revit API for a way to clear the current selection. This workaround does work, but seems particularly hacky.