Skip to content
HALOWERK

File Formats and Conversion

hpgl plot pen consumption

Plotter pen usage totals the drawn centerline length and stroke count for each selected pen. Use it when an agent needs planning ink consumption for a multi-pen drawing.

POST https://format.halowerk.com/v1/hpgl-plot-pen-consumption

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
hpglstringYes
Show full input schema
{
  "type": "object",
  "properties": {
    "hpgl": {
      "type": "string",
      "maxLength": 24000,
      "minLength": 1
    }
  },
  "required": [
    "hpgl"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "hpgl": "IN;SP1;PA;PU0,0;PD400,0,400,400,0,400,0,0;PU;SP2;PU0,200;PD400,200;PU;"
}

Result & documentation

Show published result schema
{
  "type": "object",
  "required": [
    "measured_at",
    "source",
    "data",
    "limitations"
  ],
  "properties": {
    "measured_at": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "required": [
        "reference",
        "retrieved_at"
      ],
      "properties": {
        "reference": {
          "type": "string"
        },
        "retrieved_at": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "pens": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        },
        "length_mm": {
          "type": "array",
          "items": {
            "type": "number"
          }
        },
        "strokes": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        }
      },
      "required": [
        "pens",
        "length_mm",
        "strokes"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub โ†’