SuperAPI AI Directory

techdrawai-cad

Design & creation

View repository

Updated 10-16 06:46

About this skill

TechDraw AI: CAD files, 3D models and renders

Everything downstream of a drawing. If the user needs the drawing itself first, use the techdrawai-drafting skill and come back here with what it wrote.

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

image_to_dxf

Any raster image becomes real CAD vector contours in a DXF file. Free.

  • image (required): a generated drawing, a scan, a sketch, a logo, a photo of a flat part.
  • width_mm: pass this whenever the real size is known. Without it the geometry arrives at one DXF unit per pixel and the user has to rescale by hand in CAD, which is exactly the annoying step they came here to avoid.
  • threshold: "auto" (default) or a number 0 to 255 to force the ink and paper cut-off.
  • invert: for light lines on a dark background.
  • smoothing: 1 keeps detail, higher smooths the contours.
  • dwg: also write AutoCAD's native .dwg beside the .dxf.
  • output_path: defaults to ./techdrawai-output/.

The DXF is ASCII R2000 and opens in AutoCAD, Fusion 360, SolidWorks, Onshape, FreeCAD, LibreCAD, Rhino, Inkscape and the common laser and CNC tools such as LightBurn.

photo_to_3d

A photo of one object becomes a textured 3D mesh. 80 credits, Studio plan: a reconstruction runs for minutes on a GPU, so it is not priced like a drawing. Takes one to three minutes and the call blocks until the mesh is ready, so tell the user it is running rather than leaving them watching a stalled prompt.

  • image (required): a clear JPG or PNG of a single object.
  • detail: draft (12k triangles), standard (40k, default), high (80k).
  • textured: defaults to true. Turn it off when the user only wants geometry.
  • output_path: the GLB lands here; FBX, OBJ, USDZ and STL links are reported too.

drawing_to_3d

A technical drawing becomes a textured 3D mesh. 80 credits, the same as from a photo, one to three minutes. The server renders the object the views describe and reconstructs that render, in one call and one charge.

  • image (required): the drawing, JPG, PNG or WebP.
  • product_name: what it depicts.
  • style: clay gives the cleanest geometry, photoreal (default) keeps colour and material.
  • detail, textured, output_path: as photo_to_3d.

Never chain render_product into photo_to_3d to do this by hand: same work, the render paid on top. The mesh follows the drawing's proportions, not its dimensions, so say so before anyone machines from it.

image_to_stl

Flat artwork becomes a solid, watertight STL to slice and print. Free. The same trace as image_to_dxf, extruded: a logo, stencil, sign or line drawing given a thickness. A photograph of an object comes out as its outline in relief, not the object; use photo_to_3d for that.

  • image (required), size_mm (longest side, default 100), thickness_mm (default 3), min_feature_mm (default 0.3), plus threshold, invert, smoothing, max_dim, output_path.
  • stl_too_large means the trace is too detailed for one reply: smoothing: 3 or max_dim: 800 each roughly halve it.

render_product

A technical drawing becomes a photorealistic image of the finished product. 5 credits. The geometry is reconstructed from the views, so the render matches the design rather than inventing a new one.

  • image (required): the technical drawing.
  • style: photoreal (default), studio, clay, lifestyle.
  • background: white (default), gradient, scene.
  • angle: three-quarter (default), front, top, isometric.
  • material: for example "brushed aluminium, matte black".

check_credits

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

How to work with the user

  1. Ask what the file is for. It changes the answer. Laser or plasma cutting wants a DXF of the flat profile at true size. Modelling in CAD wants a DXF to trace as a sketch. 3D printing wants image_to_stl for flat artwork and photo_to_3d for a real object, not a DXF at all.
  2. Always set width_mm when you know the size. If the user said the part is 120 mm across, pass 120. If they have not said, ask. Geometry at the wrong scale is worse than no geometry, because it looks fine until something is cut wrong.
  3. A DXF is contours, not a solid. Say so. In CAD the user imports it as sketch geometry and then extrudes or revolves it. It is not a parametric model and it will not arrive with a feature tree.
  4. photo_to_3d needs one object. A photo of a cluttered bench reconstructs the clutter. Ask for a clean shot against a plain background if the first attempt is poor.
  5. Try threshold and invert before giving up. If a trace comes back with almost no contours, or with one huge blob, the cut-off is wrong for that image. A number between 100 and 180 fixes most photographs, and invert: true fixes white lines on a dark background.
  6. Report the path and the credits used, and offer the obvious next step: a DWG alongside the DXF, a heavier mesh, a different render angle.
  7. Failures are refunded. If a generation fails, the credits come back automatically. Say that rather than leaving the user wondering.

Example

User: "Here is a drawing I made earlier, ./out/bracket.png. The bracket is 120 mm wide. Get me something I can cut on the laser."

  1. image_to_dxf with image: "./out/bracket.png", width_mm: 120, dwg: true.
  2. Report both paths and the contour count, and say the DXF is at true size so it goes straight to the cutter without rescaling.
  3. Mention that if the cut line looks noisy, smoothing: 2 cleans it up, and that a plain black-on-white drawing traces best.