CAD kit command
object.extend
Extend
Extends an object to its boundary edges at the end that is picked, fenced or crossed.
- Kit
- CAD 0.1.0 (.dxf)
- Changes the document
- yes
- Acts on
handle(one id), which a run step’sonfills
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
crossing | number[][] | no | one of several alternative parameters |
edgeMode | "extend" | "none" | no | |
edges | string[] | no | handles |
fence | number[][] | no | one of several alternative parameters |
handle | string | no | |
pick | number[] | no |
Call through cad_run
text
cad_run {
"path": "<file>.dxf",
"steps": [{ "command": "object.extend" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: crossing, edgeMode, edges, fence, handle, 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"
]
},
"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.