CAD kit command

object.fillet

Fillet

Joins two lines, arcs or circles with a tangent arc of a radius, optionally trimming them, or fillets every polyline corner.

Kit
CAD 0.1.0 (.dxf)
Changes the document
yes

Parameters

Parameters of object.fillet
NameTypeRequiredDescription
h1stringno
h2stringno
handlestringno
p1number[]no
p2number[]no
polylinebooleannoin one of several forms of the parameters
radiusnumbernoin one of several forms of the parameters
trimbooleannoin one of several forms of the parameters

Call through cad_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: h1, h2, handle, p1, p2, polyline, radius, trim. 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": {
    "h1": {
      "type": "string",
      "x-khp-types": [
        "Entity"
      ]
    },
    "h2": {
      "type": "string",
      "x-khp-types": [
        "Entity"
      ]
    },
    "handle": {
      "type": "string",
      "x-khp-types": [
        "Entity"
      ]
    },
    "p1": {
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "p2": {
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "polyline": {
      "default": true,
      "description": "in one of several forms of the parameters",
      "type": "boolean"
    },
    "radius": {
      "description": "in one of several forms of the parameters",
      "type": "number"
    },
    "trim": {
      "description": "in one of several forms of the parameters",
      "type": "boolean"
    }
  },
  "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.