---
title: "layout.list: List Layouts — CAD kit command — Kition"
description: "Answers every layout with its name, tab order, whether it is current, its page setup and its viewports."
canonical: "https://developer.kition.ai/docs/kits/cad/commands/layout.list"
---

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

# layout.list

**List Layouts.** Answers every layout with its name, tab order, whether it is current, its page setup and its viewports.

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

## Parameters

None.

## Call through cad_run

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

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

## Result



```json
{
  "items": {
    "additionalProperties": true,
    "properties": {
      "current": {
        "type": "boolean"
      },
      "name": {
        "type": "string"
      },
      "page": {
        "additionalProperties": true,
        "properties": {
          "center": {
            "type": "boolean"
          },
          "device": {
            "type": "string"
          },
          "heightMm": {
            "type": "number"
          },
          "landscape": {
            "type": "boolean"
          },
          "lineweights": {
            "type": "boolean"
          },
          "marginsMm": {
            "type": "array"
          },
          "paper": {
            "type": "string"
          },
          "plotArea": {
            "type": "string"
          },
          "plotStyleTable": {
            "type": "string"
          },
          "scale": {
            "type": "number"
          },
          "scaleToFit": {
            "type": "boolean"
          },
          "showPlotStyles": {
            "type": "boolean"
          },
          "widthMm": {
            "type": "number"
          }
        },
        "type": "object"
      },
      "tabOrder": {
        "type": "number"
      },
      "viewports": {
        "type": "array"
      }
    },
    "type": "object"
  },
  "type": "array"
}
```

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).
