---
title: "select.similar: Select Similar — CAD kit command — Kition"
description: "Selects every object shown in the space being edited that has the type and the layer of one of the selected objects (Select Similar: a line on Walls selects every line on Walls). It changes only the selection, which it needs: select one or more examples first. Answers how many objects are selected and their handles."
canonical: "https://developer.kition.ai/docs/kits/cad/commands/select.similar"
---

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

# select.similar

**Select Similar.** Selects every object shown in the space being edited that has the type and the layer of one of the selected objects (Select Similar: a line on Walls selects every line on Walls). It changes only the selection, which it needs: select one or more examples first. Answers how many objects are selected and their handles.

- Kit: CAD 0.1.0 (.dxf); reference: [CAD kit commands](https://developer.kition.ai/docs/kits/cad.md)
- Changes the document: no

## Parameters

None.

## Call through cad_run

```text
cad_run {
  "path": "<file>.dxf",
  "steps": [{ "command": "select.similar" }]
}
```

The required parameters, with placeholders for their types: not a tested example. cad_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `handles` | `string[]` | no | the selected objects' handles |
| `selected` | `number` | no | how many objects are selected |

```json
{
  "additionalProperties": true,
  "properties": {
    "handles": {
      "description": "the selected objects' handles",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "selected": {
      "description": "how many objects are selected",
      "type": "number"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/cad-darwin-arm64@0.1.0 and the kit itself (cad_commands through @kition/cli@0.1.1, built from KitionAI/kition-cad@1ec542d).
