parameters: (self, obj)
docstring: Return the list of edipoints for the given single line sketch.
          (WallTrace)
          0 : startpoint
          1 : endpoint
docstring_summary: Return the list of edipoints for the given single line sketch.
          (WallTrace)
          0 : startpoint
          1 : endpoint
docstring_tokens: Return the list of edipoints for the given single line sketch . ( WallTrace ) 0 : startpoint 1 : endpoint
function: def get_edit_points(self, obj):
          """Return the list of edipoints for the given single line sketch.
          (WallTrace)
          0 : startpoint
          1 : endpoint
          """
          import Part
          editpoints = []
          if (obj.ConstraintCount == 0
                  and obj.GeometryCount == 1
                  and type(obj.Geometry[0]) == Part.LineSegment):
              editpoints.append(obj.getPoint(0,1))
              editpoints.append(obj.getPoint(0,2))
              return editpoints
          else:
              _wrn = translate("draft", "Sketch is too complex to edit: "
                                      "it is suggested to use sketcher default editor")
              App.Console.PrintWarning(_wrn + "\n")
              return None
function_tokens: def get_edit_points ( self , obj ) : import Part editpoints = [ ] if ( obj . ConstraintCount == 0 and obj . GeometryCount == 1 and type ( obj . Geometry [ 0 ] ) == Part . LineSegment ) : editpoints . append ( obj . getPoint ( 0 , 1 ) ) editpoints . append ( obj . getPoint ( 0 , 2 ) ) return editpoints else : _wrn = translate ( "draft" , "Sketch is too complex to edit: " "it is suggested to use sketcher default editor" ) App . Console . PrintWarning ( _wrn + "\n" ) return None