---
title: "object.lengthen: Lengthen — CAD kit command — Kition"
description: "Changes an object's length at the picked end by a delta, percent, total or to a point, or alone measures its length."
canonical: "https://developer.kition.ai/docs/kits/cad/commands/object.lengthen"
---

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

# object.lengthen

**Lengthen.** Changes an object's length at the picked end by a delta, percent, total or to a point, or alone measures its length.

- 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 |  |
| `deltaAngle` | `number` | no |  |
| `handle` | `string` | no |  |
| `percent` | `number` | no |  |
| `pick` | `number[]` | no | end |
| `to` | `number[]` | no | one of several alternative parameters |
| `total` | `number` | no |  |
| `totalAngle` | `number` | no |  |

## Call through cad_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `delta`, `deltaAngle`, `handle`, `percent`, `pick`, `to`, `total`, `totalAngle`. 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": {
      "type": "number"
    },
    "deltaAngle": {
      "type": "number"
    },
    "handle": {
      "type": "string",
      "x-khp-types": [
        "Entity"
      ]
    },
    "percent": {
      "type": "number"
    },
    "pick": {
      "description": "end",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "to": {
      "description": "one of several alternative parameters",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "total": {
      "type": "number"
    },
    "totalAngle": {
      "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).
