CAD kit command

textStyle.open

Text Style...

Creates or changes a text style: font, big font, height, width factor, oblique angle, flags, annotative, and optionally makes it current.

Kit
CAD 0.1.0 (.dxf)
Changes the document
yes

Parameters

Parameters of textStyle.open
NameTypeRequiredDescription
annotativebooleanno
backwardsbooleanno
bigFontstringno
currentbooleanno
fontstringno
heightnumberno
namestringno
obliquenumberno
upsideDownbooleanno
verticalbooleanno
widthFactornumberno

Call through cad_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: annotative, backwards, bigFont, current, font, height, name, oblique, upsideDown, vertical, widthFactor. 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": {
    "annotative": {
      "type": "boolean"
    },
    "backwards": {
      "type": "boolean"
    },
    "bigFont": {
      "type": "string"
    },
    "current": {
      "type": "boolean"
    },
    "font": {
      "type": "string"
    },
    "height": {
      "type": "number"
    },
    "name": {
      "type": "string",
      "x-khp-name": "name",
      "x-khp-types": [
        "TextStyle"
      ]
    },
    "oblique": {
      "type": "number"
    },
    "upsideDown": {
      "type": "boolean"
    },
    "vertical": {
      "type": "boolean"
    },
    "widthFactor": {
      "type": "number"
    }
  },
  "returns": "styles",
  "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.