I tested but obviously the code is not compatible with the 0.21
Code: Select all
File "GDT.py", line 242, in showGrid
FreeCADGui.Snapper.show()
File "FreeCAD 0.21\Mod\Draft\draftguitools\gui_snapper.py", line 1570, in show
toolbar = self.get_snap_toolbar()
File "FreeCAD 0.21\Mod\Draft\draftguitools\gui_snapper.py", line 1505, in get_snap_toolbar
action = Gui.Command.get(cmd).getAction()[0]
list index out of range