ErikFrits / EF-Tools

Save your time and nerves with EF-Tools. It's a pyRevit Extension for Autodesk Revit. There are 40+ tools in the toolbar and you will be able to improve your workflows or even discover new ones.
GNU General Public License v3.0
123 stars 15 forks source link

Cant hide levels? #15

Closed prasadienator closed 1 year ago

prasadienator commented 1 year ago

getting following error. Using it for the first time. Is there some step i missed? 

Traceback (most recent call last): File "C:\Users\prasadi\AppData\Roaming\pyRevit\Extensions\EF-Tools.extension\EF_Tools.tab\Maintenance.panel\Warnings.pulldown\Isolate Warnings.pushbutton\script.py", line 257, in do_stuff view.SetCategoryHidden(ElementId(BuiltInCategory.OST_Levels), True) # Hide Levels Exception: Category cannot be hidden. Parameter name: categoryId

ErikFrits commented 1 year ago

🙏Thanks for submitting the bug.

👀 I looked at the code and it looks like the error happens if you have default ViewTemplate assigned to one of the 3D View Types. I managed to get the same error by using this logic.

✅ I fixed the bug. Now it will make sure to remove any ViewTemplates from a newly created 3D view that is used for warnings.

💽 You can reinstall EF-Tools and try it again. (Go to pyRevit extensions menu and Remove/Install new)

🤷‍♂️ Sorry for inconveniences.