Fresh install of 0.19_pre on macOS Catalina. Use Ad-on Manager to install BIM. Quit and restart. Run BIM Setup, change units to imperial (sorry) and save.
23:33:37 Running the Python command 'BIM_Setup' failed:
Traceback (most recent call last):
File "/Users/vances/Library/Preferences/FreeCAD/Mod/BIM/BimSetup.py", line 217, in Activated
FreeCADGui.Snapper.setGrid()
File "/Applications/FreeCAD.app/Contents/Resources/Mod/Draft/draftguitools/gui_snapper.py", line 1618, in setGrid
self.setTrackers()
File "/Applications/FreeCAD.app/Contents/Resources/Mod/Draft/draftguitools/gui_snapper.py", line 1626, in setTrackers
v = Draft.get3DView()
File "/Applications/FreeCAD.app/Contents/Resources/Mod/Draft/draftutils/gui_utils.py", line 68, in get_3d_view
v = Gui.ActiveDocument.ActiveView
vances wrote: ↑Sat Aug 15, 2020 3:55 pm
Fresh install of 0.19_pre on macOS Catalina. Use Ad-on Manager to install BIM. Quit and restart. Run BIM Setup, change units to imperial (sorry) and save.
23:33:37 Running the Python command 'BIM_Setup' failed:
Traceback (most recent call last):
File "/Users/vances/Library/Preferences/FreeCAD/Mod/BIM/BimSetup.py", line 217, in Activated
FreeCADGui.Snapper.setGrid()
File "/Applications/FreeCAD.app/Contents/Resources/Mod/Draft/draftguitools/gui_snapper.py", line 1618, in setGrid
self.setTrackers()
File "/Applications/FreeCAD.app/Contents/Resources/Mod/Draft/draftguitools/gui_snapper.py", line 1626, in setTrackers
v = Draft.get3DView()
File "/Applications/FreeCAD.app/Contents/Resources/Mod/Draft/draftutils/gui_utils.py", line 68, in get_3d_view
v = Gui.ActiveDocument.ActiveView
'NoneType' object has no attribute 'ActiveView'
Thanks for your report. Yeap, it's a shame. BIM Setup doesn't work if there's no document opened. Try opening BIM setup with some empty document opened
vances wrote: ↑Sat Aug 15, 2020 3:55 pm
...
v = Gui.ActiveDocument.ActiveView
'NoneType' object has no attribute 'ActiveView'
The problem here seems to be that ActiveDocument is None. This means that you have no active document open.
Many things in FreeCAD don't work if you don't have a document open. So, my best advice is to always open an empty document before doing anything else.
In this particular case, BIM can be improved so that the command BIM Setup is disabled if no active document is pressed. Many buttons are disabled if you have no active document, so this should be the same.
vocx wrote: ↑Sun Aug 16, 2020 4:31 pm
Many things in FreeCAD don't work if you don't have a document open. So, my best advice is to always open an empty document before doing anything else.
And this is not acceptable! We shouldn't tolerate this issue. It means that the current test coverage is inadequate.
vocx wrote: ↑Sun Aug 16, 2020 4:31 pm
In this particular case, BIM can be improved so that the command BIM Setup is disabled if no active document is pressed. Many buttons are disabled if you have no active document, so this should be the same.
I disagree. BIM setup should still work as those settings are not related to the active document but are global.
vanuan wrote: ↑Sun Aug 16, 2020 4:00 pm
Yeap, it's a shame. BIM Setup doesn't work if there's no document opened. Try opening BIM setup with some empty document opened
Roy_043 wrote: ↑Wed Aug 26, 2020 11:16 am
I do not understand why this topic is (still) pinned. It has become a rather random collection of comments, bug reports etc. I suggest unpinning it.
I suspect it's because BIM is not a part of FreeCAD yet, but still is kind of an "official" workbench. Maybe it would be better to create a separate BIM subforum?