def METHOD_NAME(self): # Only to be used for Draft_Wires.
    if not hasattr(self, "Object"):
        return
    if hasattr(App, "DraftWorkingPlane"):
        App.DraftWorkingPlane.setup()
        origin = App.DraftWorkingPlane.position
        normal = App.DraftWorkingPlane.axis
        # Align the grid for visual feedback:
        if hasattr(Gui, "Snapper"):
            Gui.Snapper.setTrackers()
    else:
        origin = App.Vector(0, 0, 0)
        normal = App.Vector(0, 0, 1)
    flat_wire = wires.flattenWire(self.Object.Shape.Wires[0],
                                  origin=origin,
                                  normal=normal)
    doc = App.ActiveDocument
    doc.openTransaction(translate("draft", "Flatten"))
    self.Object.Placement = App.Placement()
    self.Object.Points = [vert.Point for vert in flat_wire.Vertexes]
    self.Object.Closed = flat_wire.isClosed()
    doc.recompute()
    doc.commitTransaction()