def METHOD_NAME(self, app):
    n = self["name"]
    if not n or n == "default":
        n = "Spirograph"
    spirograph = Spirograph(n)
    blocks = spirograph.make(
        self.fromMm("RadiusExternal"),
        self.fromMm("RadiusInternal"),
        self.fromMm("RadiusOffset"),
        self.fromMm("Depth"),
    )
    active = app.activeBlock()
    if active == 0:
        active = 1
    app.gcode.insBlocks(active, blocks, "Spirograph")
    app.refresh()
    app.setStatus(_("Generated: Spirograph"))