CAD kit command

object.copyNested

Copy Nested Objects

Copies objects nested inside a block reference, the one nearest a pick or all, out into the drawing by a delta or points.

Kit
CAD 0.1.0 (.dxf)
Changes the document
yes
Acts on
handle (one id), which a run step’s on fills

Parameters

Parameters of object.copyNested
NameTypeRequiredDescription
deltanumber[]no[dx, dy]
fromnumber[]no
handlestringno
picknumber[]nonearest nested object; default all
tonumber[]no

Call through cad_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: delta, from, handle, pick, to. 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": {
    "delta": {
      "description": "[dx, dy]",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "from": {
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "handle": {
      "type": "string",
      "x-khp-types": [
        "Entity"
      ]
    },
    "pick": {
      "description": "nearest nested object; default all",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "to": {
      "items": {
        "type": "number"
      },
      "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.