---
title: "select.set: Select — Layout kit command — Kition"
description: "Selects objects by id, adding to the selection or selecting their content when asked."
canonical: "https://developer.kition.ai/docs/kits/layout/commands/select.set"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/layout/commands/select.set](https://developer.kition.ai/docs/kits/layout/commands/select.set)

# select.set

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

- Kit: Layout 0.1.0 (.klayout); reference: [Layout kit commands](https://developer.kition.ai/docs/kits/layout.md)
- Changes the document: yes
- Acts on: `ids` (a list of ids), which a run step’s `on` fills

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `add` | `boolean` | no |  |
| `anchors` | `any[][]` | no | [[id, subpath, anchor]] (Direct Selection's selected anchor points, of the selected paths); Direct Selection's selected anchor points, of the selected paths |
| `content` | `boolean` | no |  |
| `ids` | `integer[]` | no |  |
| `key` | `integer \| null` | no | the 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/layout-darwin-arm64@0.1.0 and the kit itself (layout_commands through @kition/cli@0.1.1, built from KitionAI/kition-layout@8767a18).
