---
title: "object.copyNested: Copy Nested Objects — CAD kit command — Kition"
description: "Copies objects nested inside a block reference, the one nearest a pick or all, out into the drawing by a delta or points."
canonical: "https://developer.kition.ai/docs/kits/cad/commands/object.copyNested"
---

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

# object.copyNested

**Copy Nested Objects.** Copies objects nested inside a block reference, the one nearest a pick or all, out into the drawing by a delta or points.

- Kit: CAD 0.1.0 (.dxf); reference: [CAD kit commands](https://developer.kition.ai/docs/kits/cad.md)
- Changes the document: yes
- Acts on: `handle` (one id), which a run step’s `on` fills

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `delta` | `number[]` | no | [dx, dy] |
| `from` | `number[]` | no |  |
| `handle` | `string` | no |  |
| `pick` | `number[]` | no | nearest nested object; default all |
| `to` | `number[]` | no |  |

## Call through cad_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `delta`, `from`, `handle`, `pick`, `to`. cad_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": {
    "delta": {
      "description": "[dx, dy]",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "from": {
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "handle": {
      "type": "string",
      "x-khp-types": [
        "Entity"
      ]
    },
    "pick": {
      "description": "nearest nested object; default all",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "to": {
      "items": {
        "type": "number"
      },
      "type": "array"
    }
  },
  "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).
