Contents

Technical note · CAD

GEOMX: CAD as a sequence an agent can write, build and repair

Mechanical AI · November 2026 · 4 min read


Abstract

GEOMX is the geometric sequence protocol of MEKINT. It gives a mechanical part a single definition, an ordered sequence of CAD operations, that an engineer can read, that a transformer model can generate step by step, and that the CAD kernel can execute. This note explains why a sequence is the right form for agent-driven design, what can be expressed in it, how a transformer model learns to write it, and how a sequence that fails part-way is diagnosed and repaired without starting again.

1Introduction

A CAD model is a history: a sketch, an extrusion, a hole, a pattern, a fillet. Each step depends on the ones before it, and often on geometry that exists only after they have run, such as the edge a fillet rounds or the face a hole enters. Keeping such references meaningful when a model is rebuilt is a long-documented problem [1]. When a person builds the model interactively, a failed step is seen and corrected on the spot. When an agent writes the whole history at once, a single wrong reference or an oversized radius can invalidate everything after it, and a plain “build failed” leaves the agent nothing to act on.

GEOMX treats the history as a language with defined meaning. Inside MEKINT, the agent uses it to state the geometry it intends, build it on MEKCAD, read back what was built, and revise individual steps. The same definition then feeds meshing, analysis and manufacturing without being redrawn.

2What a sequence expresses

Generating a mechanical part the way it is modelled, as a sequence of CAD operations written by a transformer, is an established idea in research, first shown for sketches and extrusions [2]. A sequence is only as useful as the operations it can state, and a production part needs far more than those two, a limit the research itself documents [3]. GEOMX is a geometric sequence protocol built for that range: it supports production-level CAD features and workflow, from sketches and solids through detail features and surfaces to assemblies. Table 1 summarises the range at the level of families.

Table 1. What GEOMX expresses and returns.
FamilyIncludes
SketchesProfiles of lines, arcs, circles and splines on any plane or existing face
Solid creationExtrude, revolve, loft and sweep
Body operationsBoolean add, cut and intersect; holes and shells; split and trim
Detail featuresFillets, chamfers and draft
Patterns and transformationsLinear, circular, mirror and curve patterns; move, copy and scale
Direct editingOffset, move, replace and delete faces
SurfacesOffset, ruled and through-curve surfaces; fill, sew, trim, extend and thicken
AssembliesParts placed in nested assemblies
ResultsAn outcome for every step; measurements of the finished bodies; STEP, STL and GLB export

3A language a model can learn

GEOMX is designed to be generated as well as read. Generating CAD as an editable sequence has a growing body of research behind it [4], [5]. MEKINT’s transformer model, built for mechanical design, is trained on GEOMX and writes a part the way an engineer would build it, one operation after another. What it produces is therefore a real CAD history, not an opaque shape: it can be inspected, edited and rebuilt.

4Building and repairing

A sequence is checked as it is written and built step by step, and every step reports its own outcome. When a step fails, the report says which feature failed and why, in terms the agent can act on, so the next attempt is a correction rather than a guess. The benefit of showing a model the outcome of its own build is documented [6].

Failures are contained where the geometry allows it: a detail feature that cannot be made is left out and reported, and the rest of the part is still built, measured and exportable. Repair is local in the same way: one feature is revised, and the part is rebuilt from there.

A sequence is also readable in both directions, so what the agent built can be reviewed, edited and rebuilt by an engineer.

5Summary

GEOMX gives a part one definition as a sequence of CAD operations, covering production-level CAD features from sketches to assemblies. A sequence is checked, built step by step and reported feature by feature, with failures named, contained where possible and repaired one step at a time. Trained on this protocol, MEKINT’s transformer model generates real CAD histories, and the agent can recover from its own mistakes.

References

  1. [1]J. Kripac, “A mechanism for persistently naming topological entities in history-based parametric solid models,” Computer-Aided Design, 29(2), 113–122, 1997.
  2. [2]R. Wu, C. Xiao and C. Zheng, “DeepCAD: A deep generative network for computer-aided design models,” IEEE/CVF International Conference on Computer Vision (ICCV), 6772–6782, 2021.
  3. [3]D. Qi, C. Wang, J. Xu, T. Chu, Z. Zhao, W. Liu, W. Ding, Y. Ma and S. Gao, “Pointer-CAD: Unifying B-Rep and command sequences via pointer-based edges & faces selection,” IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2026.
  4. [4]M. S. Khan, S. Sinha, T. U. Sheikh, D. Stricker, S. A. Ali and M. Z. Afzal, “Text2CAD: Generating sequential CAD designs from beginner-to-expert level text prompts,” Advances in Neural Information Processing Systems 37 (NeurIPS), 2024.
  5. [5]L. Zhang, B. Le, N. Akhtar, S.-K. Lam and T. Ngo, “Large language models for computer-aided design: A survey,” ACM Computing Surveys, 58(9), article 225, 2026.
  6. [6]K. Alrashedy, P. Tambwekar, Z. Zaidi, M. Langwasser, W. Xu and M. Gombolay, “Generating CAD code with vision-language models for 3D designs,” International Conference on Learning Representations (ICLR), 2025.