Artificial Intelligence doing Technical Drawings: FreeCAD MCP and TechDraw

24 Nov 2026 - tsp
Last update 24 Nov 2026
Reading time 17 mins

Watch on YouTube Watch on YouTube β†—

In my previous article about Artificial Intelligence doing CAD we focused on giving an LLM agent access to a real CAD system, letting it inspect the geometry and rendered images and allowing it to keep working until it has produced a hopefully useful mechanical object. The editable model and the ability to look at its own work turned out to be crucial. Some of the resulting parts were already printed and used directly or handed off to workshops for professional manufacturing successfully.

There is another very practical step in that process though. Suppose I want some human to manufacture a part in a workshop or want to document an existing component so that another human reader can understand its interfaces. At that point a drawing becomes extremely useful. It brings the relevant dimensions, sections, hole locations and manufacturing requirements together in a form that a person can read without having to explore the entire CAD model.

Naturally, that lead to the next step: letting the agent also prepare those drawings. FreeCAD has a TechDraw workbench for this purpose. The interesting task was giving the agent the tools and the working discipline to use it properly - and teaching it about the Norms to follow without violating copyright.

Version 0.0.2 of mcpFreeCAD adds that capability, together with several improvements to the existing modeling and bridge infrastructure. An agent can take an existing object, create a sheet, place projections, add sections and details, measure the projected geometry, inspect the resulting drawing visually and export it. The drawing remains part of the ordinary FreeCAD document, where everyone - human or AI agent - can continue editing it.

The bearing flange drawing used in the mcpFreeCAD TechDraw demonstration

From a Model to a Drawing

A solid model contains a great deal of geometric information. It describes the surfaces, edges and volumes of the part and a parametric model also preserves how those features were constructed. A drawing introduces another set of information: which views explain the object, where a section is needed, which dimensions control its function, and how somebody should interpret and inspect the result. The reduction of information from a 3D to 2D view as well as a reduction to show only relevant information aids the reader in understanding the part as well as the required manufacturing steps.

Consider a stepped hole. A top view may show several concentric circles. A section reveals which diameter continues through the part, where a counterbore stops and from which face its depth is measured. The drawing needs enough information to reconstruct that feature, including its position relative to the rest of the part. The same applies to pockets, sealing surfaces and repeated mounting features.

This is where the task becomes particularly interesting for an agent. It has to move between the three dimensional model, the projected geometry and the understanding of the information required by the person who will use the drawing. It also has to recognize which decisions require additional information. Material, fits, surface requirements and tolerances depend on the application. Their values need to come from the design requirements or an explicit engineering decision upfront, which is out of scope for the technical drawing subsystem of mcpFreeCAD.

The workflow therefore begins with an existing, inspected model. The agent identifies the finished parts, establishes the purpose of the drawing and selects the relevant geometry. That first step matters especially for less professional documents containing several independent parts like the ones I developed personally in my vacuum parts library. Each finished part needs a clear identity and an appropriate drawing of its own.

The TechDraw MCP Approach

The described module is one of the subsystems of the MCP server described in the original FreeCAD article. A Python bridge runs inside FreeCAD and operates on its document objects. An MCP server exposes those operations to the agent. The agent can work locally or connect through a prepared remote endpoint.

The new drawing tools cover several stages:

The default drawing procedure starts with metric DIN/ISO conventions and a first-angle arrangement. An explicitly requested ANSI/ASME workflow can use the corresponding conventions. Units, projection method, sheet size and the intended use of the drawing are established at the beginning.

Orthographic and isometric views of the flange before the remaining drawing operations

Dimensioning has a deliberately explicit inspection step. The agent first requests the projected edges and vertices of a view. It receives references tied to the inspected geometry and uses those references when creating a dimension. The tools check that the selection still matches the geometry. After a relevant change, the agent needs to inspect the view again.

This gives a measurement a concrete geometric meaning. The agent can read back its raw value, inspect the references and adjust the label position while keeping the measurement attached to the drawing geometry. It also needs to understand the type of measurement it requested. For example, the closest separation between two circular edges differs from the distance between their centres. Choosing the correct references is part of the drawing procedure.

The following video shows the workflow using a flanged plate: sheet setup, projections, a section through the stepped bore, an enlarged detail, measured dimensions, a pitch circle and the final review and export.

The dimensioned flange sheet is also available as a PDF. It is a demonstration drawing with draft status. Its chosen scales, presentation and remaining engineering specifications still need review before workshop release.

Why Visual Inspection Matters Again

The most important lesson from the CAD work appears almost immediately here as well: the agent needs to see what it has produced.

A dimension can reference the correct geometry and display the correct number while its text intersects an extension line. A diameter leader can pass through another label. A section or a long dimension line can reach into the title block. These are very ordinary drawing problems, and they become apparent much faster when looking at the actual sheet.

The feedback also has to reach the model. The TechDraw tools therefore return a rendered PNG directly through MCP. A multimodal agent can inspect the sheet even when FreeCAD runs on another machine. SVG and PDF exports can also travel through the protocol with their bytes and integrity metadata.

That makes the correction loop practical: create the drawing, run the checks, request an image, identify a specific problem, move or revise the affected element and inspect the result again. A full-sheet image helps assess the arrangement and the space around the title block. Closer inspection helps with text, symbols, leaders and small features.

View frames are required during editing, so the tooling exposes them explicitly. The procedure turns them off before the final review and export. The resulting document retains its editable objects, while the delivered sheet presents the drawing itself cleanly.

Again each representation gives it another opportunity to catch a mistake.

Towards Professional Workshop Drawings

The practical goal is a drawing that somebody can use to understand and manufacture a component. That requires a deliberate check of the information conveyed by each view and dimension. Attractive projections are a useful beginning - feature coverage and engineering requirements are the main ingredients.

I used existing mechanical models as additional tests. Working from these documents is especially useful because the agent has to interpret geometry that already exists, decide how to explain it and preserve the source model throughout the drawing work. The examples below are draft sheets from that process. Their material, tolerance and approval fields remain open.

Sections and Details

The door handle below is a good example of why several representations belong on the same sheet. The main view gives the overall length and the mounting positions. The rear view shows the opposite opening of the stepped holes. Section A-A exposes their internal shape, and the enlarged detail makes the individual depths easier to read.

Draft door handle drawing with measured dimensions, a longitudinal section, a rear view and an enlarged stepped-hole detail

The useful question during review is whether one could reconstruct the relevant feature from this information. For a stepped hole that means its diameters, depths, entry face and position. For the handle as a whole it also means the overall dimensions, repeated features and relevant edge treatment. That gives the agent a much more concrete task than simply asking it to make the sheet look professional or convey all information.

Locating Holes and Pitch Circles

Hole placement turned out to be another important and not intuitive case for the agents. A diameter describes the size of a hole. Its centre also needs a location. For a circular pattern, that usually involves the pitch circle, the number of features, their spacing and an angular reference, together with the position of the pattern centre. The ring below contains repeated features on two concentric pitch circles. The drawing combines their diameters with angular information, a section and an enlarged detail of the stepped fixing geometry.

Draft column ring drawing with two pitch circles, angular dimensions, a section and an enlarged fixing detail

The pitch-circle tool fits a circle to inspected feature centres and checks the supplied pattern, including feature size and equal spacing when requested. It reports the measured pitch diameter and the angular positions and adds centre linework that can be inspected and dimensioned. The result is a validated snapshot of that pattern; model changes require another check and, where necessary, regeneration.

These examples also show why the review needs a feature checklist. Counting dimensions alone tells us very little about whether every important interface has been specified. A missing depth or an ambiguous angular reference can leave a substantial manufacturing decision unresolved.

Standards, Skills and Validation

The project includes a dedicated TechDraw skill, written as a procedure for the agent to follow. It covers inspection, sheet and view selection, dimension references, feature coverage, scripted checking, visual review and delivery. The generic design workflow now recommends preparing the technical drawing after validating the CAD model when the requested deliverable calls for it.

The procedural guidance is important. A capable model can still forget a hole depth, choose an inconvenient view or stop after the first successful export. Explicit steps give it something concrete to return to. They are also intended to make the workflow easier to follow for smaller models, although their actual performance still depends on the model and task.

I also checked the guidance and supported validation rules against the standards available to me. DIN/ISO drawing practice spans several concerns: dimension presentation, views and sections, line conventions and the specification of geometrical requirements. The skill needs to guide the agent through the applicable decisions, including the requirements it still needs from the user.

The Python checker handles the parts that can currently be assessed programmatically. It compares supported measurements with inspected geometry and reports structural and presentation findings, thus reducing the number of steps an agent has to check via its own reasoning capabilities. Layout checks examine text bounds and supported linework, including potential collisions involving dimension labels, extension lines and the title block. The result includes coverage information so that the agent can see which checks were performed and which cases remain outside their scope.

The skill makes both scripted validation and visual inspection mandatory. After a correction, the agent repeats the affected checks and reviews the revised image. Saving and reopening the document provides another useful checkpoint: the views, references, measurements and rendered result should still agree in the saved artifact.

What is currently missing (and work in progress)? Semantic geometrical tolerancing and datum authoring, conventional thread callouts, surface texture symbols and richer hole tables need additional support. Curved linework and complex text shapes also limit automatic overlap detection.

Other Improvements in 0.0.2

TechDraw is the most visible addition in this version. The public update also includes work on the existing CAD tools and the reliability of the connection to FreeCAD.

A Claude Code Vibecode Mess

The first attempt at implementing this feature was done in a vibe-code session with Claude Code. I wanted to see how well it could extend the existing MCP tooling, add the drawing workflow and verify its own results. What followed was quite a mess. The recurring problem was its tendency to terminate the task, announce that the goals had been achieved and leave substantial parts of the actual work unfinished. This happened repeatedly during these attempts, including when the open FreeCAD documents that were part of the tests still contained very obvious problems.

The drawings made that gap particularly visible. One sheet showed a block from above while omitting its thickness. Other sheets lacked hole locations, quantities or depths even with multiple instructions to add them. On slightly more complex hub drawing, diameter and position dimensions crowded into each other, thickness labels sat inside the section and important features remained insufficiently specified. Another section overlapped the title block. These were exactly the kinds of problems that the requested visual inspection and manufacturing-completeness review should have caught and where the agent actually claimed to have resolved them - without doing so.

There were also invented (halluzinated) engineering specifications. Claude added an M8x1.25 - 6H thread annotation to a plain 6.8 mm bore, although the geometry supplied no thread designation, pitch or class. Material and general-tolerance fields were filled with values whose use never had been approved. Those additions are particularly troublesome because a person in a workshop may reasonably treat them as deliberate requirements.

The code needed a substantial review as well. Geometry inspection silently stopped after 256 entries, so larger views could receive an incomplete inspection without making that limitation clear. Measurement readback could happen before FreeCAD had prepared the projectio. After reopening a document, a real measurement could initially appear as zero. Export responses needed checks for their actual format, decoded length and integrity. The rendered-text checker also reached the bridge without first enforcing the configured snapshot permission.

Several validation routines had a similar problem: their conclusions went beyond the evidence they collected. Approximate text boxes and bounding circles were used to judge layout, coordinate comparisons could ignore the parent views reference frame and feature-size grouping could mix a line length with a numerically equal circle radius. The standards review also needed correction. Template names, style settings and a clean warning list had been given far too much weight when assessing whether a drawing was complete and followed the applicable conventions.

Some of the implementation was useful. The extracted command multiplexer survived an independent comparison of all 204 moved command bodies, and the editing, section, detail and export capabilities provided a basis for further work. I then continued to review the implementation, correct the defects, expand the checks and exercise the tools against the actual FreeCAD documents. The drawing procedures also gained explicit feature inventories, reconstruction checks, mandatory image review and verification of the saved output.

For me the most frustrating part was that repeated claim of completion that I already knew from Claude. Every premature final answer handed the remaining inspection and diagnosis. For the longer autonomous sessions I want to run, the agent has to keep working through failed checks, inspect the actual result and make its remaining uncertainties explicit. That persistence is a major part of what makes this kind of engineering automation useful in practice.

What comes next

This addition focused less on the advances in the artificial intelligence pipeline but were more focused on the way the tooling connects to current manufacturing practices and workshops. It again utilizes the principle of an editable and mutable workspace for incremental improvements. The agent can design a component, explain it on a drawing, inspect the result and leave both representations available for further work. As of today a person can review the PDF, adjust the drawing in FreeCAD or continue changing the original model, though the main goal is of course to remove humans out of the loop all together.

There is plenty to improve within that workflow, particularly the richer manufacturing annotations and the systematic coverage of functional features. The combination of explicit procedures, measured geometry and visual feedback gives us a useful basis for that work.

In the first article the exciting step was to give agents their first practical handles to step into the physical world. Technical drawings add another such handle: they let an agent communicate a mechanical design to people who will build and inspect it.

As for what comes after that? We are reaching a little further into the physical world with the next feature that is currently in development.

References

This article is tagged:


Data protection policy

Dipl.-Ing. Thomas Spielauer, Wien (webcomplainsQu98equt9ewh@tspi.at)

This webpage is also available via TOR at http://rh6v563nt2dnxd5h2vhhqkudmyvjaevgiv77c62xflas52d5omtkxuid.onion/

Valid HTML 4.01 Strict Powered by FreeBSD IPv6 support