parameters: (path, checkclosed=False, donttry=False)
return_statement: return sh
docstring: Try to make a wire out of the list of edges.
  
      If the wire functions fail or the wire is not closed,
      if required the TopoShapeCompoundPy::connectEdgesToWires()
      function is used.
  
      Parameters
      ----------
      path : Part.Edge
          A collection of edges
      checkclosed : bool, optional
          Default is `False`.
      donttry : bool, optional
          Default is `False`. If it's `True` it won't try to check
          for a closed path.
  
      Returns
      -------
      Part::Wire
          A wire created from the ordered edges.
      Part::Compound
          A compound made of the edges, but unable to form a wire.
docstring_summary: Try to make a wire out of the list of edges.
docstring_tokens: Try to make a wire out of the list of edges .
function: def makewire(path, checkclosed=False, donttry=False):
      '''Try to make a wire out of the list of edges.
  
      If the wire functions fail or the wire is not closed,
      if required the TopoShapeCompoundPy::connectEdgesToWires()
      function is used.
  
      Parameters
      ----------
      path : Part.Edge
          A collection of edges
      checkclosed : bool, optional
          Default is `False`.
      donttry : bool, optional
          Default is `False`. If it's `True` it won't try to check
          for a closed path.
  
      Returns
      -------
      Part::Wire
          A wire created from the ordered edges.
      Part::Compound
          A compound made of the edges, but unable to form a wire.
      '''
      if not donttry:
          try:
              import Part
              sh = Part.Wire(Part.__sortEdges__(path))
              # sh = Part.Wire(path)
              isok = (not checkclosed) or sh.isClosed()
              if len(sh.Edges) != len(path):
                  isok = False
          # BRep_API: command not done
          except Part.OCCError:
              isok = False
      if donttry or not isok:
          # Code from wmayer forum p15549 to fix the tolerance problem
          # original tolerance = 0.00001
          comp = Part.Compound(path)
          _sh = comp.connectEdgesToWires(False,
                                         10**(-1 * (Draft.precision() - 2)))
          sh = _sh.Wires[0]
          if len(sh.Edges) != len(path):
              _wrn("Unable to form a wire")
              sh = comp
      return sh
function_tokens: def makewire ( path , checkclosed = False , donttry = False ) : if not donttry : try : import Part sh = Part . Wire ( Part . __sortEdges__ ( path ) ) # sh = Part.Wire(path) isok = ( not checkclosed ) or sh . isClosed ( ) if len ( sh . Edges ) != len ( path ) : isok = False # BRep_API: command not done except Part . OCCError : isok = False if donttry or not isok : # Code from wmayer forum p15549 to fix the tolerance problem # original tolerance = 0.00001 comp = Part . Compound ( path ) _sh = comp . connectEdgesToWires ( False , 10 ** ( - 1 * ( Draft . precision ( ) - 2 ) ) ) sh = _sh . Wires [ 0 ] if len ( sh . Edges ) != len ( path ) : _wrn ( "Unable to form a wire" ) sh = comp return sh