---
title: "plot.pageSetup: Page Setup Manager... — CAD kit command — Kition"
description: "Sets a layout's page setup: paper, orientation, margins, plot area, scale or fit, centring, lineweights and plot style table."
canonical: "https://developer.kition.ai/docs/kits/cad/commands/plot.pageSetup"
---

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

# plot.pageSetup

**Page Setup Manager....** Sets a layout's page setup: paper, orientation, margins, plot area, scale or fit, centring, lineweights and plot style table.

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `center` | `boolean` | no |  |
| `displayPlotStyles` | `boolean` | no |  |
| `height` | `number` | no | mm |
| `landscape` | `boolean` | no |  |
| `layout` | `string` | no |  |
| `lineweights` | `boolean` | no |  |
| `margins` | `number[]` | no |  |
| `paper` | `string` | no |  |
| `plotArea` | `string` | no |  |
| `plotStyleTable` | `string` | no |  |
| `scale` | `number` | no |  |
| `scaleToFit` | `boolean` | no |  |
| `width` | `number` | no |  |

## Call through cad_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `center`, `displayPlotStyles`, `height`, `landscape`, `layout`, `lineweights`, `margins`, `paper`, `plotArea`, `plotStyleTable`, `scale`, `scaleToFit`, `width`. 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": {
    "center": {
      "type": "boolean"
    },
    "displayPlotStyles": {
      "type": "boolean"
    },
    "height": {
      "description": "mm",
      "type": "number"
    },
    "landscape": {
      "type": "boolean"
    },
    "layout": {
      "type": "string",
      "x-khp-name": "name",
      "x-khp-types": [
        "Layout"
      ]
    },
    "lineweights": {
      "type": "boolean"
    },
    "margins": {
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "paper": {
      "type": "string"
    },
    "plotArea": {
      "type": "string"
    },
    "plotStyleTable": {
      "type": "string"
    },
    "scale": {
      "type": "number"
    },
    "scaleToFit": {
      "type": "boolean"
    },
    "width": {
      "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).
