CAD kit command
drafting.setDynamicEntry
Dynamic Input Entry
Tells the engine what the person has typed in the editor's dynamic input boxes beside the cursor, so a value locked there holds the cursor and the preview, and answers whether the text reads as a box entry and the command-line text Enter would send for it now (`complete`; null sends the text as typed). The editor calls it; it changes neither the drawing nor the running command.
- Kit
- CAD 0.1.0 (.dxf)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
secondLocked | boolean | no | |
text | string | no |
Call through cad_run
cad_run {
"path": "<file>.dxf",
"steps": [{ "command": "drafting.setDynamicEntry" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: secondLocked, text. cad_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
entry | boolean | no | |
format | string | no | |
holds | boolean | no | |
relative | boolean | no |
Result JSON Schema
{
"additionalProperties": true,
"properties": {
"entry": {
"type": "boolean"
},
"format": {
"type": "string"
},
"holds": {
"type": "boolean"
},
"relative": {
"type": "boolean"
}
},
"type": "object"
}Parameter schema
{
"additionalProperties": false,
"properties": {
"secondLocked": {
"type": "boolean"
},
"text": {
"type": "string"
}
},
"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.