parameters: ()
docstring: Manage Python based toolbars in Arch and Draft workbench.
docstring_summary: Manage Python based toolbars in Arch and Draft workbench.
docstring_tokens: Manage Python based toolbars in Arch and Draft workbench .
function: def pythonToolbars():
      """Manage Python based toolbars in Arch and Draft workbench."""
  
      active = Gui.activeWorkbench().__class__.__name__
  
      if active == "DraftWorkbench" or active == "ArchWorkbench" or active == "BIMWorkbench":
          if hasattr(Gui, "draftToolBar"):
              try:
                  Gui.draftToolBar.Activated()
              except Exception:
                  m = "Persistent toolbars: draftToolBar toolbar not managed.\n"
                  App.Console.PrintMessage(m)
          if hasattr(Gui, "Snapper"):
              try:
                  Gui.Snapper.show()
              except Exception:
                  m = "Persistent toolbars: Snapper toolbar not managed.\n"
                  App.Console.PrintMessage(m)
      else:
          pass
function_tokens: def pythonToolbars ( ) : active = Gui . activeWorkbench ( ) . __class__ . __name__ if active == "DraftWorkbench" or active == "ArchWorkbench" or active == "BIMWorkbench" : if hasattr ( Gui , "draftToolBar" ) : try : Gui . draftToolBar . Activated ( ) except Exception : m = "Persistent toolbars: draftToolBar toolbar not managed.\n" App . Console . PrintMessage ( m ) if hasattr ( Gui , "Snapper" ) : try : Gui . Snapper . show ( ) except Exception : m = "Persistent toolbars: Snapper toolbar not managed.\n" App . Console . PrintMessage ( m ) else : pass