CAD kit command

file.bytes

Drawing as bytes

Answers the current drawing written as DXF, base64-encoded, without saving it to a file.

Kit
CAD 0.1.0 (.dxf)
Changes the document
no

Parameters

Parameters of file.bytes
NameTypeRequiredDescription
formatstringno

Call through cad_run

text
cad_run {
  "path": "<file>.dxf",
  "steps": [{ "command": "file.bytes" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: format. cad_run answers the step’s result in completed[i].result.

Result

Result of file.bytes
NameTypeRequiredDescription
dataanyno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "data": {}
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "format": {
      "type": "string"
    }
  },
  "returns": "{data: base64}",
  "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.