CAD kit command

object.lengthen

Lengthen

Changes an object's length at the picked end by a delta, percent, total or to a point, or alone measures its length.

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.lengthen
NameTypeRequiredDescription
deltanumberno
deltaAnglenumberno
handlestringno
percentnumberno
picknumber[]noend
tonumber[]noone of several alternative parameters
totalnumberno
totalAnglenumberno

Call through cad_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: delta, deltaAngle, handle, percent, pick, to, total, totalAngle. 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": {
      "type": "number"
    },
    "deltaAngle": {
      "type": "number"
    },
    "handle": {
      "type": "string",
      "x-khp-types": [
        "Entity"
      ]
    },
    "percent": {
      "type": "number"
    },
    "pick": {
      "description": "end",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "to": {
      "description": "one of several alternative parameters",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "total": {
      "type": "number"
    },
    "totalAngle": {
      "type": "number"
    }
  },
  "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.