parameters: (self)
docstring: Proceed with the command if one object was selected.
docstring_summary: Proceed with the command if one object was selected.
docstring_tokens: Proceed with the command if one object was selected .
function: def proceed(self):
          """Proceed with the command if one object was selected."""
          sel = Gui.Selection.getSelectionEx()
          if len(sel) != 2:
              _err(translate("draft","Please select exactly two objects, the base object and the point object, before calling this command."))
          else:
              base_object = sel[0].Object
              point_object = sel[1].Object
              extra = None
  
              Gui.addModule('Draft')
              _cmd = "Draft.make_point_array"
              _cmd += "("
              _cmd += "App.ActiveDocument." + base_object.Name + ", "
              _cmd += "App.ActiveDocument." + point_object.Name + ", "
              _cmd += "extra=" + str(extra) + ", "
              _cmd += 'use_link=' + str(self.use_link)
              _cmd += ")"
  
              _cmd_list = ["_obj_ = " + _cmd,
                           "Draft.autogroup(_obj_)",
                           "App.ActiveDocument.recompute()"]
              self.commit(translate("draft","Point array"), _cmd_list)
  
          # Commit the transaction and execute the commands
          # through the parent class
          self.finish()
function_tokens: def proceed ( self ) : sel = Gui . Selection . getSelectionEx ( ) if len ( sel ) != 2 : _err ( translate ( "draft" , "Please select exactly two objects, the base object and the point object, before calling this command." ) ) else : base_object = sel [ 0 ] . Object point_object = sel [ 1 ] . Object extra = None Gui . addModule ( 'Draft' ) _cmd = "Draft.make_point_array" _cmd += "(" _cmd += "App.ActiveDocument." + base_object . Name + ", " _cmd += "App.ActiveDocument." + point_object . Name + ", " _cmd += "extra=" + str ( extra ) + ", " _cmd += 'use_link=' + str ( self . use_link ) _cmd += ")" _cmd_list = [ "_obj_ = " + _cmd , "Draft.autogroup(_obj_)" , "App.ActiveDocument.recompute()" ] self . commit ( translate ( "draft" , "Point array" ) , _cmd_list ) # Commit the transaction and execute the commands # through the parent class self . finish ( )