CAD kit command
constraint.inspect
Inspect Constraints
Answers the drawing's constraints, their glyph anchors, the parameters, the constraint settings and whether everything is satisfied.
- Kit
- CAD 0.1.0 (.dxf)
- Changes the document
- no
Parameters
None.
Call through cad_run
text
cad_run {
"path": "<file>.dxf",
"steps": [{ "command": "constraint.inspect" }]
}The required parameters, with placeholders for their types: not a tested example. cad_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
constraints | any[] | no | |
glyphs | any[] | no | |
parameters | any[] | no | |
satisfied | boolean | no | |
settings | object | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"constraints": {
"type": "array"
},
"glyphs": {
"type": "array"
},
"parameters": {
"type": "array"
},
"satisfied": {
"type": "boolean"
},
"settings": {
"additionalProperties": true,
"properties": {
"angleTolerance": {
"type": "number"
},
"autoTypes": {
"items": {
"type": "string"
},
"type": "array"
},
"barExceptions": {
"type": "array"
},
"barTransparency": {
"type": "number"
},
"barsVisible": {
"type": "boolean"
},
"dimExceptions": {
"type": "array"
},
"dimsVisible": {
"type": "boolean"
},
"distanceTolerance": {
"type": "number"
},
"infer": {
"type": "boolean"
}
},
"type": "object"
}
},
"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.