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