CAD kit command

attribute.manage

Block Attribute Manager...

Answers the attribute definitions of the named block (tag, prompt, default and invisibility), as the Block Attribute Manager lists them.

Kit
CAD 0.1.0 (.dxf)
Changes the document
no

Parameters

Parameters of attribute.manage
NameTypeRequiredDescription
namestringno

Call through cad_run

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

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

Result

Result of attribute.manage
NameTypeRequiredDescription
attributesobject[]no
blockstringno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "attributes": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "default": {
            "type": "string"
          },
          "invisible": {
            "type": "boolean"
          },
          "prompt": {
            "type": "string"
          },
          "tag": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "block": {
      "type": "string"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "name": {
      "type": "string",
      "x-khp-name": "name",
      "x-khp-types": [
        "Block"
      ]
    }
  },
  "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.