CAD kit command

select.quickInfo

Quick Select Properties

Answers the object types in the drawing or selection with their counts, and the properties and operators Quick Select offers for a type.

Kit
CAD 0.1.0 (.dxf)
Changes the document
no

Parameters

Parameters of select.quickInfo
NameTypeRequiredDescription
applyTo"drawing" | "selection"no
typestringno

Call through cad_run

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

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

Result

Result of select.quickInfo
NameTypeRequiredDescription
countnumberno
operatorsstring[]no
propertiesstring[]no
typesobject[]no
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "count": {
      "type": "number"
    },
    "operators": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "properties": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "types": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "count": {
            "type": "number"
          },
          "type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "applyTo": {
      "enum": [
        "drawing",
        "selection"
      ],
      "type": "string"
    },
    "type": {
      "type": "string"
    }
  },
  "returns": "object types with counts and the properties available for `type`",
  "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.