CAD kit command

file.setUnits

Units...

Sets the drawing's length and angle unit formats and precisions, and its insertion units.

Kit
CAD 0.1.0 (.dxf)
Changes the document
yes

Parameters

Parameters of file.setUnits
NameTypeRequiredDescription
aunitsintegerno0 to 4
auprecintegerno0 to 8
insunitsintegerno
lunitsintegerno1 to 5
luprecintegerno0 to 8

Call through cad_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: aunits, auprec, insunits, lunits, luprec. 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": {
    "aunits": {
      "description": "0 to 4",
      "type": "integer"
    },
    "auprec": {
      "description": "0 to 8",
      "type": "integer"
    },
    "insunits": {
      "type": "integer"
    },
    "lunits": {
      "description": "1 to 5",
      "type": "integer"
    },
    "luprec": {
      "description": "0 to 8",
      "type": "integer"
    }
  },
  "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.