parameters: (self)
docstring: Execute when the command is called.
docstring_summary: Execute when the command is called.
docstring_tokens: Execute when the command is called .
function: def Activated(self):
          """Execute when the command is called."""
          super(Upgrade, self).Activated(name="Upgrade")
          if self.ui:
              if not Gui.Selection.getSelection():
                  self.ui.selectUi(on_close_call=self.finish)
                  _msg(translate("draft", "Select an object to upgrade"))
                  self.call = self.view.addEventCallback(
                      "SoEvent",
                      gui_tool_utils.selectObject)
              else:
                  self.proceed()
function_tokens: def Activated ( self ) : super ( Upgrade , self ) . Activated ( name = "Upgrade" ) if self . ui : if not Gui . Selection . getSelection ( ) : self . ui . selectUi ( on_close_call = self . finish ) _msg ( translate ( "draft" , "Select an object to upgrade" ) ) self . call = self . view . addEventCallback ( "SoEvent" , gui_tool_utils . selectObject ) else : self . proceed ( )