---
title: "object.setProperties: Set Properties — CAD kit command — Kition"
description: "Sets properties of the given objects, or the selection: layer, colour, linetype, lineweight, scale, transparency, visibility and geometry fields."
canonical: "https://developer.kition.ai/docs/kits/cad/commands/object.setProperties"
---

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

# object.setProperties

**Set Properties.** Sets properties of the given objects, or the selection: layer, colour, linetype, lineweight, scale, transparency, visibility and geometry fields.

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `angle` | `number` | no | degrees; a line's, or a hatch pattern's |
| `aperture` | `number` | no | Pick reach in drawing units; default 0.5% of the space extents. |
| `area` | `number` | no |  |
| `center` | `number[]` | no |  |
| `circumference` | `number` | no |  |
| `closed` | `boolean` | no |  |
| `color` | `string` | no |  |
| `diameter` | `number` | no |  |
| `dimStyle` | `string` | no | a dimension style name |
| `end` | `number[]` | no |  |
| `endAngle` | `number` | no | degrees |
| `handles` | `string[]` | no |  |
| `height` | `number` | no |  |
| `layer` | `string` | no | a layer name |
| `length` | `number` | no | a line's |
| `linetype` | `string` | no |  |
| `lineweight` | `number \| string` | no |  |
| `ltscale` | `number` | no |  |
| `pattern` | `string` | no | a hatch pattern name |
| `pick` | `number[]` | no | Instead of handles: a drawing-space point [x,y], picked by the engine in the call's layout. With basis, holds what was at that point. |
| `position` | `number[]` | no | where a text, a paragraph, a point or a block reference is placed |
| `radius` | `number` | no |  |
| `rotation` | `number` | no | degrees |
| `scale` | `number` | no | a block's or hatch pattern's |
| `start` | `number[]` | no |  |
| `startAngle` | `number` | no | degrees |
| `text` | `string` | no |  |
| `textOverride` | `string` | no | a dimension's |
| `transparency` | `number \| string` | no |  |
| `vertex` | `number` | no | a polyline vertex, from 0, that vertexAt moves |
| `vertexAt` | `number[]` | no |  |
| `visible` | `boolean` | no |  |
| `width` | `number` | no | a polyline's or text frame's |
| `widthFactor` | `number` | no |  |

## Call through cad_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `angle`, `aperture`, `area`, `center`, `circumference`, `closed`, `color`, `diameter`, `dimStyle`, `end`, `endAngle`, `handles`, `height`, `layer`, `length`, `linetype`, `lineweight`, `ltscale`, `pattern`, `pick`, `position`, `radius`, `rotation`, `scale`, `start`, `startAngle`, `text`, `textOverride`, `transparency`, `vertex`, `vertexAt`, `visible`, `width`, `widthFactor`. 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": {
    "angle": {
      "description": "degrees; a line's, or a hatch pattern's",
      "type": "number"
    },
    "aperture": {
      "description": "Pick reach in drawing units; default 0.5% of the space extents.",
      "type": "number"
    },
    "area": {
      "type": "number"
    },
    "center": {
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "circumference": {
      "type": "number"
    },
    "closed": {
      "type": "boolean"
    },
    "color": {
      "type": "string"
    },
    "diameter": {
      "type": "number"
    },
    "dimStyle": {
      "description": "a dimension style name",
      "type": "string",
      "x-khp-name": "name",
      "x-khp-types": [
        "DimStyle"
      ]
    },
    "end": {
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "endAngle": {
      "description": "degrees",
      "type": "number"
    },
    "handles": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "x-khp-types": [
        "Entity"
      ]
    },
    "height": {
      "type": "number"
    },
    "layer": {
      "description": "a layer name",
      "type": "string",
      "x-khp-name": "name",
      "x-khp-types": [
        "Layer"
      ]
    },
    "length": {
      "description": "a line's",
      "type": "number"
    },
    "linetype": {
      "type": "string",
      "x-khp-name": "name",
      "x-khp-types": [
        "Linetype"
      ]
    },
    "lineweight": {
      "oneOf": [
        {
          "type": "number"
        },
        {
          "type": "string"
        }
      ]
    },
    "ltscale": {
      "type": "number"
    },
    "pattern": {
      "description": "a hatch pattern name",
      "type": "string"
    },
    "pick": {
      "description": "Instead of handles: a drawing-space point [x,y], picked by the engine in the call's layout. With basis, holds what was at that point.",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "position": {
      "description": "where a text, a paragraph, a point or a block reference is placed",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "radius": {
      "type": "number"
    },
    "rotation": {
      "description": "degrees",
      "type": "number"
    },
    "scale": {
      "description": "a block's or hatch pattern's",
      "type": "number"
    },
    "start": {
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "startAngle": {
      "description": "degrees",
      "type": "number"
    },
    "text": {
      "type": "string"
    },
    "textOverride": {
      "description": "a dimension's",
      "type": "string"
    },
    "transparency": {
      "oneOf": [
        {
          "type": "number"
        },
        {
          "type": "string"
        }
      ]
    },
    "vertex": {
      "description": "a polyline vertex, from 0, that vertexAt moves",
      "type": "number"
    },
    "vertexAt": {
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "visible": {
      "type": "boolean"
    },
    "width": {
      "description": "a polyline's or text frame's",
      "type": "number"
    },
    "widthFactor": {
      "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).
