CAD kit command

object.trim

Trim

Trims an object at its cutting edges where it is picked, fenced or crossed, in quick or standard mode.

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.trim
NameTypeRequiredDescription
crossingnumber[][]noone of several alternative parameters
edgeMode"extend" | "none"no
edgesstring[]nohandles
fencenumber[][]noone of several alternative parameters
handlestringno
mode"quick" | "standard"no
picknumber[]no

Call through cad_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: crossing, edgeMode, edges, fence, handle, mode, pick. 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": {
    "crossing": {
      "description": "one of several alternative parameters",
      "items": {
        "items": {
          "type": "number"
        },
        "type": "array"
      },
      "type": "array"
    },
    "edgeMode": {
      "enum": [
        "extend",
        "none"
      ],
      "type": "string"
    },
    "edges": {
      "description": "handles",
      "items": {
        "type": "string"
      },
      "type": "array",
      "x-khp-types": [
        "Entity"
      ]
    },
    "fence": {
      "description": "one of several alternative parameters",
      "items": {
        "items": {
          "type": "number"
        },
        "type": "array"
      },
      "type": "array"
    },
    "handle": {
      "type": "string",
      "x-khp-types": [
        "Entity"
      ]
    },
    "mode": {
      "enum": [
        "quick",
        "standard"
      ],
      "type": "string"
    },
    "pick": {
      "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.