---
title: "measure.angle: Angle — CAD kit command — Kition"
description: "Measures the angle at a vertex between two points, or between two lines, in degrees."
canonical: "https://developer.kition.ai/docs/kits/cad/commands/measure.angle"
---

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

# measure.angle

**Angle.** Measures the angle at a vertex between two points, or between two lines, in degrees.

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `h1` | `string` | no |  |
| `h2` | `string` | no |  |
| `p1` | `number[]` | no |  |
| `p2` | `number[]` | no |  |
| `vertex` | `number[]` | no |  |

## Call through cad_run

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

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

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `angle` | `number` | no |  |
| `message` | `string` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "angle": {
      "type": "number"
    },
    "message": {
      "type": "string"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "h1": {
      "type": "string",
      "x-khp-types": [
        "Entity"
      ]
    },
    "h2": {
      "type": "string",
      "x-khp-types": [
        "Entity"
      ]
    },
    "p1": {
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "p2": {
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "vertex": {
      "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).
