draftwright 0.6.1

Dimensioned engineering drawings from STEP, with SVG, PDF and editable DXF output.
Documentation
{
  "type": "object",
  "properties": {
    "part_ref": {
      "type": "string"
    },
    "spec": {
      "type": "object",
      "properties": {
        "schema": {
          "enum": [
            "draftwright.spec/1",
            "draftwright.spec/2",
            "draftwright.spec/3",
            "draftwright.spec/4"
          ]
        },
        "part": {
          "type": [
            "string",
            "integer",
            "null"
          ]
        },
        "iso_scale_factor": {
          "type": [
            "number",
            "null"
          ]
        },
        "dimension_source": {
          "enum": [
            "auto",
            "authored"
          ]
        },
        "pmi": {
          "enum": [
            "strict",
            "first",
            "ignore"
          ]
        },
        "hole_table": {
          "enum": [
            "auto",
            "always",
            "never"
          ]
        },
        "units": {
          "enum": [
            "mm",
            "in"
          ]
        }
      },
      "additionalProperties": false,
      "description": "Outline. Call spec_schema {} for the full Spec and get_spec spec_read schemas; item_options gives valid edit paths and choices.",
      "patternProperties": {
        "^(binding|engine_pins|sheets)$(?!\n)": {
          "type": [
            "object",
            "null"
          ]
        },
        "^(sheet|balloons|views|dimensions|annotations|features|faces|dimension_schemes|precision|origin)$(?!\n)": {
          "type": "object"
        },
        "^(process|envelope_tolerance)$(?!\n)": {
          "type": [
            "string",
            "null"
          ]
        },
        "^(notes|tables|gears|feature_declarations)$(?!\n)": {
          "type": "array"
        }
      }
    },
    "spec_version": {
      "type": "string"
    },
    "drawing_ref": {
      "type": "string"
    },
    "cursor": {
      "type": "integer",
      "minimum": 0
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "detail": {
      "type": "boolean"
    },
    "filter": {
      "type": "object",
      "properties": {
        "sheet": {
          "enum": [
            null,
            1,
            2,
            3,
            4,
            5,
            6,
            7,
            8,
            9
          ]
        },
        "state": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "enum": [
                    {
                      "kind": "shown"
                    },
                    {
                      "kind": "omitted_by_user"
                    },
                    {
                      "kind": "not_authored"
                    }
                  ]
                },
                {
                  "properties": {
                    "kind": {
                      "const": "covered"
                    },
                    "by": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false,
                  "minProperties": 2
                },
                {
                  "properties": {
                    "kind": {
                      "const": "not_drawable"
                    },
                    "reason_code": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false,
                  "minProperties": 2
                }
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "region": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "number"
          },
          "minItems": 4,
          "maxItems": 4
        },
        "radius": {
          "type": [
            "number",
            "null"
          ],
          "minimum": 0
        }
      },
      "additionalProperties": false,
      "patternProperties": {
        "^(view|kind|feature|near)$(?!\n)": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  },
  "required": [
    "part_ref"
  ],
  "additionalProperties": false
}