def METHOD_NAME(self):
    """Execute when the command is called."""
    super(Draft_FlipDimension, self).METHOD_NAME()
    for o in Gui.Selection.getSelection():
        if utils.get_type(o) in ("Dimension",
                                 "LinearDimension", "AngularDimension"):
            self.doc.openTransaction("Flip dimension")
            _cmd = "App.activeDocument()." + o.Name + ".Normal"
            _cmd += " = "
            _cmd += "App.activeDocument()." + o.Name + ".Normal.negative()"
            Gui.doCommand(_cmd)
            self.doc.commitTransaction()
            self.doc.recompute()