CAD kit command
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)
- 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
Result JSON Schema
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/[email protected] and the kit itself (cad_commands through @kition/[email protected], built from KitionAI/kition-cad@1ec542d). As data: commands.jsonl.