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

Parameters of drafting.setDynamicEntry
NameTypeRequiredDescription
secondLockedbooleanno
textstringno

Call through cad_run

text
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

Result of drafting.setDynamicEntry
NameTypeRequiredDescription
entrybooleanno
formatstringno
holdsbooleanno
relativebooleanno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "entry": {
      "type": "boolean"
    },
    "format": {
      "type": "string"
    },
    "holds": {
      "type": "boolean"
    },
    "relative": {
      "type": "boolean"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "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.