CAD kit command
dimension.override
Override
Overrides dimension style fields or DIM variables on the given dimensions, or clears their overrides, and can set override text.
- Kit
- CAD 0.1.0 (.dxf)
- Changes the document
- yes
- Acts on
handles(a list of ids), which a run step’sonfills
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
DIMADEC | boolean | number | string | no | |
DIMALT | boolean | number | string | no | |
DIMALTD | boolean | number | string | no | |
DIMALTF | boolean | number | string | no | |
DIMALTRND | boolean | number | string | no | |
DIMALTU | boolean | number | string | no | |
DIMALTZ | boolean | number | string | no | |
DIMAPOST | string | number | no | |
DIMASZ | boolean | number | string | no | |
DIMAUNIT | boolean | number | string | no | |
DIMBLK | string | number | no | |
DIMBLK1 | string | number | no | |
DIMBLK2 | string | number | no | |
DIMCEN | boolean | number | string | no | |
DIMCLRD | object | number | string | no | |
DIMCLRE | object | number | string | no | |
DIMCLRT | object | number | string | no | |
DIMDEC | boolean | number | string | no | |
DIMDLE | boolean | number | string | no | |
DIMDLI | boolean | number | string | no | |
DIMDSEP | string | number | no | |
DIMEXE | boolean | number | string | no | |
DIMEXO | boolean | number | string | no | |
DIMFRAC | boolean | number | string | no | |
DIMGAP | boolean | number | string | no | |
DIMJUST | boolean | number | string | no | |
DIMLFAC | boolean | number | string | no | |
DIMLIM | boolean | number | string | no | |
DIMLUNIT | boolean | number | string | no | |
DIMPOST | string | number | no | |
DIMRND | boolean | number | string | no | |
DIMSCALE | boolean | number | string | no | |
DIMSE1 | boolean | number | string | no | |
DIMSE2 | boolean | number | string | no | |
DIMTAD | boolean | number | string | no | |
DIMTDEC | boolean | number | string | no | |
DIMTFAC | boolean | number | string | no | |
DIMTIH | boolean | number | string | no | |
DIMTM | boolean | number | string | no | |
DIMTOH | boolean | number | string | no | |
DIMTOL | boolean | number | string | no | |
DIMTP | boolean | number | string | no | |
DIMTSZ | boolean | number | string | no | |
DIMTXSTY | string | number | no | |
DIMTXT | boolean | number | string | no | |
DIMTZIN | boolean | number | string | no | |
DIMZIN | boolean | number | string | no | |
alt | boolean | number | string | no | |
altDecimals | boolean | number | string | no | |
altFactor | boolean | number | string | no | |
altPost | string | number | no | |
altRound | boolean | number | string | no | |
altUnit | boolean | number | string | no | |
altZeroSuppression | boolean | number | string | no | |
angularDecimals | boolean | number | string | no | |
angularUnit | boolean | number | string | no | |
annotative | boolean | number | string | no | |
aperture | number | no | Pick reach in drawing units; default 0.5% of the space extents. |
arrowBlock | string | number | no | |
arrowBlock1 | string | number | no | |
arrowBlock2 | string | number | no | |
arrowSize | boolean | number | string | no | |
baselineSpacing | boolean | number | string | no | |
centerMark | boolean | number | string | no | |
clear | boolean | no | |
decimalSeparator | string | number | no | |
decimals | boolean | number | string | no | |
dimLineColor | object | number | string | no | |
dimLineExtend | boolean | number | string | no | |
extExtend | boolean | number | string | no | |
extLineColor | object | number | string | no | |
extOffset | boolean | number | string | no | |
fractionFormat | boolean | number | string | no | |
handles | string[] | no | |
limits | boolean | number | string | no | |
linearFactor | boolean | number | string | no | |
linearUnit | boolean | number | string | no | |
pick | number[] | no | Instead of handles: a drawing-space point [x,y], picked by the engine in the call's layout. With basis, holds what was at that point. |
post | string | number | no | |
round | boolean | number | string | no | |
scale | boolean | number | string | no | |
suppressExt1 | boolean | number | string | no | |
suppressExt2 | boolean | number | string | no | |
text | string | no | |
textAbove | boolean | number | string | no | |
textColor | object | number | string | no | |
textGap | boolean | number | string | no | |
textHeight | boolean | number | string | no | |
textInsideHorizontal | boolean | number | string | no | |
textJust | boolean | number | string | no | |
textOutsideHorizontal | boolean | number | string | no | |
textStyle | string | number | no | |
tickSize | boolean | number | string | no | |
tolDecimals | boolean | number | string | no | |
tolMinus | boolean | number | string | no | |
tolPlus | boolean | number | string | no | |
tolScale | boolean | number | string | no | |
tolZeroSuppression | boolean | number | string | no | |
tolerance | boolean | number | string | no | |
zeroSuppression | boolean | number | string | no |
Call through cad_run
cad_run {
"path": "<file>.dxf",
"steps": [{ "command": "dimension.override" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: DIMADEC, DIMALT, DIMALTD, DIMALTF, DIMALTRND, DIMALTU, DIMALTZ, DIMAPOST, DIMASZ, DIMAUNIT, DIMBLK, DIMBLK1, DIMBLK2, DIMCEN, DIMCLRD, DIMCLRE, DIMCLRT, DIMDEC, DIMDLE, DIMDLI, DIMDSEP, DIMEXE, DIMEXO, DIMFRAC, DIMGAP, DIMJUST, DIMLFAC, DIMLIM, DIMLUNIT, DIMPOST, DIMRND, DIMSCALE, DIMSE1, DIMSE2, DIMTAD, DIMTDEC, DIMTFAC, DIMTIH, DIMTM, DIMTOH, DIMTOL, DIMTP, DIMTSZ, DIMTXSTY, DIMTXT, DIMTZIN, DIMZIN, alt, altDecimals, altFactor, altPost, altRound, altUnit, altZeroSuppression, angularDecimals, angularUnit, annotative, aperture, arrowBlock, arrowBlock1, arrowBlock2, arrowSize, baselineSpacing, centerMark, clear, decimalSeparator, decimals, dimLineColor, dimLineExtend, extExtend, extLineColor, extOffset, fractionFormat, handles, limits, linearFactor, linearUnit, pick, post, round, scale, suppressExt1, suppressExt2, text, textAbove, textColor, textGap, textHeight, textInsideHorizontal, textJust, textOutsideHorizontal, textStyle, tickSize, tolDecimals, tolMinus, tolPlus, tolScale, tolZeroSuppression, tolerance, zeroSuppression. cad_run answers the step’s result in completed[i].result.
Result
The kit gives no result schema for this command.
Parameter schema
{
"additionalProperties": false,
"properties": {
"DIMADEC": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMALT": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMALTD": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMALTF": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMALTRND": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMALTU": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMALTZ": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMAPOST": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"DIMASZ": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMAUNIT": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMBLK": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
}
],
"x-khp-name": "name",
"x-khp-types": [
"Block"
]
},
"DIMBLK1": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
}
],
"x-khp-name": "name",
"x-khp-types": [
"Block"
]
},
"DIMBLK2": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
}
],
"x-khp-name": "name",
"x-khp-types": [
"Block"
]
},
"DIMCEN": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMCLRD": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"kind": {
"enum": [
"byLayer",
"byBlock",
"aci",
"rgb"
],
"type": "string"
},
"value": {
"oneOf": [
{
"type": "integer"
},
{
"items": {
"type": "integer"
},
"type": "array"
}
]
}
},
"type": "object"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMCLRE": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"kind": {
"enum": [
"byLayer",
"byBlock",
"aci",
"rgb"
],
"type": "string"
},
"value": {
"oneOf": [
{
"type": "integer"
},
{
"items": {
"type": "integer"
},
"type": "array"
}
]
}
},
"type": "object"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMCLRT": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"kind": {
"enum": [
"byLayer",
"byBlock",
"aci",
"rgb"
],
"type": "string"
},
"value": {
"oneOf": [
{
"type": "integer"
},
{
"items": {
"type": "integer"
},
"type": "array"
}
]
}
},
"type": "object"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMDEC": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMDLE": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMDLI": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMDSEP": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"DIMEXE": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMEXO": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMFRAC": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMGAP": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMJUST": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMLFAC": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMLIM": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMLUNIT": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMPOST": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"DIMRND": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMSCALE": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMSE1": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMSE2": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMTAD": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMTDEC": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMTFAC": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMTIH": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMTM": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMTOH": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMTOL": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMTP": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMTSZ": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMTXSTY": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
}
],
"x-khp-name": "name",
"x-khp-types": [
"TextStyle"
]
},
"DIMTXT": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMTZIN": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"DIMZIN": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"alt": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"altDecimals": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"altFactor": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"altPost": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"altRound": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"altUnit": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"altZeroSuppression": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"angularDecimals": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"angularUnit": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"annotative": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"aperture": {
"description": "Pick reach in drawing units; default 0.5% of the space extents.",
"type": "number"
},
"arrowBlock": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
}
],
"x-khp-name": "name",
"x-khp-types": [
"Block"
]
},
"arrowBlock1": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
}
],
"x-khp-name": "name",
"x-khp-types": [
"Block"
]
},
"arrowBlock2": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
}
],
"x-khp-name": "name",
"x-khp-types": [
"Block"
]
},
"arrowSize": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"baselineSpacing": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"centerMark": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"clear": {
"type": "boolean"
},
"decimalSeparator": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"decimals": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"dimLineColor": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"kind": {
"enum": [
"byLayer",
"byBlock",
"aci",
"rgb"
],
"type": "string"
},
"value": {
"oneOf": [
{
"type": "integer"
},
{
"items": {
"type": "integer"
},
"type": "array"
}
]
}
},
"type": "object"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"dimLineExtend": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"extExtend": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"extLineColor": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"kind": {
"enum": [
"byLayer",
"byBlock",
"aci",
"rgb"
],
"type": "string"
},
"value": {
"oneOf": [
{
"type": "integer"
},
{
"items": {
"type": "integer"
},
"type": "array"
}
]
}
},
"type": "object"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"extOffset": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"fractionFormat": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"handles": {
"items": {
"type": "string"
},
"type": "array",
"x-khp-types": [
"Entity"
]
},
"limits": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"linearFactor": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"linearUnit": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"pick": {
"description": "Instead of handles: a drawing-space point [x,y], picked by the engine in the call's layout. With basis, holds what was at that point.",
"items": {
"type": "number"
},
"type": "array"
},
"post": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"round": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"scale": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"suppressExt1": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"suppressExt2": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"text": {
"type": "string"
},
"textAbove": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"textColor": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"kind": {
"enum": [
"byLayer",
"byBlock",
"aci",
"rgb"
],
"type": "string"
},
"value": {
"oneOf": [
{
"type": "integer"
},
{
"items": {
"type": "integer"
},
"type": "array"
}
]
}
},
"type": "object"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"textGap": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"textHeight": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"textInsideHorizontal": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"textJust": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"textOutsideHorizontal": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"textStyle": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
}
],
"x-khp-name": "name",
"x-khp-types": [
"TextStyle"
]
},
"tickSize": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"tolDecimals": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"tolMinus": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"tolPlus": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"tolScale": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"tolZeroSuppression": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"tolerance": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"zeroSuppression": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
}
]
}
},
"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.