Layout kit command

edit.stepAndRepeat

Step and Repeat

Makes copies of the selection a number of times at a dx, dy offset, or as a grid of rows and columns.

Kit
Layout 0.1.0 (.klayout)
Changes the document
yes
Acts on
ids (a list of ids), which a run step’s on fills

Parameters

Parameters of edit.stepAndRepeat
NameTypeRequiredDescription
columnsintegerno
countintegerno1 to 1000
dxnumberno
dynumberno
ids(integer | string)[]no
rowsintegerno

Call through layout_run

text
layout_run {
  "path": "<file>.klayout",
  "steps": [{ "command": "edit.stepAndRepeat" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: columns, count, dx, dy, ids, rows. layout_run answers the step’s result in completed[i].result.

Result

The kit gives no result schema for this command.

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "columns": {
      "type": "integer"
    },
    "count": {
      "description": "1 to 1000",
      "type": "integer"
    },
    "dx": {
      "type": "number"
    },
    "dy": {
      "type": "number"
    },
    "ids": {
      "items": {
        "description": "an id",
        "oneOf": [
          {
            "type": "integer"
          },
          {
            "type": "string"
          }
        ]
      },
      "type": "array",
      "x-khp-types": [
        "Item"
      ]
    },
    "rows": {
      "type": "integer"
    }
  },
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (layout_commands through @kition/[email protected], built from KitionAI/kition-layout@8767a18). As data: commands.jsonl.