Layout kit command

select.set

Select

Selects objects by id, adding to the selection or selecting their content when asked.

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 select.set
NameTypeRequiredDescription
addbooleanno
anchorsany[][]no[[id, subpath, anchor]] (Direct Selection's selected anchor points, of the selected paths); Direct Selection's selected anchor points, of the selected paths
contentbooleanno
idsinteger[]no
keyinteger | nullnothe key object Align aligns to: one of the selected objects; null drops it

Call through layout_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: add, anchors, content, ids, key. 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": {
    "add": {
      "type": "boolean"
    },
    "anchors": {
      "description": "[[id, subpath, anchor]] (Direct Selection's selected anchor points, of the selected paths); Direct Selection's selected anchor points, of the selected paths",
      "items": {
        "type": "array"
      },
      "type": "array"
    },
    "content": {
      "type": "boolean"
    },
    "ids": {
      "items": {
        "description": "an id",
        "type": "integer"
      },
      "type": "array",
      "x-khp-types": [
        "Item"
      ]
    },
    "key": {
      "description": "the key object Align aligns to: one of the selected objects; null drops it",
      "type": [
        "integer",
        "null"
      ],
      "x-khp-types": [
        "Item"
      ]
    }
  },
  "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.