parameters: (res)
return_statement: return None
docstring: Create(res) ... generic implementation of a create function.
      res is an instance of CommandResources. It is not expected that the user invokes
      this function directly, but calls the Activated() function of the Command object
      that is created in each operations Gui implementation.
docstring_summary: Create(res) ... generic implementation of a create function.
      res is an instance of CommandResources. It is not expected that the user invokes
      this function directly, but calls the Activated() function of the Command object
      that is created in each operations Gui implementation.
docstring_tokens: Create ( res ) ... generic implementation of a create function . res is an instance of CommandResources . It is not expected that the user invokes this function directly but calls the Activated () function of the Command object that is created in each operations Gui implementation .
function: def Create(res):
      """Create(res) ... generic implementation of a create function.
      res is an instance of CommandResources. It is not expected that the user invokes
      this function directly, but calls the Activated() function of the Command object
      that is created in each operations Gui implementation."""
      FreeCAD.ActiveDocument.openTransaction("Create %s" % res.name)
      obj = res.objFactory(res.name, obj=None, parentJob=res.job)
      if obj.Proxy:
          obj.ViewObject.Proxy = ViewProvider(obj.ViewObject, res)
          obj.ViewObject.Visibility = False
          FreeCAD.ActiveDocument.commitTransaction()
  
          obj.ViewObject.Document.setEdit(obj.ViewObject, 0)
          return obj
      FreeCAD.ActiveDocument.abortTransaction()
      return None
function_tokens: def Create ( res ) : FreeCAD . ActiveDocument . openTransaction ( "Create %s" % res . name ) obj = res . objFactory ( res . name , obj = None , parentJob = res . job ) if obj . Proxy : obj . ViewObject . Proxy = ViewProvider ( obj . ViewObject , res ) obj . ViewObject . Visibility = False FreeCAD . ActiveDocument . commitTransaction ( ) obj . ViewObject . Document . setEdit ( obj . ViewObject , 0 ) return obj FreeCAD . ActiveDocument . abortTransaction ( ) return None