← All articles

FIELD NOTES / ZAPPD

Text-to-CAD must preserve design intent

A useful generated part needs editable relationships and explicit assumptions as well as a convincing shape.

Ask a model for a motor bracket and it might return something that looks like one. Ask it to accommodate a different motor and the more revealing test begins. Do the mounting holes move with the new pattern? Does the bracket preserve its intended clearance? Can the builder see which dimensions control the change?

A shape records one answer. Design intent records enough of the reasoning to make a related answer without starting again. For text-to-CAD, that difference determines whether generation becomes a useful engineering workflow or a source of models that someone else must reconstruct.

The goal should be an editable design whose relationships survive revision. Natural language is useful for expressing requests. It cannot substitute for a representation that retains those relationships.

Geometry and intent answer different questions

CadQuery's concepts documentation explains its use of OpenCascade boundary representations. In this representation, solids are defined through their enclosing surfaces and associated topology. Edges, faces and solids describe a shape in a structured way.

That structure is different from the reason a dimension exists. A circular hole can have perfectly valid geometry while having the wrong diameter for its intended fastener. A solid can be closed while leaving no room for a tool to reach the mounting screw.

Consider a hypothetical bracket with two holes intended to match a motor flange. If the design stores only their present coordinates, it does not necessarily record their relationship to the flange. A parameterized construction can instead connect their spacing to an explicit mounting pattern. The relationship then becomes something a builder can inspect and revise.

This example does not establish that every parameterized model is good. A parameter with an unexplained name can preserve an arbitrary number just as effectively as a meaningful requirement. The representation needs an explanation of what the number controls.

Constraints make some intentions explicit

The CadQuery sketch documentation lists geometric constraints such as coincidence, length, distance and angle. It also labels its two dimensional sketch constraints and solver experimental. That caveat belongs in any discussion of using this specific interface.

Constraints illustrate a broader point. Two edges that happen to be parallel in one generated output differ from two edges whose relationship is explicitly constrained. The latter representation explains what should remain true when dimensions change.

For the bracket, we might intend the mounting holes to remain centered about a reference plane. We might want a cable opening to track the motor position. Those relationships are proposed design choices. A generation tool should expose them so that a builder can reject an incorrect interpretation before refining the geometry.

There are limits to what geometric constraints express. A distance constraint can specify a gap. It does not establish whether that gap accommodates a cable's behavior during movement. A solved sketch is evidence about the sketch, not a complete engineering verdict.

Manufacturing changes the question

A designer who asks for a bracket has not necessarily specified how it will be made. A geometry that seems reasonable for one manufacturing process can be awkward for another. Rather than guessing silently, a useful tool should surface the unresolved process choice and explain which decisions depend on it.

Take an illustrative internal recess. Its usefulness depends partly on whether the chosen process can create it and whether the intended component can be inserted afterward. Even a detailed outside view might hide both questions. The model needs to be examined as a part that will be manufactured and assembled.

This is an editorial argument about workflow, not a claim that CadQuery performs automatic manufacturing validation. CAD representation supplies a place to express and inspect geometry. Process constraints, material behavior and the chosen component specifications require their own evidence.

The same separation helps beginners. They can understand that a dimension is provisional without knowing every manufacturing rule. The tool can ask for the process or mark the decision unresolved instead of giving a polished model an undeserved implication of readiness.

A revision is a useful acceptance test

To evaluate a text-to-CAD result, choose a change that matters to the part's function. Replace the motor mounting pattern. Increase an explicitly assumed clearance. Change the available envelope. Then inspect both the geometry and the explanation of what changed.

A useful revision should preserve relationships that remain relevant and identify relationships it could not preserve. It should also leave the builder with a readable record of the new assumptions. Otherwise, the convenience of asking for a change disappears when someone tries to verify it.

There is a practical documentation benefit here. A future collaborator does not need to infer why every opening exists. They can distinguish a mounting feature tied to a documented component from a provisional access opening. That makes review more specific and reduces dependence on the original conversation.

The strongest generated artifact would therefore include the editable construction, named parameters, component references and unresolved checks. A rendered preview would help the builder inspect it, but would not carry the entire explanation.

Text-to-CAD will earn trust through these ordinary revisions. The decisive moment is when a builder can change a requirement, understand the resulting part and identify what still needs verification. A convincing first shape is the beginning of that process.

Sources

← More from Zappd