def METHOD_NAME(self, app):
    name = self["name"]
    if not name or name == "default":
        name = "Hilbert"
    H = Hilbert(name)
    size = self.fromMm("Size")
    n = self["Order"]
    depth = self["Depth"]
    # Check parameters
    if size <= 0:
        app.setStatus(_("Hilbert abort: verify the size"))
        return
    if depth > 0:
        app.setStatus(
            _("Hilbert abort: depth must be minor or equal to zero"))
        return
    blocks = H.make(n, size, depth)
    active = app.activeBlock()
    if active == 0:
        active = 1
    app.gcode.insBlocks(active, blocks, "Hilbert")
    app.refresh()
    app.setStatus(_("Generated: Hilbert"))