You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If Levels are turned off in v/g (our default), I get an error when selecting a plan view
⌨ Error/Debug Message
Traceback (most recent call last):
File "C:\Users\<username>\AppData\Roaming\pyRevit-Master\extensions\pyRevitTools.extension\pyRevit.tab\Toggles.panel\toggles3.stack\ViewRange.pushbutton\script.py", line 128, in context_changed
corners = corners_from_bb(level_bbox)
File "C:\Users\<username>\AppData\Roaming\pyRevit-Master\extensions\pyRevitTools.extension\pyRevit.tab\Toggles.panel\toggles3.stack\ViewRange.pushbutton\script.py", line 95, in corners_from_bb
transform = bbox.Transform
AttributeError: 'NoneType' object has no attribute 'Transform'
♻️ To Reproduce
go to 3D view and turn off Levels in v/g
click "show view range"
click a plan view
⏲️ Expected behavior
It should check the status, and turn Levels on automatically (if it has to - and back off again after?), but I'd prefer it just keep the user's setting. Alternate solution would be to just notify user that Levels need to be turned on.
🖥️ Hardware and Software Setup (please complete the following information)
The script gets the bounding box of the related level, and calculates the plane's outline from it. I've also noticed that levels return None for the boundingbox if their visibility has never been tirned on. Once it is turned on it will work when it is turned off. I will add a warning about this, because cycling the visibility can be more complicated than desired.
maybe you could get the bounding box of the view instead? If it's not precisely the outline of the crop region, that's fine (i.e. it can be rectangular), but sometimes our level is huge, but the plan view is smaller
✈ Pre-Flight checks
🐞 Describe the bug
If Levels are turned off in v/g (our default), I get an error when selecting a plan view
⌨ Error/Debug Message
♻️ To Reproduce
⏲️ Expected behavior
It should check the status, and turn Levels on automatically (if it has to - and back off again after?), but I'd prefer it just keep the user's setting. Alternate solution would be to just notify user that Levels need to be turned on.
🖥️ Hardware and Software Setup (please complete the following information)
Additional context
No response
The text was updated successfully, but these errors were encountered: