CAD kit command
drafting.settings
Drafting Settings...
Sets drafting settings (snap and grid spacing, polar angle, major grid lines) and answers every drafting setting.
- Kit
- CAD 0.1.0 (.dxf)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
gridmajor | integer | no | |
gridunit | number[] | no | |
polarang | number | no | |
snapunit | number[] | no |
Call through cad_run
text
cad_run {
"path": "<file>.dxf",
"steps": [{ "command": "drafting.settings" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: gridmajor, gridunit, polarang, snapunit. cad_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
annoallvisible | boolean | no | |
annoautoscale | boolean | no | |
aperture | number | no | |
cursorsize | number | no | |
dynmode | boolean | no | |
dynpiAbsolute | boolean | no | |
dynpiCartesian | boolean | no | |
gridmajor | number | no | |
gridmode | boolean | no | |
gridunit | object | no | |
gripsize | number | no | |
isodraft | boolean | no | |
lwdisplay | boolean | no | |
maxarray | number | no | |
orthomode | boolean | no | |
osmode | number | no | |
osnaphatch | boolean | no | |
otrack | boolean | no | |
pickadd | boolean | no | |
pickbox | number | no | |
pickfirst | boolean | no | |
polarFlags | number | no | |
polaraddang | any[] | no | |
polarang | number | no | |
polarmode | boolean | no | |
qpmode | boolean | no | |
selectionCycling | boolean | no | |
snapmode | boolean | no | |
snapunit | object | no | |
transparencyDisplay | boolean | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"annoallvisible": {
"type": "boolean"
},
"annoautoscale": {
"type": "boolean"
},
"aperture": {
"type": "number"
},
"cursorsize": {
"type": "number"
},
"dynmode": {
"type": "boolean"
},
"dynpiAbsolute": {
"type": "boolean"
},
"dynpiCartesian": {
"type": "boolean"
},
"gridmajor": {
"type": "number"
},
"gridmode": {
"type": "boolean"
},
"gridunit": {
"additionalProperties": true,
"properties": {
"x": {
"type": "number"
},
"y": {
"type": "number"
}
},
"type": "object"
},
"gripsize": {
"type": "number"
},
"isodraft": {
"type": "boolean"
},
"lwdisplay": {
"type": "boolean"
},
"maxarray": {
"type": "number"
},
"orthomode": {
"type": "boolean"
},
"osmode": {
"type": "number"
},
"osnaphatch": {
"type": "boolean"
},
"otrack": {
"type": "boolean"
},
"pickadd": {
"type": "boolean"
},
"pickbox": {
"type": "number"
},
"pickfirst": {
"type": "boolean"
},
"polarFlags": {
"type": "number"
},
"polaraddang": {
"type": "array"
},
"polarang": {
"type": "number"
},
"polarmode": {
"type": "boolean"
},
"qpmode": {
"type": "boolean"
},
"selectionCycling": {
"type": "boolean"
},
"snapmode": {
"type": "boolean"
},
"snapunit": {
"additionalProperties": true,
"properties": {
"x": {
"type": "number"
},
"y": {
"type": "number"
}
},
"type": "object"
},
"transparencyDisplay": {
"type": "boolean"
}
},
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"gridmajor": {
"type": "integer"
},
"gridunit": {
"items": {
"type": "number"
},
"type": "array"
},
"polarang": {
"type": "number"
},
"snapunit": {
"items": {
"type": "number"
},
"type": "array"
}
},
"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.