SuperAPI AI Directory

techdrawai-drafting

Design & creation

View repository

Updated 10-16 00:24

About this skill

TechDraw AI: drafting from a photograph

Turns a photograph of a physical object into a dimensioned, standards-compliant 2D technical drawing. For DXF and DWG export, 3D reconstruction and product renders, use the techdrawai-cad skill on whatever this one writes.

Setup (once)

npx -y techdrawai-mcp auth login      # browser sign-in, no key to copy

Requires an active Studio plan. If a tool reports a plan error, say so plainly and point at https://techdrawai.com/app?view=subscription rather than retrying. Keys can also be created in Settings and passed as TECHDRAWAI_API_KEY.

Tools

generate_technical_drawing

Photo to dimensioned technical drawing. 3 credits.

  • image (required): the photo, as a local file path, an http(s) URL or a data URL.
  • product_name: what the object is. Improves the title block and, when dimensions are estimated, the estimates themselves. Run identify_product first if you do not know.
  • measurements: dimensions the user actually measured, each { value, unit?, orientation?, position? }. The single biggest quality lever. See below.
  • estimate_dimensions: let the model infer sizes. Defaults to true when no measurements are given.
  • units: mm (default), cm, m, in.
  • standard: ISO (default) or ANSI.
  • paper_size: A4 to A0 for ISO (default A3), ANSI A to ANSI E for ANSI (default ANSI B).
  • projection: first-angle (default, ISO and Europe) or third-angle (ANSI and North America).
  • drawing_type: working (default, fully dimensioned production drawing), assembly (numbered balloons plus a parts list), as-fitted (a record of the item as built), patent (numbered figure, no dimensions).
  • views: any of front, top, side, isometric. Defaults to front, top and side.
  • notes: material, finish, tolerances, anything else to state on the sheet.
  • output_path: defaults to ./techdrawai-output/drawing-<timestamp>.png.

identify_product

Names the main object in a photo in two or three words. Free. Cheap groundwork: an agent that knows it is looking at a "cast-iron wall bracket" writes a much better title block and estimates far better dimensions than one working from "product".

check_credits

Balance, plan and per-operation costs. Worth calling before a batch.

One measurement changes everything

This is the difference between a picture of a drawing and a drawing someone can manufacture from.

  • With no measurements, the model infers realistic sizes from the photo and its proportions, and the sheet marks the values as nominal. Fine for a concept, not for a workshop.
  • With one real measurement, every other feature is scaled proportionally from it and the whole drawing becomes internally consistent.

So if the user has not given one, ask:

"Do you have one real measurement of it, say the overall width or the height? Everything else gets scaled from that."

Pass what they say as a measurement, with position describing where it was taken ("overall width", "seat height", "bore diameter"). That wording is not decoration; it tells the drafter which edge the number belongs to.

If they genuinely have none, go ahead with estimate_dimensions and tell them plainly that the dimensions are nominal and should be checked before anything is cut.

How to work with the user

  1. A photograph is always required. TechDraw AI drafts from a real photo. It does not invent parts from a description. If the user describes something without an image, ask for a file path or a URL.
  2. Pick the drawing type from what they said. "For the workshop" or "to get it made" is working. "How it goes together" is assembly. "For a patent application" is patent. "A record of what we built" is as-fitted.
  3. Match the standard to the audience. Europe and most of the world use ISO with first-angle projection. North America uses ANSI with third-angle. When unsure, ask which they use. Get it wrong and the projection symbol on the sheet is actively misleading.
  4. Sheet size follows the part. A small machined part is fine on A4. A cabinet, or an assembly with a parts list, wants A3 or A2, or the dimensions crowd each other.
  5. Always offer the DXF. A PNG is a picture of a drawing. The DXF is the drawing. Hand the result to image_to_dxf with width_mm set from the measurement they gave.
  6. Report the saved path and the credits used, then offer to iterate: a different sheet size, an extra view, notes on the material.
  7. Failures are refunded automatically. If a generation fails, say so and say the credits came back.
  8. Out of credits? The error says so. Report the balance and point at https://techdrawai.com/app?view=subscription.

Example

User: "Here is a bracket I need made, /Users/me/bracket.jpg. It is 120 mm across. I need a DXF for the laser cutter."

  1. identify_product with image: "/Users/me/bracket.jpg", giving "steel wall bracket".
  2. generate_technical_drawing with
    • image: /Users/me/bracket.jpg
    • product_name: steel wall bracket
    • measurements: [{ value: "120", unit: "mm", orientation: "horizontal", position: "overall width" }]
    • drawing_type: working, standard: ISO, paper_size: A3, views: ["front", "top", "side"]
  3. Hand the file it wrote to image_to_dxf with width_mm: 120 and dwg: true (see the techdrawai-cad skill).
  4. Report both paths, the 3 credits used, and that the DXF is at true size for the cutter.