---
title: "drafting.settings: Drafting Settings... — CAD kit command — Kition"
description: "Sets drafting settings (snap and grid spacing, polar angle, major grid lines) and answers every drafting setting."
canonical: "https://developer.kition.ai/docs/kits/cad/commands/drafting.settings"
---

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

# drafting.settings

**Drafting Settings....** Sets drafting settings (snap and grid spacing, polar angle, major grid lines) and answers every drafting setting.

- 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 |
| --- | --- | --- | --- |
| `gridmajor` | `integer` | no |  |
| `gridunit` | `number[]` | no |  |
| `polarang` | `number` | no |  |
| `snapunit` | `number[]` | no |  |

## Call through cad_run

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

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

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `annoallvisible` | `boolean` | no |  |
| `annoautoscale` | `boolean` | no |  |
| `aperture` | `number` | no |  |
| `cursorsize` | `number` | no |  |
| `dynmode` | `boolean` | no |  |
| `dynpiAbsolute` | `boolean` | no |  |
| `dynpiCartesian` | `boolean` | no |  |
| `gridmajor` | `number` | no |  |
| `gridmode` | `boolean` | no |  |
| `gridunit` | `object` | no |  |
| `gripsize` | `number` | no |  |
| `isodraft` | `boolean` | no |  |
| `lwdisplay` | `boolean` | no |  |
| `maxarray` | `number` | no |  |
| `orthomode` | `boolean` | no |  |
| `osmode` | `number` | no |  |
| `osnaphatch` | `boolean` | no |  |
| `otrack` | `boolean` | no |  |
| `pickadd` | `boolean` | no |  |
| `pickbox` | `number` | no |  |
| `pickfirst` | `boolean` | no |  |
| `polarFlags` | `number` | no |  |
| `polaraddang` | `any[]` | no |  |
| `polarang` | `number` | no |  |
| `polarmode` | `boolean` | no |  |
| `qpmode` | `boolean` | no |  |
| `selectionCycling` | `boolean` | no |  |
| `snapmode` | `boolean` | no |  |
| `snapunit` | `object` | no |  |
| `transparencyDisplay` | `boolean` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "annoallvisible": {
      "type": "boolean"
    },
    "annoautoscale": {
      "type": "boolean"
    },
    "aperture": {
      "type": "number"
    },
    "cursorsize": {
      "type": "number"
    },
    "dynmode": {
      "type": "boolean"
    },
    "dynpiAbsolute": {
      "type": "boolean"
    },
    "dynpiCartesian": {
      "type": "boolean"
    },
    "gridmajor": {
      "type": "number"
    },
    "gridmode": {
      "type": "boolean"
    },
    "gridunit": {
      "additionalProperties": true,
      "properties": {
        "x": {
          "type": "number"
        },
        "y": {
          "type": "number"
        }
      },
      "type": "object"
    },
    "gripsize": {
      "type": "number"
    },
    "isodraft": {
      "type": "boolean"
    },
    "lwdisplay": {
      "type": "boolean"
    },
    "maxarray": {
      "type": "number"
    },
    "orthomode": {
      "type": "boolean"
    },
    "osmode": {
      "type": "number"
    },
    "osnaphatch": {
      "type": "boolean"
    },
    "otrack": {
      "type": "boolean"
    },
    "pickadd": {
      "type": "boolean"
    },
    "pickbox": {
      "type": "number"
    },
    "pickfirst": {
      "type": "boolean"
    },
    "polarFlags": {
      "type": "number"
    },
    "polaraddang": {
      "type": "array"
    },
    "polarang": {
      "type": "number"
    },
    "polarmode": {
      "type": "boolean"
    },
    "qpmode": {
      "type": "boolean"
    },
    "selectionCycling": {
      "type": "boolean"
    },
    "snapmode": {
      "type": "boolean"
    },
    "snapunit": {
      "additionalProperties": true,
      "properties": {
        "x": {
          "type": "number"
        },
        "y": {
          "type": "number"
        }
      },
      "type": "object"
    },
    "transparencyDisplay": {
      "type": "boolean"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "gridmajor": {
      "type": "integer"
    },
    "gridunit": {
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "polarang": {
      "type": "number"
    },
    "snapunit": {
      "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).
