def METHOD_NAME(self, app):
    n = self["name"]
    if not n or n == "default":
        n = "SimpleRectangle"
    simpleRectangle = SimpleRectangle(n)
    blocks = simpleRectangle.calc(
        self["xstart"],
        self["ystart"],
        self["xend"],
        self["yend"],
        self["radius"],
        self["cw"],
    )
    active = app.activeBlock()
    if active == 0:
        active = 1
    app.gcode.insBlocks(active, blocks, _("Create Simple Rectangle"))
    app.refresh()
    app.setStatus(_("Generated: Simple Rectangle"))