DEV Community

Cover image for Building a Parametric 5/8" & 16mm Egg-Crate Welding Table DXF & Plasma G-Code Engine in TypeScript
CutPath CAD
CutPath CAD

Posted on

Building a Parametric 5/8" & 16mm Egg-Crate Welding Table DXF & Plasma G-Code Engine in TypeScript

Commercial 5/8-inch and 16mm fixture welding tables cost $1,400 to $4,500 delivered—even though every CNC plasma or laser shop with a 4x8 or 5x10 bed can cut the exact same egg-crate torsion-box geometry from standard A36 steel plate for a fraction of the price.

The hard part is never drawing a rectangle with holes. The hard part is generating a self-jigging tab-and-slot torsion box where zero fixture holes break into internal ribs, zero plug-weld tabs sit proud of the tabletop, and every plasma bore respects the 1.5x diameter-to-thickness bevel limit.

When we built CutPath CAD's free browser-native Parametric CNC Welding Fixture Table & Torsion-Box DXF Generator, we encoded all five fabrication constraints directly into pure TypeScript geometry and strict AutoCAD R12 DXF export.

1. Why Naive Hole Grids Wreck Dog-Clamp Fitment (Smart Rib-Collision Skipping)

Take a standard 48" x 24" welding table with a 2.00" (50.8 mm) 5/8" hole grid and an internal 2x4 egg-crate torsion box underneath. If you simply stamp a uniform rectangular array of circles across the top plate, 25% to 30% of your fixture bores land directly over an internal rib or encroach on a plug-weld slot.

Even if the plasma torch manages not to blow through the adjacent tab slot, a 5/8" locking dog clamp dropped into that hole hits solid vertical steel plate 1/4" below the surface and refuses to lock.

Our generator evaluates every candidate bore (bx, by) against every longitudinal X-rib centerline, every transverse Y-rib centerline, and every top-plate plug-weld slot bounding box before emitting geometry:

const nearRibY = allLongYs.some((ry) => Math.abs(by - ry) < cutR + t / 2 + 2.5);
const nearRibX = allShortXs.some((rx) => Math.abs(bx - rx) < cutR + t / 2 + 2.5);
const minSlotEdge = Math.min(...topSlots.map((sl) => distPointToRect(bx, by, sl) - cutR));

if (nearRibY || nearRibX || minSlotEdge < 5.5) {
  skippedBores.push({ x: bx, y: by });
} else {
  topBores.push({ x: bx, y: by });
}
Enter fullscreen mode Exit fullscreen mode

On the 2x4 benchtop preset (1/4" A36, 5/8" grid @ 2.00" OC), that filter cleanly emits 183 unobstructed fixture bores while automatically omitting 70 rib-blocked positions, keeping minimum solid steel web at 15.9 mm across the entire deck.

2. Sub-Flush Plug-Weld Tabs (-0.5 mm) & Self-Squaring Half-Lap Ribs

If an internal rib's weld tab protrudes flush with—or taller than—the top plate, your MIG or TIG plug welds build proud crowns that demand heavy flap-disc grinding. Heavy grinding generates concentrated localized heat, which immediately pulls a flat welding table into a concave saddle.

Instead, every internal rib and perimeter skirt computes:

slotWidth      = plateThickness + slotClearance   (e.g., 6.35 + 0.40 = 6.75 mm)
tabProtrusion  = plateThickness - 0.50 mm         (recessed 0.50 mm below top face)
halfLapDepth   = ribHeight / 2 + 0.20 mm
Enter fullscreen mode Exit fullscreen mode
  • X-ribs receive downward half-lap notches at every Y-rib station.
  • Y-ribs receive upward half-lap notches at every X-rib station.
  • Plug-weld tabs sit strictly at the midpoint of each torsion-box cell bay—mathematically guaranteed never to collide with a half-lap intersection—and stop 0.50 mm shy of the deck top so plug welds pool flush in a clean V-trough.

Because each rib contour is synthesized as a single continuous closed CCW polyline (bottom upward notches -> right edge -> top tabs and downward notches sorted strictly descending in X -> left edge), there are zero overlapping segments, zero stray lines, and zero open contours.

3. Enforcing the 1.5x Air-Plasma Bore Rule (Pilot + Ream Mode)

Air plasma arcs naturally taper 2°–4° through thick steel plate. When bore diameter divided by plate thickness (D / t) drops below 1.5x—for example cutting 5/8" (15.88 mm) holes in 3/8" (9.53 mm) or 1/2" (12.7 mm) plate—the bottom exit diameter shrinks into a cone and precision fixture pins wobble or jam.

Our 5-rule Plasma & Torsion-Box DRC checks D / t live and exposes a 1-click Pilot + Ream Mode (12.7 mm / 0.50" concentric pilots on imperial grids, 13.0 mm on Siegmund metric grids):

  • 1/4" (6.35 mm) A36 plate (D/t = 2.50x): Cuts clean full-size 5/8" bores directly at 85 IPM with FineCut consumables.
  • 3/8" (9.53 mm) & 1/2" (12.7 mm) A36 plate: Switches to concentric plasma pilot bores so a single pass with a magnetic drill or 5/8" bridge reamer yields dead-cylindrical machined holes across all 832 positions on a 4x8 shop table.

4. Strict AutoCAD R12 DXF (100/100) & Interior-First Plasma .TAP G-Code

Every preset runs through our built-in CAM readiness auditor (inspectDxfRaw) on every parameter change to verify:

  • AutoCAD R12 (AC1009) closed POLYLINE entities separated across OUTER_PROFILE, FIXTURE_HOLES, and TAB_SLOTS layers (zero splines, zero open paths, zero floating islands -> 100/100).
  • Interior-first plasma .TAP G-code: Every FIXTURE_HOLES circle and TAB_SLOTS rectangle pierces with M3 and thickness-scaled pierce delay (0.35s–1.05s) before the outer plate perimeter cuts free—preventing plate shift on water-table slats.

Try It Free in Your Browser (No Signup)

Top comments (0)