CAD kit command

textStyle.list

List Text Styles

Answers every text style with its font, height, width factor, flags and whether it is current.

Kit
CAD 0.1.0 (.dxf)
Changes the document
no

Parameters

None.

Call through cad_run

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

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

Result

Result of textStyle.list
NameTypeRequiredDescription
currentstringno
stylesobject[]no
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "current": {
      "type": "string"
    },
    "styles": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "annotative": {
            "type": "boolean"
          },
          "backwards": {
            "type": "boolean"
          },
          "bigFont": {
            "type": "string"
          },
          "current": {
            "type": "boolean"
          },
          "font": {
            "type": "string"
          },
          "height": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "oblique": {
            "type": "number"
          },
          "trueType": {
            "type": "boolean"
          },
          "upsideDown": {
            "type": "boolean"
          },
          "vertical": {
            "type": "boolean"
          },
          "widthFactor": {
            "type": "number"
          }
        },
        "type": "object"
      },
      "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.