-
-
Notifications
You must be signed in to change notification settings - Fork 325
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
Add option to "Toggle All Grids Bubbles" to toggle bubbles at the sides of the view (top|bottom, left|right) #2248
Comments
No directionality implemented in the code All on or off. |
not fully automated , but flipping grids much easier using multi-selections. doc = revit.doc
active_view = doc.ActiveView
grids = revit.get_selection()
if not grids:
forms.alert('No Grids selected!', exitscript=True)
end_0 = []
end_1 = []
with revit.Transaction('Flip Grids'):
for grid in grids:
# Define Ends
end_0 = grid.IsBubbleVisibleInView(DB.DatumEnds.End0, active_view)
end_1 = grid.IsBubbleVisibleInView(DB.DatumEnds.End1, active_view)
if end_0:
grid.HideBubbleInView(DB.DatumEnds.End0, active_view)
else:
grid.ShowBubbleInView(DB.DatumEnds.End0, active_view)
if end_1:
grid.HideBubbleInView(DB.DatumEnds.End1, active_view)
else:
grid.ShowBubbleInView(DB.DatumEnds.End1, active_view) |
From pyRevit fan:
The text was updated successfully, but these errors were encountered: