CAD kit command
drafting.objectSnap
Object Snap
Turns running object snaps on or off and sets their modes by name or OSMODE bits; answers the state and the active modes.
- Kit
- CAD 0.1.0 (.dxf)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
modes | string[] | no | |
on | boolean | no | |
osmode | integer | no | instead of modes |
Call through cad_run
text
cad_run {
"path": "<file>.dxf",
"steps": [{ "command": "drafting.objectSnap" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: modes, on, osmode. cad_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
message | string | no | |
modes | string[] | no | |
on | boolean | no | |
osmode | number | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"message": {
"type": "string"
},
"modes": {
"items": {
"type": "string"
},
"type": "array"
},
"on": {
"type": "boolean"
},
"osmode": {
"type": "number"
}
},
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"modes": {
"items": {
"type": "string"
},
"type": "array"
},
"on": {
"type": "boolean"
},
"osmode": {
"description": "instead of modes",
"type": "integer"
}
},
"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.