<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by David Shi on Medium]]></title>
        <description><![CDATA[Stories by David Shi on Medium]]></description>
        <link>https://medium.com/@shiyang19822000?source=rss-829569ad8b59------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*FMgY8eAONreJ6uJxewcU-Q.jpeg</url>
            <title>Stories by David Shi on Medium</title>
            <link>https://medium.com/@shiyang19822000?source=rss-829569ad8b59------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 10:07:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shiyang19822000/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Why AI CAD Agents Need Guardrails: Preventing Silent Modeling Failures in SolidWorks]]></title>
            <link>https://medium.com/@shiyang19822000/why-ai-cad-agents-need-guardrails-preventing-silent-modeling-failures-in-solidworks-b5461a0f4f0c?source=rss-829569ad8b59------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5461a0f4f0c</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[solidworks]]></category>
            <category><![CDATA[cad]]></category>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[David Shi]]></dc:creator>
            <pubDate>Thu, 03 Dec 2026 01:28:18 GMT</pubDate>
            <atom:updated>2026-12-03T01:28:18.057Z</atom:updated>
            <content:encoded><![CDATA[<p>How to Make AI Agents Safer and More Reliable When Operating Real CAD Systems</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aPe-lnXZc1J5RrRcXcoE2g.jpeg" /></figure><h3>Introduction: A Successful Command Does Not Guarantee a Correct Model</h3><p>An AI agent can issue a SolidWorks command successfully and still produce an incorrect model.</p><p>A cut operation may execute without an obvious error but remove no material. A feature may fail during rebuild while subsequent operations continue. A face reference that was valid before a geometry change may point to something different afterward.</p><p>These problems reveal an important distinction:</p><p><strong>Executing a CAD operation is not the same as verifying its result.</strong></p><p>When AI agents interact with real engineering software, reliability depends on more than choosing the right API or generating a plausible sequence of commands. They also need to understand the current document state, recognize failure conditions, and know when to stop.</p><p>This is why guardrails matter.</p><p>In AI-driven CAD, guardrails are not simply restrictions on what an agent can do. They are operational rules that help prevent one incorrect decision from turning into a chain of modeling failures.</p><p>In this article, we explore several practical guardrail principles for operating SolidWorks through cadmcp.</p><h3>1. Why CAD Automation Needs Guardrails</h3><p>Traditional CAD automation often follows a predefined sequence:</p><ol><li>Create a sketch.</li><li>Add dimensions and constraints.</li><li>Generate a feature.</li><li>Modify the geometry.</li><li>Save or export the result.</li></ol><p>When the sequence is designed and tested in advance, the automation developer can make assumptions about the starting document and the expected result.</p><p>An AI agent operates differently.</p><p>It may need to interpret a request, inspect an existing model, choose an operation, execute it, and decide what to do next based on the returned result.</p><p>That introduces several sources of uncertainty.</p><h3>Uncertainty about the document</h3><p>The active document may not be the one the agent expects.</p><p>A sketch may not exist. A feature may already have been created. The model may contain geometry that changes the meaning of a subsequent operation.</p><h3>Uncertainty about references</h3><p>CAD operations frequently depend on faces, edges, planes, sketches, and other model references.</p><p>These references are not always stable after geometry changes.</p><p>An edge index obtained before a feature modification should not automatically be assumed to identify the same geometric edge afterward.</p><h3>Uncertainty about operation results</h3><p>An operation returning without an obvious execution error does not prove that the intended geometry was created.</p><p>For example, a cut may remove no material because its profile or direction does not intersect the target body.</p><h3>Uncertainty about recovery</h3><p>When an operation fails, blindly repeating it may not solve the problem.</p><p>The underlying issue could be an invalid reference, a missing sketch, an unsupported operation, or an unexpected document state.</p><p>A reliable agent needs to distinguish these cases before deciding what to do next.</p><h3>2. Inspect the Model Before Making Changes</h3><p>One of the most important guardrails is simple:</p><p><strong>Never assume the CAD document is in the state the agent expects.</strong></p><p>Before modifying a part, an agent should inspect the current environment.</p><p>A practical pre-edit checklist includes:</p><ul><li>Is there an active document?</li><li>What reference planes are available?</li><li>What features already exist?</li><li>Are there existing sketches?</li><li>What sketch entities are present?</li><li>Is the intended target feature or reference identifiable?</li></ul><p>These checks provide context for the next operation.</p><p>Consider a simple example.</p><p>A user asks an agent to add four holes to an existing plate.</p><p>A weak workflow might immediately attempt to create a sketch and execute four cuts.</p><p>A more controlled workflow first determines:</p><ol><li>Whether the correct part document is active.</li><li>Whether the plate already contains a hole pattern.</li><li>Which plane or face should host the new sketch.</li><li>Whether the selected reference is still valid.</li><li>Whether the new holes would overlap existing geometry.</li></ol><p>The additional inspection takes time, but it reduces the likelihood of modifying the wrong document or building on an incorrect assumption.</p><p>For AI-driven CAD, observing the current state is part of the modeling process — not an optional debugging step.</p><h3>3. Treat Geometry References as Temporary</h3><p>One of the most subtle problems in parametric CAD automation is reference invalidation.</p><p>A model is not just a collection of visible surfaces. It is a dependency structure in which features are built from sketches, references, and previous operations.</p><p>When geometry changes, the topology may change too.</p><p>For example:</p><ol><li>An agent identifies an edge for a fillet.</li><li>It creates a cut that changes the surrounding geometry.</li><li>The original edge numbering or indexing is no longer reliable.</li><li>The agent reuses the old reference for another operation.</li></ol><p>The next operation may fail — or worse, it may affect an unintended geometric entity.</p><p>This is why a useful operational rule is:</p><p><strong>Re-query faces and edges after geometry mutations instead of blindly reusing old indexes.</strong></p><p>The same principle applies to other model references.</p><p>An agent should distinguish between:</p><ul><li>Stable design references, such as intended datum planes.</li><li>References that depend on generated topology.</li><li>Temporary identifiers returned by a previous inspection.</li><li>Assumptions that have not yet been confirmed against the current model.</li></ul><p>This distinction is especially important when an agent modifies an existing SolidWorks model rather than creating a new part from an empty document.</p><p>The goal is not to eliminate all reference instability. That is not realistic in complex parametric modeling.</p><p>The goal is to prevent an agent from treating potentially stale references as guaranteed facts.</p><h3>4. Detect Silent Failures, Not Just Explicit Errors</h3><p>A major weakness in naive CAD automation is relying exclusively on whether an operation reports success.</p><p>Consider a cut operation.</p><p>The agent creates a sketch, defines a profile, and requests a cut. The command returns without an obvious failure.</p><p>But what if the cut does not intersect the solid?</p><p>The model may remain unchanged.</p><p>From the agent’s perspective, the operation appeared to complete. From the engineering perspective, the requested modification never happened.</p><p>This is a silent modeling failure.</p><h3>Use geometric evidence</h3><p>A more reliable workflow checks the model after important operations.</p><p>Useful evidence can include:</p><ul><li>Solid volume.</li><li>Face count.</li><li>Bounding-box dimensions.</li><li>Feature creation results.</li><li>Rebuild status.</li><li>Other relevant geometric properties.</li></ul><p>For a cut operation, volume is particularly useful.</p><p>If the operation is expected to remove material, the resulting volume should normally be smaller than the previous volume.</p><p>If the volume remains unchanged, the agent should not automatically assume that the cut succeeded.</p><p>However, a volume change alone is not sufficient proof of correctness. The cut could have removed material from the wrong location.</p><p>Likewise, face count is a useful diagnostic signal, but it is not a universal correctness metric. Different valid modeling operations can produce different face-count changes.</p><p>The important principle is to compare observed results against the expected effect of the operation.</p><h3>Establish checkpoints</h3><p>A practical workflow can introduce verification checkpoints:</p><p>StageWhat to inspectBefore modelingActive document and initial model stateAfter sketch creationSketch entities and intended profileAfter feature creationFeature result and rebuild statusAfter geometry modificationVolume, face count, or bounding box as appropriateBefore completionFinal model state and requested requirements</p><p>Not every operation needs every check.</p><p>The checks should be selected according to the operation’s expected effect and the potential cost of an incorrect result.</p><h3>5. Rebuild Errors Should Be Hard Stops</h3><p>A particularly important guardrail concerns SolidWorks rebuild errors.</p><p>A feature may exist in the feature tree but still have an error associated with its rebuild.</p><p>If an agent continues modeling without addressing that condition, later operations may depend on invalid or incomplete geometry.</p><p>This creates a dangerous chain:</p><ol><li>A feature fails to rebuild.</li><li>The agent continues with another feature.</li><li>The next operation uses geometry affected by the failed feature.</li><li>More failures appear.</li><li>The agent attempts additional modifications without understanding the original problem.</li></ol><p>The result can become increasingly difficult to diagnose.</p><p>A safer rule is:</p><p><strong>Treat </strong><strong>rebuild.feature_errors as a stop condition.</strong></p><p>The agent should stop the current modeling sequence, inspect the failure, and determine whether the underlying issue can be corrected safely.</p><p>It should not continue simply because the next tool call is available.</p><p>This is an important difference between a command-execution system and a controlled modeling workflow.</p><p>A command-execution system asks:</p><p><em>What operation should I run next?</em></p><p>A guarded workflow also asks:</p><p><em>Is the model still in a valid state to run that operation?</em></p><h3>6. Replace Blind Retries with Error Classification</h3><p>When an operation fails, an AI agent may be tempted to repeat the same command with slightly different parameters.</p><p>Sometimes this works.</p><p>But retries are not a universal recovery strategy.</p><p>A failure should first be classified.</p><p>For example, cadmcp exposes error codes such as:</p><ul><li>NO_ACTIVE_SKETCH</li><li>FEATURE_CREATE_FAILED</li><li>REF_AMBIGUOUS</li><li>INVALID_ARGUMENT</li></ul><p>These codes represent different classes of problems. They should lead the agent toward different diagnostic actions rather than one generic retry loop.</p><p>A useful recovery decision process looks like this:</p><p>Error categoryBetter next actionMissing active sketchInspect the current document and sketch stateFeature creation failureInspect the feature inputs and relevant geometryAmbiguous referenceRe-query candidates and resolve the intended referenceInvalid argumentCheck parameter names, types, ranges, and operation requirementsRebuild failureStop the sequence and inspect the affected feature</p><p>This table describes a recovery approach, not a claim that every error has a fully automatic repair.</p><p>The key is to make the next action depend on the failure’s meaning.</p><h3>A better retry policy</h3><p>A controlled agent should follow a sequence like this:</p><ol><li>Capture the error and operation context.</li><li>Identify the error category.</li><li>Inspect the relevant model state.</li><li>Determine whether the cause is understood.</li><li>Correct the cause or ask for clarification.</li><li>Retry only when there is a justified change to the operation or its inputs.</li><li>Verify the result after execution.</li></ol><p>If the cause remains unknown, stopping is often safer than trying another variation.</p><p>In engineering software, a controlled failure is better than an uncontrolled sequence of modifications.</p><h3>7. Define Operations That Should Not Be Attempted Blindly</h3><p>Guardrails should also identify operations or parameter combinations that are known to be problematic.</p><p>The current cadmcp modeling guidance highlights several cases that require particular care.</p><h3>Native InsertThread and Toolbox assumptions</h3><p>SolidWorks threading and Toolbox functionality involve specific API and environment constraints.</p><p>An agent should not assume that a native API member or Toolbox operation is available simply because it sounds like the natural way to perform the task.</p><p>It should use the supported workflow exposed by the actual integration.</p><h3>Thin features with Up To end conditions</h3><p>The combination of a thin feature and an up_to_surface end condition is identified as an operation to avoid in the current modeling guidance.</p><p>An agent should not repeatedly attempt this combination without checking the documented limitation.</p><h3>Non-zero Z values in 2D sketches</h3><p>A 2D sketch has a defined sketch plane.</p><p>Introducing a non-zero Z value where the operation expects planar sketch coordinates can create invalid or unexpected geometry.</p><p>The agent should respect the coordinate system and input requirements of the sketch operation.</p><h3>Reusing face and edge indexes after mutations</h3><p>As discussed earlier, geometry changes can invalidate previously collected references.</p><p>The correct response is to inspect the updated model and acquire fresh references.</p><p>These examples illustrate an important design principle:</p><p><strong>An AI agent should know not only which operations are available, but also which combinations require special handling or should be avoided.</strong></p><h3>8. A Practical Guarded Modeling Workflow</h3><p>The previous principles can be combined into a single operational workflow.</p><p>&lt;pre&gt; User Request | v Understand Modeling Intent | v Inspect Active Document | v Check References and Existing Features | v Select a Supported Modeling Strategy | v Execute One Modeling Operation | v Check Operation Result | + — — Explicit Error? — — Yes — → Classify Error | | | v | Inspect and Recover | | | v | Retry Only if Justified | No | v Check Rebuild Status | + — — Rebuild Error? — — Yes — → Stop and Diagnose | No | v Verify Expected Geometric Change | + — — Unexpected Result? — — Yes — → Stop and Inspect | No | v Continue to Next Operation | v Final Model Verification &lt;/pre&gt;</p><p>This workflow introduces several control points:</p><ul><li>State inspection before modification.</li><li>Error classification after failed operations.</li><li>Rebuild checks before continuing.</li><li>Geometric verification after meaningful changes.</li><li>Final verification before reporting completion.</li></ul><p>The workflow does not require an agent to stop after every harmless operation.</p><p>Instead, it places stronger controls around operations that can change model topology, introduce dependencies, or produce difficult-to-detect failures.</p><h3>9. How cadmcp Approaches Modeling Guardrails</h3><p>cadmcp is an open-source MCP server designed to connect AI agents with real SolidWorks operations.</p><p>Its modeling guidance includes several of the principles discussed above:</p><ul><li>Inspect the active document, reference planes, existing features, and sketch entities before editing.</li><li>Treat rebuild feature errors as stop conditions.</li><li>Check volume and face count when evaluating expected geometry changes.</li><li>Avoid blind retries after a no-op cut.</li><li>Reacquire face and edge references after geometry mutations.</li><li>Use error categories to guide the next diagnostic action.</li></ul><p>The project also provides modeling examples covering a plate, a constrained profile with fillet and linear pattern, and a surface-thicken workflow.</p><p>These examples are useful because guardrails are easier to understand when they are connected to actual modeling operations.</p><p>Importantly, these safeguards do not make every modeling operation automatically safe. They provide operational guidance that an AI agent can use to make better decisions when interacting with SolidWorks.</p><p>The distinction matters.</p><p>A checklist can prevent known mistakes, but it cannot guarantee that an arbitrary model satisfies every engineering requirement.</p><h3>10. Guardrails Are Not Engineering Certification</h3><p>There is an important limit to what automated guardrails can prove.</p><p>A model may pass basic geometric checks and still be wrong.</p><p>For example:</p><ul><li>Its overall dimensions may be correct, but a hole may be in the wrong position.</li><li>Its volume may be plausible, but the wall thickness may be incorrect.</li><li>Its feature tree may rebuild successfully, but the design intent may not have been preserved.</li><li>Its assembly may appear complete, but the component relationships may not reflect the intended mechanism.</li></ul><p>This means guardrails should be treated as one layer of a broader verification process.</p><p>A useful distinction is:</p><p>LayerWhat it helps establishOperation resultWhether the requested operation executedModel-state checkWhether the document remains in an acceptable stateGeometric verificationWhether measurable geometry matches expectationsDesign verificationWhether the model satisfies specified requirementsEngineering reviewWhether the result is suitable for its intended engineering use</p><p>These layers are related, but they are not interchangeable.</p><p>An automated check should report what it actually verified rather than making a broader claim.</p><p>For example:</p><p><em>The cut operation completed, and the solid volume decreased.</em></p><p>This is more informative and defensible than:</p><p><em>The model is correct.</em></p><h3>11. The Next Step: From Guardrails to Controlled Recovery</h3><p>Guardrails help an agent recognize when something is wrong.</p><p>The next challenge is helping it recover safely.</p><p>A more advanced AI CAD workflow could eventually combine:</p><ol><li>Structured operation results.</li><li>Explicit error classification.</li><li>Model-state snapshots.</li><li>Reference reacquisition.</li><li>Operation-specific recovery strategies.</li><li>Verification after recovery.</li><li>A clear record of what changed.</li></ol><p>For example, when a cut removes no material, an agent should not simply repeat the cut.</p><p>It could inspect the sketch profile, check the cut direction, confirm the target body, and compare the expected and observed geometry.</p><p>Only after identifying a plausible cause should it attempt a correction.</p><p>Similarly, when a reference becomes ambiguous, the agent could inspect the available candidates and ask for clarification if the intended reference cannot be determined reliably.</p><p>This points toward a more mature architecture:</p><p><strong>Detect → Diagnose → Decide → Recover → Verify</strong></p><p>This is a direction for further development, not a claim that cadmcp already provides a universal automatic recovery engine.</p><p>The objective is to make recovery explainable and controlled rather than dependent on repeated trial and error.</p><h3>Conclusion: Reliability Comes from Knowing When Not to Continue</h3><p>AI-driven CAD is often evaluated by how quickly an agent can create geometry.</p><p>But speed is not the most important measure of a reliable engineering workflow.</p><p>A more meaningful question is whether the agent can recognize when its assumptions are no longer valid.</p><p>Can it detect that a cut changed nothing?</p><p>Can it recognize a rebuild error before continuing?</p><p>Can it avoid using stale face and edge references?</p><p>Can it distinguish an invalid argument from a missing sketch or an ambiguous reference?</p><p>And, perhaps most importantly, can it stop when it does not have enough information to proceed safely?</p><p>These capabilities are essential when AI agents move beyond generating modeling instructions and begin operating real CAD systems.</p><p>The transition is not simply:</p><p><strong>From generating CAD commands to executing CAD commands.</strong></p><p>It is:</p><p><strong>From executing CAD commands to controlling, inspecting, and verifying their consequences.</strong></p><p>That is the foundation of more reliable AI-assisted mechanical design.</p><h3>Explore cadmcp</h3><p>cadmcp is an open-source MCP server that connects AI agents with SolidWorks.</p><ul><li>GitHub: <a href="https://github.com/pakupaku5260/cad-mcp">https://github.com/pakupaku5260/cad-mcp</a></li><li>Project Website: <a href="https://cad.npanic.com/">https://cad.npanic.com/</a></li><li>Getting Started: <a href="https://cad.npanic.com/getting-started/">https://cad.npanic.com/getting-started/</a></li><li>Tool Reference: <a href="https://cad.npanic.com/tools/">https://cad.npanic.com/tools/</a></li><li>Architecture: <a href="https://cad.npanic.com/architecture/">https://cad.npanic.com/architecture/</a></li><li>Known Limitations: <a href="https://cad.npanic.com/limitations/">https://cad.npanic.com/limitations/</a></li></ul><p>For real SolidWorks modeling, the documented setup requires Windows, SolidWorks 2025, Python 3.11+, and pywin32.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5461a0f4f0c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[REUSABLE CAD STRATEGIES]]></title>
            <link>https://medium.com/@shiyang19822000/reusable-cad-strategies-57a015d4cbc0?source=rss-829569ad8b59------2</link>
            <guid isPermaLink="false">https://medium.com/p/57a015d4cbc0</guid>
            <category><![CDATA[mechanical-engineering]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[cad]]></category>
            <category><![CDATA[solidworks]]></category>
            <dc:creator><![CDATA[David Shi]]></dc:creator>
            <pubDate>Wed, 02 Dec 2026 02:43:35 GMT</pubDate>
            <atom:updated>2026-12-02T02:43:35.683Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to Build Reusable CAD Modeling Strategies for AI Agents</h3><p>From Repeated CAD Operations to Reusable, Parameter-Driven Modeling Workflows</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ToBFp4w2dNWERhgvApVvQg.jpeg" /></figure><h3>1. Why Should an AI Agent Rebuild Everything from Scratch?</h3><p>Imagine asking an AI agent to create a rectangular mounting plate.</p><p>It needs to create a sketch, define the rectangle, extrude it, add holes, and inspect the resulting geometry.</p><p>Now imagine asking it to create another plate with slightly different dimensions.</p><p>The same general modeling process is needed again.</p><p>This is not necessarily a problem for a human engineer. Experienced CAD users recognize familiar modeling patterns and reuse them naturally.</p><p>But an AI agent may approach every request as a new planning problem.</p><p>It may generate a different sequence of operations, choose different references, or make unnecessary modeling decisions.</p><p>As the number of CAD tasks increases, this becomes inefficient and difficult to maintain.</p><p>A more scalable approach is to identify recurring modeling patterns and make them reusable.</p><p>Instead of asking an AI agent to invent every modeling sequence independently, we can give it access to a catalog of known strategies.</p><p>The agent can then identify a suitable strategy, supply the required parameters, execute the workflow, and inspect the result.</p><p>This is the idea behind reusable CAD modeling strategies.</p><h3>2. What Is a CAD Modeling Strategy?</h3><p>A modeling strategy is a reusable approach for creating a particular class of geometry.</p><p>It is more than a list of SolidWorks commands.</p><p>A useful strategy describes a recognizable modeling problem and provides a repeatable way to solve it.</p><p>For example, a plate strategy might define:</p><ul><li>The required overall dimensions.</li><li>The base sketch geometry.</li><li>The extrusion direction and thickness.</li><li>Optional holes or repeated features.</li><li>The expected geometric result.</li></ul><p>A box strategy might describe a different construction approach involving a base profile, wall geometry, and potentially a shell operation.</p><p>A surface-thickening strategy addresses another kind of problem: creating a surface first and then converting it into solid geometry through thickening.</p><p>These strategies have different modeling requirements, but they share a common purpose:</p><p><strong>They turn recurring CAD knowledge into reusable execution patterns.</strong></p><p>This is particularly valuable for AI agents because it reduces the amount of low-level planning required for familiar modeling tasks.</p><p>Instead of repeatedly deciding how to build a common geometry from scratch, the agent can start from a known approach.</p><h3>3. Not Every CAD Request Needs a New Strategy</h3><p>Before discussing implementation, it is important to distinguish between three situations.</p><h3>Situation A: A familiar modeling pattern</h3><p>A user asks:</p><p>“Create a 100 × 50 × 10 mm rectangular plate.”</p><p>This is a relatively standard modeling task.</p><p>A known plate strategy may be suitable.</p><h3>Situation B: A familiar pattern with different parameters</h3><p>A user asks:</p><p>“Create the same plate, but make it 150 mm long, 80 mm wide, and 12 mm thick.”</p><p>The underlying modeling pattern has not changed.</p><p>Only the parameters have changed.</p><p>A reusable strategy can handle this kind of variation without requiring a completely new modeling plan.</p><h3>Situation C: A different engineering problem</h3><p>A user asks:</p><p>“Create a curved sheet-metal housing with multiple bends, mounting flanges, and a complex transition surface.”</p><p>This may require a different strategy or a combination of several modeling approaches.</p><p>Trying to force every request into a plate strategy would be inappropriate.</p><p>A strategy catalog should help an AI agent recognize what is reusable, not encourage it to apply a familiar workflow to an unsuitable problem.</p><h3>4. The Strategy Catalog in cadmcp</h3><p>In cadmcp, the DesignSpec toolset includes a tool called:</p><p>list_part_strategies</p><p>Its purpose is to expose the available part-type modeling strategies.</p><p>The current catalog includes four entries:</p><p>StrategyModeling focusplatePlate-type geometryboxBox-type geometryfillet_patternFillet and pattern operationssurface_thickenSurface creation and thickening</p><p>These entries are backed by examples.</p><p>This is a deliberately limited catalog rather than a claim that cadmcp already contains a comprehensive mechanical component library.</p><p>The value is that an AI agent can discover supported modeling patterns instead of assuming that every request requires an entirely new execution plan.</p><p>For example, when a user requests a plate, the agent can inspect the available strategy catalog and determine whether the plate pattern is relevant.</p><p>When the requested geometry involves a surface that must become a solid, the surface-thickening pattern may be more appropriate.</p><p>The catalog provides a starting point for structured modeling.</p><p>It does not automatically solve every design problem or guarantee that a selected strategy is suitable for every variation.</p><h3>5. Strategy Selection: Match the Problem Before Executing It</h3><p>A reusable strategy is only useful if the agent selects it correctly.</p><p>Consider the following simplified decision process:</p><pre>User Request<br>     |<br>     v<br>Understand Geometry<br>     |<br>     v<br>Identify Part Type<br>     |<br>     v<br>Inspect Available Strategies<br>     |<br>     v<br>Is There a Suitable Strategy?<br>     |<br>  +--+--+<br>  |     |<br> Yes    No<br>  |     |<br>  v     v<br>Check   Plan a New<br>Inputs  Modeling Approach<br>  |<br>  v<br>Execute<br>  |<br>  v<br>Inspect Result</pre><p>This is a conceptual selection workflow, not a claim that cadmcp currently implements a fully autonomous strategy-selection engine.</p><p>The AI agent still needs to interpret the user’s request and determine whether the requested geometry matches a supported strategy.</p><p>For example, a rectangular plate with a few holes is a reasonable candidate for a plate-oriented workflow.</p><p>A complex cast housing with curved surfaces, ribs, internal cavities, and multiple functional interfaces is not simply a more complicated plate.</p><p>The agent should recognize when a strategy is applicable and when a new modeling plan is necessary.</p><p>This is an important distinction between strategy reuse and blind template reuse.</p><h3>6. Parameters Make Strategies Adaptable</h3><p>The main benefit of a reusable strategy is that its inputs can change without changing its fundamental modeling approach.</p><p>For a plate, the most obvious parameters are:</p><ul><li>Length.</li><li>Width.</li><li>Thickness.</li><li>Hole diameter.</li><li>Hole positions.</li></ul><p>For a box, parameters might include:</p><ul><li>Length.</li><li>Width.</li><li>Height.</li><li>Wall thickness.</li><li>Opening configuration.</li></ul><p>These are illustrative parameter groups, not a claim that every listed parameter is supported by every current catalog entry.</p><p>The important principle is to separate variable design inputs from the modeling procedure.</p><p>Consider two plate requests:</p><p><strong>Variant 1</strong></p><ul><li>Length: 100 mm</li><li>Width: 50 mm</li><li>Thickness: 10 mm</li></ul><p><strong>Variant 2</strong></p><ul><li>Length: 150 mm</li><li>Width: 80 mm</li><li>Thickness: 12 mm</li></ul><p>Both requests describe the same general modeling pattern.</p><p>The strategy should not need to be reinvented just because the dimensions change.</p><p>This is also where DesignSpec becomes relevant.</p><p>DesignSpec supports parameter references through its $param substitution mechanism.</p><p>The design_run execution tool can process feature dependencies and substitute supported parameter references.</p><p>This provides a foundation for separating parameter values from feature definitions.</p><p>It is important, however, not to confuse parameter substitution with a complete parametric design engine.</p><p>A parameter reference does not automatically define every geometric relationship, validate every combination of dimensions, or guarantee that the resulting model will rebuild successfully.</p><p>The actual SolidWorks model still needs valid feature definitions and appropriate geometric constraints.</p><h3>7. Feature Dependencies: A Strategy Needs More Than an Operation List</h3><p>A reusable modeling strategy must also account for feature dependencies.</p><p>Consider a simple plate with four holes.</p><p>The logical sequence is:</p><pre>Base Sketch<br>    |<br>    v<br>Base Extrusion<br>    |<br>    v<br>Hole Features<br>    |<br>    v<br>Final Geometry</pre><p>The holes depend on the base geometry.</p><p>They cannot be created correctly before the required supporting geometry exists.</p><p>Now consider a surface-thickening workflow:</p><pre>Profile Sketch<br>    |<br>    v<br>Surface Creation<br>    |<br>    v<br>Surface Inspection<br>    |<br>    v<br>Thicken<br>    |<br>    v<br>Solid Geometry</pre><p>The thickening operation depends on a valid surface.</p><p>If the surface is incomplete or unsuitable, the downstream operation may fail.</p><p>These examples illustrate why a strategy should describe not only which operations are required, but also how they depend on one another.</p><p>DesignSpec provides a mechanism for declaring feature dependencies through depends_on.</p><p>The design_run tool can topologically sort dependent features, preserving stable ordering within the same dependency layer.</p><p>This means the execution layer can derive a valid order from the declared relationships rather than relying entirely on the order in which an AI agent happens to generate the specification.</p><p>However, dependency ordering only works when the dependencies are correctly declared.</p><p>A missing dependency can still produce an invalid execution plan.</p><p>The strategy designer and the AI agent remain responsible for describing the intended feature relationships accurately.</p><h3>8. Reusable Strategies and Replayable Recipes Are Different</h3><p>There is another useful capability in cadmcp: replay_recipe.</p><p>At first glance, a modeling strategy and a replayable recipe may look similar.</p><p>Both can help reduce repeated planning.</p><p>But they solve different problems.</p><p>A replay recipe is an ordered sequence of registered tool calls with per-step assertions.</p><p>It is useful when a known sequence of CAD operations needs to be reproduced.</p><p>A modeling strategy is a higher-level modeling pattern that describes a particular type of design problem.</p><p>The distinction is:</p><p>AspectModeling StrategyReplay RecipeMain purposeReuse a modeling approachReproduce a known operation sequenceAbstractionPart-type or pattern levelTool-call levelInputsDesign parameters and supported optionsRecorded call argumentsOrderingCan use declared dependencies through DesignSpecExplicit sequenceAssertionsDepends on the workflow and checks usedPer-step assertionsBest suited forSimilar designs with varying inputsRepeatable known workflows</p><p>For example, a plate strategy represents a recurring modeling pattern.</p><p>A replay recipe can preserve a specific plate-building sequence, including the actual dimensions and operation arguments.</p><p>These mechanisms complement each other.</p><p>A strategy helps the agent decide how to approach a familiar modeling problem.</p><p>A recipe helps reproduce a known sequence of operations.</p><p>Neither should be confused with a general-purpose engineering design system.</p><h3>9. Learn from Real Modeling Examples</h3><p>A strategy catalog becomes much more useful when it is supported by real execution examples.</p><p>Examples can show:</p><ul><li>Which inputs are required.</li><li>Which CAD operations are used.</li><li>Which references are needed.</li><li>Which dependencies exist.</li><li>What the resulting geometry should look like.</li><li>Which checks can confirm the result.</li></ul><p>The cadmcp repository includes a Quickstart example that creates a 100 × 50 × 10 mm plate with four Ø6 through-holes.</p><p>The documented real SolidWorks session uses operations including:</p><ul><li>new_part</li><li>start_sketch</li><li>sketch_rectangle</li><li>end_sketch</li><li>extrude</li><li>hole_wizard</li><li>get_mass_properties</li></ul><p>The resulting volume is reported as approximately 48,869 mm³.</p><p>This example is useful because it connects a natural-language request to an actual sequence of SolidWorks operations and a measurable result.</p><p>The repository also includes replayable recipe examples.</p><p>A modeling example should ideally contain more than a successful command sequence.</p><p>It should make the assumptions and expected results understandable to another agent or developer.</p><p>For instance, a good example should explain why a particular reference is selected, what geometry is expected after an operation, and what conditions should cause execution to stop.</p><p>This is how a collection of examples can gradually become a useful source of reusable modeling knowledge.</p><h3>10. Guardrails Are Part of a Reusable Strategy</h3><p>One of the most important lessons from real CAD automation is that successful execution is not guaranteed simply because the operation sequence is familiar.</p><p>SolidWorks modeling operations are sensitive to document state, geometry references, and feature history.</p><p>A reusable strategy should therefore include more than a list of operations.</p><p>It should also define conditions under which execution should stop.</p><p>For example:</p><p><strong>Before editing</strong></p><ul><li>Confirm the active document.</li><li>Inspect available reference planes.</li><li>Check existing features.</li><li>Confirm the current sketch state.</li></ul><p><strong>After creating geometry</strong></p><ul><li>Inspect the resulting feature.</li><li>Check volume and face count where relevant.</li><li>Review rebuild errors.</li><li>Confirm that the expected geometry exists.</li></ul><p><strong>When an operation fails</strong></p><ul><li>Inspect the error.</li><li>Determine whether the failure is caused by an invalid argument, missing reference, or unsuitable geometry.</li><li>Avoid blindly repeating a failed operation.</li></ul><p>The current cadmcp modeling skill emphasizes this kind of operational discipline.</p><p>It documents hard-stop conditions, recovery guidance, and specific failure patterns that an AI agent should not ignore.</p><p>For example, a no-op cut should not trigger an endless sequence of blind retries.</p><p>A rebuild error should be treated as a reason to stop and investigate.</p><p>Face and edge indexes should not be reused blindly after geometry mutations because the underlying topology may have changed.</p><p>These details are important because a reusable strategy that repeatedly produces invalid geometry is not a useful strategy.</p><p>Reliability requires both a modeling procedure and a set of execution guardrails.</p><h3>11. How to Evaluate Whether a Strategy Is Actually Reusable</h3><p>A modeling strategy should not be considered reusable merely because it worked once.</p><p>It should be tested against different inputs and relevant edge cases.</p><p>For example, a plate strategy could be tested with:</p><ul><li>Different lengths and widths.</li><li>Different thicknesses.</li><li>Different hole counts.</li><li>Different hole positions.</li><li>Minimum and maximum supported dimensions.</li></ul><p>A surface-thickening strategy could be tested with different surface profiles and thickness values within its supported operating conditions.</p><p>Useful evaluation questions include:</p><ol><li>Does the strategy work with multiple valid parameter combinations?</li><li>Are its required inputs clearly defined?</li><li>Does it reject invalid or unsupported inputs?</li><li>Does it create the expected feature structure?</li><li>Can the resulting geometry be inspected?</li><li>Does it fail safely when an operation cannot be completed?</li><li>Can the workflow be reproduced consistently?</li></ol><p>This is a proposed evaluation framework, not a claim that all current cadmcp strategies have already passed such a comprehensive benchmark.</p><p>The distinction between a working example and a validated reusable strategy is important.</p><p>A single successful execution proves that one particular case worked.</p><p>It does not establish that the same approach will work for every possible input.</p><h3>12. A Practical Architecture for Reusable CAD Modeling</h3><p>Combining strategy discovery, structured specifications, execution, and verification gives us a more complete architecture.</p><pre>User Request<br>                  |<br>                  v<br>          Requirement Analysis<br>                  |<br>                  v<br>           Identify Part Type<br>                  |<br>                  v<br>          Strategy Discovery<br>                  |<br>                  v<br>         Select Suitable Strategy<br>                  |<br>                  v<br>          Build DesignSpec<br>                  |<br>                  v<br>         Validate Specification<br>                  |<br>                  v<br>           Execute CAD Plan<br>                  |<br>                  v<br>           SolidWorks Backend<br>                  |<br>                  v<br>           Inspect Model State<br>                  |<br>                  v<br>          Verify Requirements<br>                  |<br>             +----+----+<br>             |         |<br>             v         v<br>           Pass     Discrepancy<br>             |         |<br>             v         v<br>          Deliver   Diagnose<br>                       |<br>                       v<br>                 Controlled Fix<br>                       |<br>                       v<br>                    Re-check</pre><p>Each layer has a specific responsibility.</p><p>The AI agent interprets the user’s request and selects a suitable approach.</p><p>The strategy catalog provides reusable modeling patterns.</p><p>DesignSpec represents the intended design and feature dependencies.</p><p>The execution layer processes the supported specification.</p><p>SolidWorks creates the actual geometry.</p><p>Inspection and verification tools examine the resulting document.</p><p>This architecture reduces the amount of ad hoc reasoning required for recurring tasks while keeping the actual CAD model observable.</p><p>It also provides clearer boundaries for diagnosing failures.</p><h3>13. What Is Available Today, and What Comes Next?</h3><p>The current cadmcp implementation provides several building blocks:</p><p><strong>Available today:</strong></p><ul><li>A part-type strategy catalog covering plate, box, fillet-pattern, and surface-thickening patterns.</li><li>list_part_strategies for discovering catalog entries.</li><li>DesignSpec validation and execution.</li><li>Dependency-aware feature ordering.</li><li>Parameter-reference substitution.</li><li>Replayable CAD recipes with per-step assertions.</li><li>Real SolidWorks operations for creating and inspecting geometry.</li><li>Modeling guidance and recovery instructions for common execution problems.</li></ul><p>These capabilities provide a practical starting point for reusable CAD workflows.</p><p>However, there are several areas where a more comprehensive strategy system could evolve.</p><h3>More complete strategy contracts</h3><p>Each strategy could eventually define its required inputs, optional parameters, supported ranges, preconditions, expected outputs, and failure conditions in a standardized format.</p><h3>Better strategy selection</h3><p>An AI agent could compare the user’s request against the strategy catalog and explain why a particular strategy is suitable.</p><h3>Strategy composition</h3><p>Complex components often require multiple modeling patterns.</p><p>A plate may contain a patterned feature. A housing may combine a box-like base with ribs and surface operations.</p><p>A future strategy system could support composing smaller strategies into larger workflows.</p><h3>Broader test coverage</h3><p>Strategies could be evaluated across parameter ranges, geometry variations, and known failure cases.</p><h3>Engineering knowledge integration</h3><p>A more advanced system could connect modeling strategies with material information, manufacturing constraints, and engineering standards.</p><p>These are possible development directions, not claims that the current strategy catalog already provides all these capabilities.</p><p>The goal should be to grow the catalog carefully, based on reusable patterns that can be tested and maintained.</p><h3>Conclusion: Reuse Modeling Knowledge, Not Just CAD Commands</h3><p>The value of reusable CAD modeling strategies goes beyond reducing the number of commands an AI agent needs to generate.</p><p>They provide a way to organize recurring modeling knowledge.</p><p>Instead of approaching every CAD request as an entirely new problem, an AI agent can identify familiar patterns, inspect available strategies, reuse known workflows, and adapt them to new parameters.</p><p>DesignSpec helps provide structure for feature dependencies and parameter references.</p><p>Replayable recipes help reproduce known operation sequences.</p><p>Model inspection and execution guardrails help determine whether the resulting geometry is actually correct.</p><p>Together, these capabilities point toward a more systematic approach to AI-driven CAD.</p><p>The transition is:</p><p><strong>From generating CAD operations to reusing modeling patterns.</strong></p><p><strong>From repeating workflows to parameter-driven execution.</strong></p><p>And ultimately:</p><p><strong>From isolated AI modeling tasks to reusable engineering workflows.</strong></p><p>That is how an AI agent can become more consistent at working with real CAD systems.</p><p><strong>Project:</strong> cadmcp — Open-source MCP server for SolidWorks<br><strong>GitHub:</strong> <a href="https://github.com/pakupaku5260/cad-mcp">https://github.com/pakupaku5260/cad-mcp</a><br><strong>Website:</strong> <a href="https://cad.npanic.com/">https://cad.npanic.com/</a><br><strong>Getting Started:</strong> <a href="https://cad.npanic.com/getting-started/">https://cad.npanic.com/getting-started/</a><br><strong>Tool Reference:</strong> <a href="https://cad.npanic.com/tools/">https://cad.npanic.com/tools/</a><br><strong>Architecture:</strong> <a href="https://cad.npanic.com/architecture/">https://cad.npanic.com/architecture/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57a015d4cbc0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DESIGNSPEC]]></title>
            <link>https://medium.com/@shiyang19822000/designspec-d72c0b148fa8?source=rss-829569ad8b59------2</link>
            <guid isPermaLink="false">https://medium.com/p/d72c0b148fa8</guid>
            <category><![CDATA[mechanical-engineering]]></category>
            <category><![CDATA[solidworks]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[cad]]></category>
            <dc:creator><![CDATA[David Shi]]></dc:creator>
            <pubDate>Tue, 01 Dec 2026 02:14:56 GMT</pubDate>
            <atom:updated>2026-12-01T02:14:56.785Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>DesignSpec: Making AI-Generated CAD More Deterministic</strong></h3><p><em>How Structured Design Specifications Help AI Agents Build Parametric Models in SolidWorks</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ToBFp4w2dNWERhgvApVvQg.jpeg" /></figure><h3>1. Why We Need More Than a Good Prompt</h3><p>One of the most common ways to use AI for CAD automation is to describe a part in natural language and ask an AI agent to create it.</p><p>For example:</p><p>“Create a 100 × 50 × 10 mm mounting plate with four Ø6 through-holes, positioned symmetrically near the corners.”</p><p>The AI interprets the request, selects SolidWorks operations, and executes them through MCP.</p><p>For a relatively simple part, this approach can work well.</p><p>But as the design becomes more complex, the process becomes harder to control.</p><p>Consider a mechanical component containing:</p><ul><li>Multiple sketches and features.</li><li>Shared dimensions and parameters.</li><li>Dependencies between features.</li><li>Repeated geometric structures.</li><li>Configurations and design variants.</li><li>Features that must be created in a specific order.</li></ul><p>If the AI generates every CAD operation independently, the execution plan can become difficult to inspect and maintain.</p><p>A feature may reference geometry that does not exist yet. A dimension may be repeated in multiple places. A change to one parameter may not propagate consistently. The same natural-language request may also lead to different modeling strategies.</p><p>The problem is not necessarily the intelligence of the model.</p><p>The problem is that natural language is not an ideal execution format for a parametric CAD system.</p><p>This is why I believe an intermediate representation is important.</p><p>In cadmcp, this direction is explored through <strong>DesignSpec</strong>.</p><h3>2. Separate What to Build from How to Build It</h3><p>A useful CAD automation architecture should distinguish between two questions:</p><p><strong>What should the model contain?</strong></p><p>This is the design intent: dimensions, features, relationships, parameters, and expected components.</p><p><strong>How should the model be created?</strong></p><p>This is the modeling strategy: sketches, extrusions, cuts, patterns, fillets, and other SolidWorks operations.</p><p>These two questions are closely related, but they should not be treated as the same thing.</p><p>For example, a mounting plate can be created using several different feature sequences.</p><p>One strategy may create the base plate first and then add four individual holes.</p><p>Another may create one hole and use a pattern.</p><p>Both approaches can produce the same intended geometry.</p><p>If the design specification is tightly coupled to one particular sequence of CAD commands, changing the modeling strategy becomes unnecessarily difficult.</p><p>A structured specification provides a cleaner boundary:</p><ul><li>The design intent describes the expected result.</li><li>The execution plan describes the operations.</li><li>The CAD backend performs those operations.</li></ul><p>This separation makes the workflow easier to reason about and gives the execution layer more responsibility for handling predictable operations.</p><h3>3. What Is DesignSpec?</h3><p>DesignSpec is cadmcp’s declarative representation for describing part, assembly, and drawing intent.</p><p>Instead of requiring the AI agent to construct an arbitrary sequence of low-level CAD calls every time, DesignSpec provides a structured way to express a design.</p><p>The current implementation includes three tools:</p><p>ToolResponsibilitydesign_spec_validateValidate a DesignSpec JSON filedesign_runExecute a DesignSpeclist_part_strategiesList available part-type modeling strategies</p><p>The distinction between validation and execution is important.</p><p>design_spec_validate is read-only. It checks a DesignSpec file against schema version 1 without creating or modifying SolidWorks geometry.</p><p>design_run is a mutating operation. It executes the specification and creates or modifies CAD content through the supported modeling operations.</p><p>list_part_strategies exposes the available strategy catalog for selected part types.</p><p>Together, these tools provide a structured path from design specification to CAD execution.</p><p>DesignSpec is not intended to replace the AI agent’s ability to understand engineering requirements. It provides a more controlled representation for the next stage of the workflow.</p><h3>4. From Natural Language to a Structured Specification</h3><p>Let’s return to the mounting plate example.</p><p>The original request contains several pieces of information:</p><ul><li>Plate length: 100 mm.</li><li>Plate width: 50 mm.</li><li>Plate thickness: 10 mm.</li><li>Hole count: 4.</li><li>Hole diameter: 6 mm.</li><li>Hole termination: through-all.</li><li>Hole arrangement: symmetrical.</li></ul><p>An AI agent first needs to interpret these requirements.</p><p>Some information is explicit. Other information may need clarification.</p><p>For example, “near the corners” does not define exact hole-center coordinates.</p><p>The agent should not silently invent engineering intent when the missing information materially affects the design.</p><p>If the user confirms a 10 mm edge offset, the hole centers can be derived:</p><p>HoleXY110 mm10 mm290 mm10 mm310 mm40 mm490 mm40 mm</p><p>The resulting design intent is now much more precise.</p><p>A structured specification can represent the dimensions, hole properties, and relationships independently of the exact SolidWorks operation sequence.</p><p>The following is a conceptual representation of the information, not a copy-and-paste DesignSpec schema:</p><pre>Design: Mounting Plate</pre><pre>Parameters:<br>  length: 100 mm<br>  width: 50 mm<br>  thickness: 10 mm<br>  hole_diameter: 6 mm<br>  edge_offset: 10 mm</pre><pre>Features:<br>  base_plate:<br>    type: extruded_plate</pre><pre>  mounting_holes:<br>    type: through_holes<br>    count: 4<br>    diameter: hole_diameter<br>    positions:<br>      - (edge_offset, edge_offset)<br>      - (length - edge_offset, edge_offset)<br>      - (edge_offset, width - edge_offset)<br>      - (length - edge_offset, width - edge_offset)</pre><pre>Dependencies:<br>  mounting_holes -&gt; base_plate</pre><p>The advantage is not the particular syntax.</p><p>The advantage is that the specification makes the relationships explicit.</p><p>The execution layer no longer needs to infer every relationship from a long natural-language description.</p><h3>5. Why Feature Dependencies Matter</h3><p>Parametric CAD is not simply a list of independent operations.</p><p>Features depend on other features.</p><p>A typical part may have a dependency structure like this:</p><pre>Base Sketch<br>    |<br>    v<br>Base Extrusion<br>    |<br>    +----------+<br>    |          |<br>    v          v<br>Hole Sketch  Edge Fillet<br>    |<br>    v<br>Hole Cut<br>    |<br>    v<br>Final Part</pre><p>Some features can be created independently after the base extrusion.</p><p>Others must wait until their references exist.</p><p>If the AI agent produces an invalid execution order, SolidWorks may reject the operation or create an unintended result.</p><p>DesignSpec addresses this problem through dependency-aware execution.</p><p>The current design_run implementation topologically sorts features using their depends_on relationships.</p><p>Features within the same dependency layer retain stable ordering.</p><p>This provides two useful properties:</p><ol><li>A feature is scheduled after its declared prerequisites.</li><li>Independent features can retain a predictable relative order.</li></ol><p>The execution order is therefore derived from the dependency structure rather than relying entirely on the order in which the AI happened to write the specification.</p><p>This is one of the most practical reasons to use a declarative representation.</p><p>The AI describes relationships. The execution layer resolves the order.</p><p>Of course, this depends on the specification accurately declaring the required dependencies. A missing or incorrect dependency cannot be fixed by sorting alone.</p><h3>6. Parameter References Reduce Repetition</h3><p>Another important problem in AI-generated CAD is duplicated values.</p><p>Imagine a storage tank assembly with:</p><ul><li>A cylindrical shell.</li><li>Two hemispherical heads.</li><li>Support saddles.</li><li>A top platform.</li><li>Additional connected components.</li></ul><p>The shell diameter may influence several other dimensions.</p><p>If the diameter appears independently in multiple operations, changing it later becomes risky.</p><p>One operation might use the new value while another retains the old value.</p><p>This is exactly the kind of inconsistency that parameterization is designed to avoid.</p><p>DesignSpec supports parameter substitution through its parameter-reference mechanism.</p><p>Instead of repeating a numeric value throughout the specification, a feature can refer to a defined parameter.</p><p>Conceptually:</p><pre>Parameters:<br>  tank_diameter = 2000 mm<br>  wall_thickness = 8 mm</pre><pre>Derived dimensions:<br>  shell_radius = tank_diameter / 2<br>  inner_radius = shell_radius - wall_thickness</pre><pre>Features:<br>  shell:<br>    outer_radius = shell_radius<br>    thickness = wall_thickness</pre><pre>  support_saddle:<br>    matching_radius = shell_radius</pre><p>This example illustrates the modeling concept; it is not a claim that the current DesignSpec engine evaluates arbitrary mathematical expressions in this exact syntax.</p><p>The documented executor supports parameter substitution using its $param reference form.</p><p>That provides a structured way to reuse defined parameter values in supported feature inputs.</p><p>It is important to distinguish parameter substitution from a complete parametric expression engine.</p><p>A reference mechanism can reduce duplicated values, but it does not automatically establish every possible geometric relationship or guarantee that the resulting model remains valid after arbitrary changes.</p><p>The underlying SolidWorks model still needs appropriate dimensions, equations, and feature relationships.</p><h3>7. Validation Before Execution</h3><p>A structured specification is only useful if it can be checked before it changes the CAD document.</p><p>This is the responsibility of design_spec_validate.</p><p>The tool validates a DesignSpec JSON file against schema version 1.</p><p>Because it is read-only, it can be used as a preflight step before execution.</p><p>A practical workflow is:</p><ol><li>Generate the specification.</li><li>Save it inside the cadmcp workspace.</li><li>Run design_spec_validate.</li><li>Review any validation errors.</li><li>Correct the specification.</li><li>Execute it using design_run.</li></ol><p>This separation is valuable because a malformed specification should be detected before the system begins creating geometry.</p><p>It also makes debugging easier.</p><p>If a specification fails validation, the problem is in the input structure.</p><p>If validation succeeds but SolidWorks execution fails, the problem may instead involve unsupported operations, invalid geometry, missing references, or backend behavior.</p><p>These are different failure categories and should be diagnosed differently.</p><p>There is also an important limitation:</p><p><strong>Schema validation does not prove engineering correctness.</strong></p><p>A specification can be structurally valid while describing an impossible or inappropriate design.</p><p>Validation establishes that the input conforms to the expected structure. It does not certify the design.</p><h3>8. Modeling Strategies: Reuse Instead of Rebuilding Every Plan</h3><p>Not every part needs to be designed from the ground up.</p><p>Many mechanical components share recognizable modeling patterns.</p><p>For example:</p><ul><li>Plates.</li><li>Boxes</li><li>Fillet patterns.</li><li>Surface-thickening operations.</li></ul><p>These are among the part types represented in the current cadmcp strategy catalog.</p><p>The list_part_strategies tool allows the AI agent to inspect available strategies for supported part types.</p><p>This introduces another useful separation:</p><p>The AI agent does not need to invent every modeling sequence independently.</p><p>It can first discover whether a suitable strategy already exists.</p><p>A reusable strategy can provide a more consistent execution approach for a known class of geometry.</p><p>For example, a plate strategy can be preferable to generating a completely new sequence of low-level operations for every rectangular plate request.</p><p>However, a strategy catalog is not the same as a general-purpose mechanical design knowledge base.</p><p>The current catalog covers selected modeling patterns. It does not contain every possible mechanical component, standard part, or engineering design rule.</p><p>Its value is in making supported modeling approaches reusable and discoverable.</p><h3>9. Executing a DesignSpec</h3><p>Once the specification passes validation, the AI agent can execute it through design_run.</p><p>The current tool supports several execution controls:</p><ul><li>stop_on_error</li><li>resume_from</li><li>variant</li></ul><p>These controls are important because execution is not always a simple all-or-nothing operation.</p><p>A complex specification may contain multiple dependent features.</p><p>If one operation fails, the system needs a defined way to handle the remaining work.</p><p>stop_on_error controls whether execution stops when an error occurs.</p><p>resume_from provides a way to resume execution from a specified point.</p><p>variant allows execution to select a specification variant.</p><p>These controls help make execution more manageable, but they should not be interpreted as a complete transactional guarantee.</p><p>For example, resuming an execution does not automatically mean every previous operation is safe to repeat or that all partially created geometry has been restored to a known state.</p><p>The execution strategy and the state of the active SolidWorks document still matter.</p><p>For production workflows, execution recovery should be combined with appropriate inspection and transaction controls.</p><h3>10. DesignSpec Is Not the Same as a One-Shot Recipe</h3><p>It is useful to distinguish DesignSpec from another capability in cadmcp: replay_recipe.</p><p>A recipe is an ordered sequence of registered tool calls with per-step assertions.</p><p>It is useful when we want to reproduce a known operation sequence.</p><p>DesignSpec provides a more declarative representation with feature dependencies, parameter references, and supported strategy execution.</p><p>The distinction can be summarized as follows:</p><p>AspectReplay RecipeDesignSpecPrimary purposeReplay a known sequenceExecute a structured designOperation orderExplicit sequenceDependency-aware orderingParametersValues in tool callsParameter referencesAssertionsPer-step assertionsSchema validation and execution controlsBest suited forReproducible operation sequencesStructured design intent</p><p>These approaches are complementary.</p><p>A recipe is useful when the sequence itself is the artifact we want to reproduce.</p><p>A DesignSpec is useful when the specification and its feature relationships are the more important representation.</p><p>Neither approach removes the need to inspect the resulting SolidWorks model.</p><h3>11. What DesignSpec Does Not Solve</h3><p>It is important not to overstate what a declarative design specification can achieve.</p><p>DesignSpec improves the structure of CAD execution, but it does not solve every challenge in AI-driven mechanical design.</p><p>Several problems remain.</p><h3>Engineering ambiguity</h3><p>Natural-language requirements may omit important dimensions, relationships, materials, or operating conditions.</p><p>A structured specification cannot recover information that was never provided.</p><p>The AI agent must identify uncertainty and request clarification when necessary.</p><h3>Geometric feasibility</h3><p>A structurally valid specification can still describe geometry that SolidWorks cannot create.</p><p>For example, a feature may have an invalid profile, an impossible cut depth, or a geometric reference that does not exist.</p><p>These problems may only become apparent during CAD execution.</p><h3>Engineering correctness</h3><p>A model can be successfully created without being mechanically suitable.</p><p>DesignSpec does not replace strength calculations, tolerance analysis, material selection, or engineering standards.</p><h3>Full parametric intelligence</h3><p>Parameter substitution is useful, but it is not equivalent to a complete constraint solver or a general-purpose engineering equation system.</p><h3>Verification and recovery</h3><p>A successful execution does not prove that all design requirements were satisfied.</p><p>The resulting model still needs to be inspected, verified, and reviewed.</p><p>This is why DesignSpec should be understood as an execution-structure mechanism rather than a complete autonomous design engine.</p><h3>12. How DesignSpec Fits into the Larger cadmcp Architecture</h3><p>DesignSpec becomes more useful when viewed as one layer in a broader workflow.</p><p>A practical architecture looks like this:</p><pre>User Request<br>               |<br>               v<br>        AI Requirement Analysis<br>               |<br>               v<br>        Structured Design Intent<br>               |<br>               v<br>        DesignSpec Generation<br>               |<br>               v<br>        design_spec_validate<br>               |<br>               v<br>           design_run<br>               |<br>               v<br>        SolidWorks Operations<br>               |<br>               v<br>         Model Inspection<br>               |<br>               v<br>        Requirement Checks<br>               |<br>          +----+----+<br>          |         |<br>          v         v<br>        Pass      Failure<br>          |         |<br>          v         v<br>       Deliver   Diagnose<br>                    |<br>                    v<br>              Controlled Fix<br>                    |<br>                    v<br>                Re-check</pre><p>Each layer has a clear responsibility.</p><p>The AI agent interprets the user’s request and prepares the specification.</p><p>DesignSpec provides a structured representation.</p><p>The execution layer resolves supported dependencies and parameter references.</p><p>SolidWorks creates the actual geometry.</p><p>Inspection and verification tools examine the resulting document.</p><p>This architecture makes it easier to identify where a problem occurred.</p><p>Was the original requirement misunderstood?</p><p>Was the specification invalid?</p><p>Was the dependency structure incomplete?</p><p>Did a SolidWorks operation fail?</p><p>Did the resulting model fail a verification check?</p><p>Without these boundaries, all of these failures can appear to be simply “the AI generated the wrong model.”</p><h3>13. The Next Step: From Structured Execution to Traceable Design</h3><p>DesignSpec is an important step toward more predictable AI-driven CAD.</p><p>But there is a further opportunity.</p><p>Imagine a system in which every engineering requirement has a traceable relationship to:</p><ul><li>A parameter or feature in the specification.</li><li>One or more SolidWorks operations.</li><li>An observable property of the resulting model.</li><li>A verification result.</li></ul><p>For example:</p><p>RequirementSpecificationCAD evidencePlate length = 100 mmLength parameterMeasured bounding boxPlate thickness = 10 mmThickness parameterFeature dimensionFour mounting holesHole feature definitionGeometry inspectionØ6 hole diameterHole parameterCylindrical face measurement</p><p>This would make it possible to explain not only how a model was created, but also why the resulting geometry is believed to satisfy each requirement.</p><p>This kind of requirement traceability is a further architectural direction, not a claim that the current DesignSpec implementation already provides a complete requirement-to-evidence tracking system.</p><p>It is where structured design execution and automated verification can eventually meet.</p><h3>Conclusion</h3><p>AI-driven CAD needs more than the ability to translate natural language into SolidWorks commands.</p><p>It needs a structured way to represent design intent, manage feature dependencies, reuse parameters, and execute modeling operations consistently.</p><p>DesignSpec provides one building block for that approach.</p><p>By separating design intent from execution details, using dependency-aware feature ordering, and supporting parameter references, cadmcp moves toward a more structured form of AI-assisted CAD automation.</p><p>It does not eliminate engineering ambiguity, guarantee geometric success, or replace model verification.</p><p>But it creates a better foundation for building workflows that are easier to inspect, reproduce, and improve.</p><p>The key transition is:</p><p><strong>From AI-generated commands to structured design specifications.</strong></p><p>And ultimately:</p><p><strong>From prompt-driven CAD automation to more predictable, inspectable engineering workflows.</strong></p><p><strong>Project:</strong> cadmcp — Open-source MCP server for SolidWorks<br><strong>GitHub:</strong> <a href="https://github.com/pakupaku5260/cad-mcp">https://github.com/pakupaku5260/cad-mcp</a><br><strong>Website:</strong> <a href="https://cad.npanic.com/">https://cad.npanic.com/</a><br><strong>Getting Started:</strong> <a href="https://cad.npanic.com/getting-started/">https://cad.npanic.com/getting-started/</a><br><strong>Tool Reference:</strong> <a href="https://cad.npanic.com/tools/">https://cad.npanic.com/tools/</a><br><strong>Architecture:</strong> <a href="https://cad.npanic.com/architecture/">https://cad.npanic.com/architecture/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d72c0b148fa8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[FROM DESIGN INTENT TO VERIFIABLE CAD]]></title>
            <link>https://medium.com/@shiyang19822000/from-design-intent-to-verifiable-cad-33b55ed547a9?source=rss-829569ad8b59------2</link>
            <guid isPermaLink="false">https://medium.com/p/33b55ed547a9</guid>
            <category><![CDATA[solidworks]]></category>
            <category><![CDATA[cad]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[mechanical-engineering]]></category>
            <dc:creator><![CDATA[David Shi]]></dc:creator>
            <pubDate>Mon, 30 Nov 2026 03:11:33 GMT</pubDate>
            <atom:updated>2026-11-30T03:11:33.722Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>From Design Intent to Verifiable CAD: Closing the Loop Between Requirements and Geometry</strong></h3><p><em>How AI Agents Can Translate Engineering Requirements into Observable, Checkable SolidWorks Models</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ToBFp4w2dNWERhgvApVvQg.jpeg" /></figure><h3>1. The Real Challenge Is Not Creating Geometry</h3><p>Imagine asking an AI agent to create a mechanical component.</p><p>You describe its dimensions, material, hole positions, structural relationships, and intended function. The agent interprets the request, calls SolidWorks through MCP, and eventually produces a 3D model.</p><p>The model looks right.</p><p>But is it actually what you asked for?</p><p>Does it have the correct dimensions? Are the holes in the right positions? Are the required features present? Can the model be modified without rebuilding everything? Does the assembly satisfy the intended relationships?</p><p>And perhaps most importantly: can the AI agent demonstrate that the result meets the original requirements?</p><p>This is where AI-driven CAD becomes much more interesting.</p><p>The difficult part is not simply translating natural language into geometry. It is preserving the original engineering intent throughout the entire modeling process.</p><p>A reliable workflow needs to connect three things:</p><ul><li>What the user requested.</li><li>What the CAD system actually created.</li><li>What can be measured and verified.</li></ul><p>Without that connection, AI-driven CAD remains largely a command-generation process.</p><p>With it, we can begin to build a more systematic engineering workflow.</p><h3>2. Design Intent Is More Than a Collection of Dimensions</h3><p>A natural-language request often contains several different types of information.</p><p>Consider this example:</p><p>“Create a mechanical mounting plate, 100 mm long, 50 mm wide, and 10 mm thick, with four Ø6 through-holes positioned symmetrically near the corners.”</p><p>At first glance, this looks like a straightforward modeling task.</p><p>But the request contains multiple requirements:</p><p>RequirementEngineering meaningLength = 100 mmOverall dimensional constraintWidth = 50 mmOverall dimensional constraintThickness = 10 mmExtrusion or plate thicknessFour holesFeature countHole diameter = 6 mmHole geometryThrough-allHole termination conditionSymmetrical positionsGeometric relationship</p><p>These requirements are not interchangeable.</p><p>A model could have the correct overall dimensions but only three holes. It could contain four holes with the wrong diameter. It could have four correct holes but place them asymmetrically.</p><p>If an AI agent treats the entire request as one broad modeling instruction, it becomes difficult to determine exactly which requirements have been satisfied.</p><p>The first step should therefore be to separate design intent into explicit, independently understandable requirements.</p><p>This is the foundation of a requirement-driven CAD workflow.</p><h3>3. Convert Natural Language into Structured Design Intent</h3><p>Before executing CAD operations, an AI agent needs an intermediate representation of the design.</p><p>This representation should be more structured than the original prompt, but it should remain independent of the specific SolidWorks operations used to build the model.</p><p>For example, the mounting plate could be represented conceptually as follows:</p><pre>{<br>  &quot;design&quot;: {<br>    &quot;type&quot;: &quot;mounting_plate&quot;,<br>    &quot;units&quot;: &quot;mm&quot;<br>  },<br>  &quot;requirements&quot;: [<br>    {<br>      &quot;id&quot;: &quot;GEO-001&quot;,<br>      &quot;property&quot;: &quot;length&quot;,<br>      &quot;target&quot;: &quot;plate&quot;,<br>      &quot;value&quot;: 100<br>    },<br>    {<br>      &quot;id&quot;: &quot;GEO-002&quot;,<br>      &quot;property&quot;: &quot;width&quot;,<br>      &quot;target&quot;: &quot;plate&quot;,<br>      &quot;value&quot;: 50<br>    },<br>    {<br>      &quot;id&quot;: &quot;GEO-003&quot;,<br>      &quot;property&quot;: &quot;thickness&quot;,<br>      &quot;target&quot;: &quot;plate&quot;,<br>      &quot;value&quot;: 10<br>    },<br>    {<br>      &quot;id&quot;: &quot;HOLE-001&quot;,<br>      &quot;property&quot;: &quot;count&quot;,<br>      &quot;target&quot;: &quot;through_holes&quot;,<br>      &quot;value&quot;: 4<br>    },<br>    {<br>      &quot;id&quot;: &quot;HOLE-002&quot;,<br>      &quot;property&quot;: &quot;diameter&quot;,<br>      &quot;target&quot;: &quot;through_holes&quot;,<br>      &quot;value&quot;: 6<br>    },<br>    {<br>      &quot;id&quot;: &quot;HOLE-003&quot;,<br>      &quot;property&quot;: &quot;termination&quot;,<br>      &quot;target&quot;: &quot;through_holes&quot;,<br>      &quot;value&quot;: &quot;through_all&quot;<br>    }<br>  ]<br>}</pre><p>This is an illustrative requirement representation, not a claim that cadmcp currently accepts this exact JSON schema.</p><p>The important idea is the separation of concerns.</p><p>The original request describes what the user wants.</p><p>The structured representation defines what must be achieved.</p><p>The CAD execution plan determines how to achieve it.</p><p>The verification process determines whether the result satisfies the requirements.</p><p>This separation makes the workflow easier to inspect, debug, and extend.</p><p>It also reduces the risk of an AI agent silently changing the meaning of the original request while translating it into CAD operations.</p><h3>4. Separate Design Requirements from Modeling Strategy</h3><p>One of the most important architectural decisions is to avoid mixing design intent with implementation details.</p><p>Suppose the requirement is:</p><p>“Create a 100 × 50 × 10 mm mounting plate with four Ø6 through-holes.”</p><p>There are several possible modeling strategies:</p><ul><li>Create a rectangular sketch and extrude it.</li><li>Create a base feature and apply Hole Wizard operations.</li><li>Create a base feature and use patterned cuts.</li><li>Reuse an existing parametric template.</li></ul><p>All of these may produce the same final geometry.</p><p>The engineering requirement should not depend on which strategy the AI chooses.</p><p>This leads to a useful architectural separation:</p><p><strong>Design Intent Layer</strong></p><p>Defines dimensions, geometric relationships, components, and expected results.</p><p><strong>Planning Layer</strong></p><p>Selects an appropriate modeling strategy and determines feature dependencies.</p><p><strong>Execution Layer</strong></p><p>Translates the plan into actual SolidWorks operations.</p><p><strong>Verification Layer</strong></p><p>Inspects the resulting model and evaluates whether the requirements are satisfied.</p><p>This separation is important because modeling strategies can evolve without changing the underlying requirements.</p><p>For example, a future version of an AI agent might choose a more efficient feature sequence. As long as the resulting model satisfies the same requirements, the design intent remains unchanged.</p><h3>5. From Structured Intent to Real SolidWorks Operations</h3><p>Once the design intent has been organized, the AI agent needs to translate it into a sequence of CAD operations.</p><p>This is where cadmcp connects the AI agent to SolidWorks.</p><p>For the mounting plate example, a real modeling sequence documented in the cadmcp repository includes:</p><ol><li>new_part</li><li>start_sketc</li><li>sketch_rectangle</li><li>end_sketch</li><li>extrude</li><li>hole_wizard for each hole</li><li>get_mass_properties</li></ol><p>The operations create actual SolidWorks geometry rather than returning a textual description of a model.</p><p>The repository’s Quickstart example reports a volume of approximately 48,869 mm³ after creating the plate and its four Ø6 through-holes.</p><p>The expected volume is:</p><p>[<br>V = 100 \times 50 \times 10</p><ul><li>4 \times \pi \times 3² \times 10<br>]</li></ul><p>[<br>V \approx 48,869.0\text{ mm}³<br>]</p><p>The reported value is consistent with the requested geometry.</p><p>This is a useful example of connecting a design requirement to a measurable result.</p><p>However, the modeling sequence itself is not the final proof.</p><p>The agent still needs to inspect the actual dimensions, feature structure, and hole positions.</p><p>That is the next part of the workflow.</p><h3>6. Observe the Actual CAD State</h3><p>An AI agent cannot reliably verify a model if it only remembers the commands it issued.</p><p>It needs to query SolidWorks and inspect the resulting document.</p><p>This is a fundamental difference between command execution and closed-loop CAD automation.</p><p>With cadmcp, the agent can inspect different aspects of the active document using tools such as:</p><ul><li>get_geometry</li><li>get_mass_properties</li><li>get_entities</li><li>get_faces</li><li>get_edges</li><li>list_features</li><li>list_dimensions</li><li>part_parameters</li></ul><p>Each tool provides a different perspective.</p><p>For example:</p><p>InformationWhat it helps establishBounding boxOverall model dimensionsVolumeGeometric consistencyFace and edge countsGeometry fingerprintFeature treeConstruction historyDimensionsParametric valuesFace and edge dataGeometric references and positionsMass propertiesVolume, mass, and center of mass</p><p>These observations can be compared with the structured design intent.</p><p>The important principle is simple:</p><p><strong>Verification must be based on the actual CAD document, not on the AI agent’s assumptions about what it created.</strong></p><h3>7. Connect Requirements to Verification Evidence</h3><p>This is where the architecture becomes particularly valuable.</p><p>Each requirement should have a corresponding verification method whenever it can be measured or checked automatically.</p><p>For example:</p><p>RequirementPossible verification evidencePlate length = 100 mmBounding box or model dimensionsPlate width = 50 mmBounding box or model dimensionsThickness = 10 mmBounding box or feature dimensionsFour holesFeature inspection and geometric queriesHole diameter = 6 mmCylindrical face measurementsSymmetrical positionsHole center coordinates and positional comparisonThrough-all holesFeature definition and resulting geometry</p><p>Not all requirements can be verified using the same method.</p><p>A bounding box can establish the overall dimensions, but it cannot prove that the holes are correctly positioned.</p><p>A volume check can detect some geometric discrepancies, but different geometries can have the same volume.</p><p>A feature tree can show that a hole feature exists, but it does not necessarily prove that the resulting hole geometry is correct.</p><p>Therefore, a robust verification strategy should use multiple independent observations where appropriate.</p><p>This also suggests a useful concept: verification evidence should be associated with the requirement it supports.</p><p>Instead of returning only:</p><p>“Model verification passed.”</p><p>The agent should eventually be able to report something more informative:</p><ul><li>GEO-001: Passed — measured length matches 100 mm.</li><li>GEO-002: Passed — measured width matches 50 mm.</li><li>GEO-003: Passed — measured thickness matches 10 mm.</li><li>HOLE-001: Passed — four holes detected.</li><li>HOLE-002: Passed — measured diameter matches 6 mm.</li><li>HOLE-003: Not fully verified — termination condition requires additional inspection.</li></ul><p>This example illustrates a proposed reporting model, not an existing cadmcp requirement-traceability feature.</p><p>The distinction matters: a useful verification result should explain what was checked and what evidence supports the conclusion.</p><h3>8. Verification Is Not Limited to Individual Parts</h3><p>The same principle applies to assemblies.</p><p>A mechanical assembly introduces requirements that do not exist at the individual-part level.</p><p>For example:</p><ul><li>Three support frames must be present.</li><li>A shaft must be concentric with its bearing.</li><li>Two components must maintain a specified distance.</li><li>A platform must be positioned at a defined height.</li><li>Components must not have unexpected interference.</li></ul><p>cadmcp provides assembly inspection and operation tools such as:</p><ul><li>list_components</li><li>list_mates</li><li>get_component</li><li>check_assembly_dof</li><li>check_interference</li></ul><p>These capabilities help an AI agent inspect component presence, placement, mate information, estimated degrees of freedom, and interference.</p><p>The same requirement-to-evidence approach can be applied.</p><p>Assembly requirementPossible evidenceThree supportsComponent instance inspectionPlatform heightComponent origin or bounding boxConcentric shaft and bearingMate inspection and geometry referencesFixed component relationshipsMate inspectionNo unexpected interferenceInterference check</p><p>But automated results must be interpreted carefully.</p><p>For example, check_assembly_dof provides a heuristic estimate rather than a complete SolidWorks solver proof.</p><p>Likewise, an interference result does not automatically indicate a design error. Some mechanical connections intentionally contain overlapping geometry.</p><p>The goal is to make the assembly state observable and checkable, not to pretend every engineering decision can be reduced to a single automated result.</p><h3>9. DesignSpec: Moving Toward Declarative CAD Workflows</h3><p>A structured design representation becomes especially useful when it can be executed consistently.</p><p>This is one of the directions explored by cadmcp through its DesignSpec toolset.</p><p>The current repository includes:</p><ul><li>design_spec_validate</li><li>design_run</li><li>list_part_strategies</li></ul><p>DesignSpec provides a declarative representation of part, assembly, and drawing intent.</p><p>The validation tool checks a DesignSpec file against its schema.</p><p>The execution tool can process a specification, order dependent features using a topological sort, and substitute parameter references.</p><p>The strategy catalog provides reusable modeling approaches for selected part types.</p><p>This is an important step beyond generating an arbitrary sequence of CAD commands.</p><p>Instead of asking an AI agent to decide every low-level operation independently, a structured specification can describe the intended design and its dependencies.</p><p>The server can then handle supported execution details more consistently.</p><p>However, this should not be confused with a complete autonomous engineering-design system.</p><p>DesignSpec does not eliminate the need for the AI agent to interpret ambiguous requirements, select appropriate strategies, or evaluate engineering constraints.</p><p>Its current role is to provide a more structured path from design intent to CAD execution.</p><h3>10. Corrections Need to Be Controlled</h3><p>Verification will inevitably identify discrepancies.</p><p>The next question is: what should the AI agent do when a requirement fails?</p><p>A naive approach would be to immediately generate another set of modeling commands.</p><p>But modifying an existing parametric model can introduce new problems.</p><p>A change to one dimension may affect downstream features. Deleting a feature may invalidate references. Rebuilding an assembly may change component relationships.</p><p>A better approach is to make corrections controlled and observable.</p><p>A possible workflow is:</p><ol><li>Identify the failed requirement.</li><li>Determine which feature or component is responsible.</li><li>Inspect the relevant dimensions and references.</li><li>Select a correction strategy.</li><li>Execute the modification.</li><li>Rebuild and inspect the model again.</li><li>Repeat the relevant verification checks.</li></ol><p>cadmcp provides tools for modifying dimensions, equations, parameters, and features.</p><p>It also includes transaction tools:</p><ul><li>tx_begin</li><li>tx_status</li><li>tx_commit</li><li>tx_rollback</li></ul><p>These provide checkpoint and journal-based transaction workflows, with rollback options including compensation and checkpoint reload where supported.</p><p>This is an important foundation for safer automated modifications.</p><p>It does not mean every possible SolidWorks operation is automatically reversible. The transaction journal can report unsupported-step warnings, and recovery behavior depends on the operation and available checkpoint.</p><p>The architectural direction is nevertheless clear:</p><p><strong>An AI agent should not only be able to change a model. It should have a controlled way to manage and inspect the consequences of that change.</strong></p><h3>11. Engineering Drawings Are Another Expression of Design Intent</h3><p>Design intent does not stop at the 3D model.</p><p>Engineering drawings express important aspects of the same design in a form used for manufacturing, inspection, and communication.</p><p>For example, a requirement might specify:</p><ul><li>A particular hole diameter.</li><li>A positional tolerance.</li><li>A surface finish.</li><li>A weld symbol.</li><li>A title-block field.</li><li>A required drawing view.</li></ul><p>Some of these requirements can be checked structurally.</p><p>Others require engineering interpretation.</p><p>cadmcp provides DrawingSpec, drawing inspection, annotation, BOM, and drawing verification-related capabilities.</p><p>This creates an opportunity to extend the same requirement-driven approach from 3D geometry to technical documentation.</p><p>A future integrated workflow could connect:</p><ul><li>Model dimensions to drawing dimensions.</li><li>Assembly components to BOM entries.</li><li>Design properties to title-block fields.</li><li>Drawing requirements to inspection results.</li></ul><p>But a drawing that contains all the expected annotations is not necessarily a correct manufacturing drawing.</p><p>The choice of dimensions, tolerances, datum references, and manufacturing requirements still requires engineering judgment.</p><p>The important architectural idea is that drawings should be treated as part of the design deliverable, not as an unrelated final export step.</p><h3>12. What a Complete Requirement-Driven Workflow Could Look Like</h3><p>Putting these pieces together, we can describe a more complete architecture.</p><pre>Natural Language Request<br>          |<br>          v<br>Requirement Extraction<br>          |<br>          v<br>Structured Design Intent<br>          |<br>          v<br>Design Planning<br>          |<br>          v<br>CAD Execution Plan<br>          |<br>          v<br>SolidWorks Operations<br>          |<br>          v<br>Actual Model Inspection<br>          |<br>          v<br>Requirement Verification<br>          |<br>     +----+----+<br>     |         |<br>   Pass      Discrepancy<br>     |         |<br>     v         v<br> Deliver   Diagnose Issue<br>               |<br>               v<br>        Controlled Correction<br>               |<br>               v<br>        Rebuild and Inspect<br>               |<br>               +------&gt; Verification</pre><p>The key is that the verification stage is not an isolated final check.</p><p>It feeds information back into the modeling process.</p><p>The AI agent can use observed model state to decide whether a correction is necessary.</p><p>The result is a closed-loop workflow rather than a one-way conversion from text to geometry.</p><h3>13. What Exists Today, and What Still Needs to Be Built</h3><p>It is important to distinguish an architectural direction from implemented functionality.</p><p>The current cadmcp repository already provides several building blocks:</p><p><strong>Implemented capabilities include:</strong></p><ul><li>Structured DesignSpec validation and execution.</li><li>Parametric part modeling and model inspection.</li><li>Assembly component and mate inspection.</li><li>Machine-checkable model rules.</li><li>Read-only model verification.</li><li>Drawing creation and inspection.</li><li>STEP, STL, PDF, and DXF export.</li><li>Transaction checkpointing and rollback workflows.</li></ul><p>These capabilities make it possible to construct parts of a requirement-driven workflow today.</p><p>However, a fully integrated system that automatically converts arbitrary natural-language requirements into a traceable engineering specification, selects modeling strategies, executes the model, verifies every requirement, diagnoses all failures, and produces an engineering-approved deliverable is a much larger challenge.</p><p>In particular, several areas still deserve further development:</p><ol><li><strong>Requirement traceability:</strong> Maintain a persistent relationship between each user requirement and its verification evidence.</li><li><strong>Ambiguity management:</strong> Identify missing or conflicting engineering requirements before modeling.</li><li><strong>Verification coverage:</strong> Distinguish passed, failed, unverified, and inconclusive requirements.</li><li><strong>Correction planning:</strong> Connect failed checks to the responsible features and safe modification strategies.</li><li><strong>Engineering knowledge:</strong> Incorporate applicable standards, manufacturing constraints, and domain-specific calculations.</li><li><strong>Deliverable consistency:</strong> Connect 3D models, assemblies, drawings, and exported files through a common verification process.</li></ol><p>These are not simply additional CAD commands.</p><p>They represent the next layer of intelligence around CAD automation.</p><h3>Conclusion: From Generating Geometry to Preserving Engineering Intent</h3><p>The evolution of AI-driven CAD should not be measured only by how many modeling operations an AI agent can execute.</p><p>A more meaningful measure is how reliably it can preserve the user’s engineering intent throughout the entire process.</p><p>That requires more than a good prompt.</p><p>It requires structured requirements, explicit modeling strategies, access to the actual CAD state, measurable verification evidence, and controlled correction mechanisms.</p><p>With cadmcp, the goal is to connect AI agents to a real SolidWorks environment and provide the tools needed to move in this direction.</p><p>The transition we are working toward is:</p><p><strong>From natural language to geometry.</strong></p><p><strong>From geometry to observable model state.</strong></p><p><strong>From model state to verifiable requirements.</strong></p><p>And ultimately:</p><p><strong>From CAD automation to engineering workflows that can explain and demonstrate what they have created.</strong></p><p>That is the foundation on which more trustworthy AI-assisted mechanical design can be built.</p><p><strong>Project:</strong> cadmcp — Open-source MCP server for SolidWorks<br><strong>GitHub:</strong> <a href="https://github.com/pakupaku5260/cad-mcp">https://github.com/pakupaku5260/cad-mcp</a><br><strong>Website:</strong> <a href="https://cad.npanic.com/">https://cad.npanic.com/</a><br><strong>Getting Started:</strong> <a href="https://cad.npanic.com/getting-started/">https://cad.npanic.com/getting-started/</a><br><strong>Tool Reference:</strong> <a href="https://cad.npanic.com/tools/">https://cad.npanic.com/tools/</a><br><strong>Architecture:</strong> <a href="https://cad.npanic.com/architecture/">https://cad.npanic.com/architecture/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33b55ed547a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[VERIFY AI-GENERATED CAD]]></title>
            <link>https://medium.com/@shiyang19822000/verify-ai-generated-cad-b53679f222d0?source=rss-829569ad8b59------2</link>
            <guid isPermaLink="false">https://medium.com/p/b53679f222d0</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[cad]]></category>
            <category><![CDATA[solidworks]]></category>
            <category><![CDATA[mechanical-engineering]]></category>
            <dc:creator><![CDATA[David Shi]]></dc:creator>
            <pubDate>Fri, 27 Nov 2026 01:29:03 GMT</pubDate>
            <atom:updated>2026-11-27T01:29:03.515Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>How Do You Verify an AI-Generated CAD Model?</strong></h3><p><em>From Geometric Validation to Engineering Confidence with cadmcp</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8rXPK3JYIhqHuBWu05Qs1w.jpeg" /></figure><h3>1. Creating a Model Is Only the Beginning</h3><p>AI-driven CAD demonstrations often focus on the moment a 3D model appears on the screen.</p><p>A prompt is entered. An AI agent calls a sequence of CAD operations. A part or assembly takes shape in SolidWorks.</p><p>It looks impressive. But there is a more important question:</p><p><strong>How do we know that the model is actually correct?</strong></p><p>A successful modeling operation does not necessarily mean the intended geometry was created. A feature can be added with an incorrect dimension. A hole can be placed in the wrong location. Components can be inserted into an assembly without being positioned correctly. A drawing can contain views and annotations while still missing important engineering information.</p><p>In traditional CAD workflows, engineers inspect these results themselves.</p><p>For AI-driven CAD, however, relying entirely on visual inspection defeats much of the purpose of automation.</p><p>An AI agent needs a way to observe the actual CAD state, compare it with the intended result, identify discrepancies, and decide what should happen next.</p><p>This is why verification is a fundamental part of AI-assisted mechanical design.</p><p>With cadmcp, we are building this capability into the connection between AI agents and SolidWorks.</p><h3>2. The Difference Between Successful Execution and a Correct Model</h3><p>Consider a simple example.</p><p>Suppose we ask an AI agent to create a plate with the following specifications:</p><ul><li>Length: 100 mm</li><li>Width: 50 mm</li><li>Thickness: 10 mm</li><li>Four through-holes</li><li>Hole diameter: 6 mm</li></ul><p>The agent creates a sketch, extrudes it, and adds four holes.</p><p>SolidWorks reports that the operations completed successfully.</p><p>Is the part correct?</p><p>Not necessarily.</p><p>The plate might have the wrong thickness. One hole might be missing. The holes might have the wrong diameter. The geometry might not match the original design intent.</p><p>A successful API call only tells us that an operation was executed. It does not independently establish that the resulting model satisfies the requirement.</p><p>We need to distinguish three things:</p><ol><li><strong>Execution status:</strong> Did the CAD operation complete?</li><li><strong>Model state:</strong> What geometry and properties actually exist?</li><li><strong>Design correctness:</strong> Does the resulting model satisfy the intended requirements?</li></ol><p>These are related, but they are not interchangeable.</p><p>A reliable AI-CAD workflow must move beyond execution status and inspect the actual model state.</p><h3>3. Start with Measurable Geometry</h3><p>The first level of verification is geometric inspection.</p><p>Instead of asking an AI agent whether a model looks correct, we can ask SolidWorks for measurable information.</p><p>For example, cadmcp exposes tools such as:</p><ul><li>get_geometry</li><li>get_mass_properties</li><li>get_entities</li><li>list_features</li><li>list_dimensions</li><li>part_parameters</li></ul><p>These tools provide different views of the active CAD document.</p><p>get_geometry returns a geometry fingerprint, including volume, surface area, face and edge counts, and bounding box.</p><p>get_mass_properties provides volume, area, mass, and center of mass.</p><p>list_features exposes the feature names and types in the model tree.</p><p>list_dimensions and part_parameters allow an agent to inspect dimensions, equations, and configurations.</p><p>Together, these tools allow an AI agent to compare the model’s actual state with the original design request.</p><h3>A simple example: checking a perforated plate</h3><p>For the plate described earlier, the theoretical volume is:</p><p>[<br>V = L \times W \times T — 4\pi r²T<br>]</p><p>Substituting the dimensions:</p><p>[<br>V = 100 \times 50 \times 10</p><ul><li>4\pi \times 3² \times 10<br>]</li></ul><p>[<br>V \approx 48,869\text{ mm}³<br>]</p><p>The cadmcp repository documents a real SolidWorks modeling example in which the agent created this plate and queried its mass properties. The reported volume was approximately 48,869 mm³.</p><p>This is a useful consistency check: the measured volume agrees with the expected result for a plate with four Ø6 through-holes.</p><p>It is not a complete proof of correctness. Different geometric configurations can sometimes produce the same volume. We would still need to inspect the bounding box, feature structure, and hole positions.</p><p>The important idea is that verification should use measurements from the CAD model, not simply repeat the numbers from the original prompt.</p><h3>4. Inspect the Feature Tree and Parameters</h3><p>Geometry tells us what the model looks like mathematically. The feature tree helps explain how it was constructed.</p><p>This distinction matters in parametric CAD.</p><p>Two parts may have nearly identical final geometry but very different feature structures.</p><p>One might contain a properly constrained sketch, an extrusion, and a hole feature. Another might be a collection of poorly structured operations that are difficult to edit.</p><p>For engineering work, the construction history can be just as important as the final shape.</p><p>With cadmcp, an agent can inspect:</p><ul><li>Feature names and feature types</li><li>Sketch dimensions</li><li>Part dimensions and equations</li><li>Configurations</li><li>Feature suppression and modification state</li></ul><p>This makes it possible to ask more meaningful questions:</p><ul><li>Does the model contain the expected features</li><li>Are the important dimensions present?</li><li>Are the dimensions consistent with the design specification?</li><li>Does the feature tree reflect a reasonable modeling strategy?</li></ul><p>There is an important limitation, however.</p><p>A feature tree that contains the expected names does not automatically prove that every feature is geometrically correct. A dimension can exist while the resulting geometry is still wrong.</p><p>That is why feature inspection and geometric measurement should be used together.</p><h3>5. Verify Assemblies, Not Just Individual Parts</h3><p>Assembly verification introduces another layer of complexity.</p><p>A mechanical assembly can contain individually valid parts and still be incorrect as a whole.</p><p>Components may be positioned incorrectly, mates may be missing, or two components may occupy the same physical space.</p><p>cadmcp provides several tools for inspecting assembly state:</p><p>ToolPurposelist_componentsInspect assembly componentslist_matesInspect assembly matescheck_assembly_dofEstimate assembly degrees of freedomcheck_interferenceCheck component interferenceget_componentInspect an individual component&#39;s position and bounding box</p><p>These tools address different questions.</p><h3>Component presence and placement</h3><p>First, the agent needs to establish whether the expected components are present.</p><p>A component count alone is not enough. The agent should also inspect component names, instances, positions, and bounding boxes.</p><h3>Assembly constraints</h3><p>Next, the agent needs to inspect the mates.</p><p>A mate may exist without the overall assembly being fully constrained.</p><p>The check_assembly_dof tool provides a heuristic estimate of assembly degrees of freedom based on component count and mate-type weights.</p><p>It is useful as an inspection signal, but it should not be interpreted as a complete SolidWorks solver result or proof that the assembly behaves correctly.</p><h3>Interference checks</h3><p>Finally, the agent can use check_interference to identify geometric interference between components.</p><p>This is particularly useful for detecting unexpected overlaps.</p><p>However, not every overlap is necessarily an error. Welded structures, bonded interfaces, and other intentional connections may involve intersecting geometry.</p><p>The result must be interpreted in the context of the design.</p><p>An interference report is evidence for engineering review, not an automatic rejection of every intersecting pair.</p><h3>6. Turn Engineering Expectations into Machine-Checkable Rules</h3><p>So far, we have discussed inspecting geometry and assembly state.</p><p>But inspection becomes much more useful when the agent has explicit expectations to compare against.</p><p>For example:</p><ul><li>The plate thickness must be 10 mm.</li><li>The model must contain four holes.</li><li>The assembly must contain three support frames.</li><li>The overall length must be within a specified range.</li><li>A required component must not be missing.</li></ul><p>These expectations can be expressed as machine-checkable rules.</p><p>cadmcp includes a check_rules tool for read-only model-rule checks.</p><p>It also provides verify_model, a higher-level verification tool covering groups such as geometry, features, mass and bounding box, assembly, and drawing release-related checks.</p><p>The distinction is important:</p><p>A model inspection tool reports what exists.</p><p>A verification tool helps evaluate whether the observed state meets specified expectations.</p><p>This creates a more structured workflow:</p><ol><li>Define what should exist.</li><li>Inspect the actual SolidWorks document.</li><li>Compare the observed state against the expected conditions.</li><li>Report the results.</li><li>Decide whether corrective action is necessary.</li></ol><p>Not every engineering requirement can be reduced to a simple rule. But many basic structural and dimensional requirements can be checked automatically.</p><p>That is a practical foundation for more reliable AI-driven CAD.</p><h3>7. Engineering Drawings Need Their Own Verification</h3><p>A model can be geometrically correct while its engineering drawing remains incomplete.</p><p>For example, a drawing may have the required views but lack important dimensions. A BOM may be missing. A title block may contain incomplete information. A geometric tolerance frame may be present but not reflect the functional requirements.</p><p>cadmcp includes drawing inspection and verification-related capabilities.</p><p>Some relevant tools include:</p><ul><li>check_drawing_spec</li><li>inspect_drawing</li><li>insert_bom</li><li>insert_balloons</li><li>insert_model_items</li><li>insert_gdt</li><li>verify_weld_symbol</li></ul><p>These tools help inspect drawing structure, views, annotations, title-block information, and selected drawing elements.</p><p>For example, check_drawing_spec performs a read-only preflight check on a DrawingSpec before drawing creation.</p><p>inspect_drawing reads information such as sheets, views, title-block data, geometric tolerance frames, paper size, and scale.</p><p>These checks can help detect structural omissions before a drawing moves further through the workflow.</p><p>But there is a critical distinction between checking whether a drawing contains annotations and determining whether those annotations are engineering-correct.</p><p>An automatically inserted dimension is not necessarily the correct manufacturing dimension.</p><p>A geometric tolerance frame is not necessarily functionally appropriate.</p><p>A drawing that passes structural checks is not automatically ready for manufacturing release.</p><p>Engineering judgment remains essential.</p><h3>8. Verification Should Continue After Export</h3><p>Another important issue is data exchange.</p><p>A model that appears correct inside SolidWorks may not necessarily transfer correctly to another CAD system.</p><p>For that reason, verification should not stop when the native model is saved.</p><p>cadmcp supports export to formats including:</p><ul><li>STEP</li><li>STL</li><li>PDF</li><li>DXF</li></ul><p>It also includes verify_step_readback, which provides a workflow for opening an exported STEP file and comparing information such as component count and overall bounding box against expected values.</p><p>This is an important direction because it treats export as something that should be checked, rather than assuming that a successful export operation guarantees a correct deliverable.</p><p>However, the existence of a readback tool should not be confused with proof that every live SolidWorks import scenario has been validated.</p><p>The real CAD environment, file contents, and import behavior still matter.</p><p>For production workflows, the exported file should be checked in the target environment whenever possible.</p><h3>9. Build a Verification Loop, Not a One-Time Inspection</h3><p>The most useful way to combine these capabilities is to make verification part of the modeling process itself.</p><p>A practical AI-assisted workflow could look like this:</p><p><strong>Step 1 — Understand the requirement</strong></p><p>The agent extracts dimensions, component requirements, relationships, and expected deliverables from the user’s request.</p><p><strong>Step 2 — Create the model</strong></p><p>The agent uses cadmcp tools to create sketches, features, parts, and assemblies in SolidWorks.</p><p><strong>Step 3 — Inspect the actual state</strong></p><p>The agent queries geometry, mass properties, features, dimensions, components, and mates.</p><p><strong>Step 4 — Compare against expectations</strong></p><p>The agent evaluates measurable requirements and runs available rule and verification checks.</p><p><strong>Step 5 — Investigate discrepancies</strong></p><p>If a check fails or returns uncertain information, the agent inspects the relevant feature, component, or drawing.</p><p><strong>Step 6 — Make a controlled correction</strong></p><p>The agent modifies the model only when the cause is sufficiently understood.</p><p><strong>Step 7 — Verify again</strong></p><p>After the change, the agent repeats the relevant checks to confirm that the model state has changed as expected.</p><p>This is fundamentally different from a one-shot prompt that asks an AI model to generate a complete part.</p><p>It creates a feedback loop between the AI agent and the actual CAD application.</p><p>The AI does not need to assume that its previous instruction worked. It can inspect the result and use that evidence to decide what to do next.</p><h3>10. What Automated Verification Cannot Prove</h3><p>It is tempting to think that a sufficiently comprehensive verification system could eventually certify every AI-generated CAD model.</p><p>That would be an overstatement.</p><p>Automated checks are good at evaluating explicit, measurable conditions.</p><p>They can inspect geometry, compare dimensions, count components, identify certain interferences, and verify the presence of drawing elements.</p><p>But many engineering questions require more than geometric data.</p><p>For example:</p><ul><li>Is the selected material suitable for the operating environment?</li><li>Is the wall thickness sufficient for the design pressure?</li><li>Are the welds appropriate for the expected loading?</li><li>Are the tolerances compatible with the manufacturing process?</li><li>Does the design comply with the applicable engineering standards?</li><li>Is the assembly safe under its actual operating conditions?</li></ul><p>These questions require engineering calculations, domain knowledge, applicable standards, and often independent analysis.</p><p>A model can pass geometric checks and still be an unsafe design.</p><p>A drawing can pass structural checks and still be unsuitable for manufacturing.</p><p>A fully constrained assembly can still be assembled incorrectly according to the real product requirements.</p><p>This is why I see automated verification as a way to improve engineering reliability, not as a replacement for engineering approval.</p><h3>11. From CAD Automation to Evidence-Based Engineering</h3><p>The long-term opportunity for AI-driven CAD is not simply to make an AI agent more capable of generating geometry.</p><p>It is to make the entire process more observable and verifiable.</p><p>An AI agent should be able to explain:</p><ul><li>What it intended to create.</li><li>Which CAD operations it executed.</li><li>What the actual model contains.</li><li>Which requirements were checked.</li><li>Which checks passed or failed.</li><li>Which requirements remain uncertain.</li><li>What evidence supports the result.</li></ul><p>This is a more useful direction than relying on a visual preview or a confident statement that the model is finished.</p><p>For cadmcp, the goal is to continue strengthening the connection between design intent, SolidWorks operations, model inspection, and verification.</p><p>The project already provides tools for geometry inspection, assembly checks, model rules, drawing inspection, and model verification.</p><p>The next challenge is to make these capabilities work together in increasingly complete, requirement-driven workflows.</p><h3>Conclusion</h3><p>AI-generated CAD models should not be judged only by whether they look right or whether SolidWorks successfully executed the modeling operations.</p><p>They should be judged by what can actually be measured, inspected, compared, and verified.</p><p>That means checking geometry, dimensions, feature structure, assembly relationships, drawing information, and exported deliverables.</p><p>It also means being honest about what automated checks cannot prove.</p><p>With cadmcp, we are exploring how an AI agent can move from simply issuing CAD commands to observing and verifying the results inside a real SolidWorks environment.</p><p>The important transition is from:</p><p><strong>“The AI created the model.”</strong></p><p>to:</p><p><strong>“The AI created the model, inspected the result, checked the requirements, and reported the evidence.”</strong></p><p>That is a much stronger foundation for trustworthy AI-assisted mechanical design.</p><p><strong>Project:</strong> cadmcp — Open-source MCP server for SolidWorks<br><strong>GitHub:</strong> <a href="https://github.com/pakupaku5260/cad-mcp">https://github.com/pakupaku5260/cad-mcp</a><br><strong>Website:</strong> <a href="https://cad.npanic.com/">https://cad.npanic.com/</a><br><strong>Tool Reference:</strong> <a href="https://cad.npanic.com/tools/">https://cad.npanic.com/tools/</a><br><strong>Architecture:</strong> <a href="https://cad.npanic.com/architecture/">https://cad.npanic.com/architecture/</a><br><strong>Limitations:</strong> <a href="https://cad.npanic.com/limitations/">https://cad.npanic.com/limitations/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b53679f222d0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[FROM 3D MODEL
TO ENGINEERING DRAWING]]></title>
            <link>https://medium.com/@shiyang19822000/from-3d-model-to-engineering-drawing-bcc58f12e65d?source=rss-829569ad8b59------2</link>
            <guid isPermaLink="false">https://medium.com/p/bcc58f12e65d</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[solidworks]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[mechanical-engineering]]></category>
            <category><![CDATA[cad]]></category>
            <dc:creator><![CDATA[David Shi]]></dc:creator>
            <pubDate>Thu, 26 Nov 2026 01:17:47 GMT</pubDate>
            <atom:updated>2026-11-26T01:17:47.504Z</atom:updated>
            <content:encoded><![CDATA[<h3>Can AI Generate Engineering Drawings That Engineers Can Actually Use?</h3><p><em>From 3D Models to Structured Technical Documentation with cadmcp</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WA3Jv6W4wzKrsLC4fiOPUQ.jpeg" /></figure><p>1. A 3D Model Is Not the Final Deliverable</p><p>AI can now generate increasingly complex 3D models from natural language instructions.</p><p>An agent can create a part, add features, assemble components, and inspect basic geometric properties through a CAD system such as SolidWorks.</p><p>But in mechanical engineering, a 3D model is often only one part of the deliverable.</p><p>Engineers still need technical drawings.</p><p>A drawing communicates the information required to manufacture, inspect, and assemble a component. It translates a three-dimensional design into a structured engineering document.</p><p>A typical mechanical drawing may contain:</p><ul><li>Front, top, and side views.</li><li>Isometric views.</li><li>Section and detail views.</li><li>Dimensions and tolerances.</li><li>Surface finish and geometric tolerances.</li><li>Material and manufacturing notes.</li><li>Title blocks and revision information.</li><li>Bills of materials for assemblies.</li></ul><p>Producing a visually recognizable drawing is relatively straightforward.</p><p>Producing a drawing that another engineer or manufacturer can actually use is much harder.</p><p>This raises an important question:</p><p><strong>Can an AI agent turn a SolidWorks model into a meaningful engineering drawing, rather than simply generating a few projected views?</strong></p><p>This is the next challenge for AI-driven CAD automation.</p><h3>2. Why Engineering Drawings Are Different from 3D Models</h3><p>A 3D model describes geometry.</p><p>An engineering drawing communicates design intent and manufacturing requirements.</p><p>These are related, but they are not interchangeable.</p><p>Consider a simple mounting bracket.</p><p>Its 3D model may contain:</p><ul><li>A rectangular base.</li><li>Two mounting holes.</li><li>A vertical support.</li><li>A reinforcing rib.</li><li>Several filleted edges.</li></ul><p>A drawing needs to communicate more than the shape.</p><p>The front view may describe the overall height and hole positions. The top view may show the mounting pattern. A side view may reveal the thickness of the support. A section view may be needed to explain an internal feature.</p><p>The engineer must also decide which dimensions are important.</p><p>For example:</p><p>Drawing informationEngineering purposeOverall dimensionsDefine the component envelopeHole diameterSpecify machining requirementsHole positionDefine assembly interfacesThicknessCommunicate material geometryGeometric tolerancesControl functional relationshipsMaterialSupport manufacturing and procurementSurface finishDefine surface requirements</p><p>An AI agent cannot simply place every available model dimension onto a sheet.</p><p>It must understand which information matters and how to communicate it clearly.</p><p>This is where the problem becomes more interesting than automated view generation.</p><h3>3. Step One: Understand the Model Before Creating the Drawing</h3><p>A reliable drawing workflow should begin with the 3D model.</p><p>Before generating a drawing, an AI agent needs to discover:</p><ol><li>What document is being used?</li><li>Is it a part or an assembly?</li><li>What are its overall dimensions?</li><li>Which features and components are present?</li><li>What model dimensions are available?</li><li>Which geometric details need additional views?</li></ol><p>cadmcp already exposes several tools that can support this preparation.</p><p>ToolPurposeget_active_documentIdentify the active SolidWorks documentlist_featuresInspect the model&#39;s feature structurelist_dimensionsRetrieve available part dimensionspart_parametersRead dimensions, equations, and configurationsget_geometryRetrieve geometry information and bounding boxget_mass_propertiesRetrieve volume, area, mass, and center of masslist_componentsInspect assembly components</p><p>These queries provide a foundation for drawing planning.</p><p>For example, the agent can use the bounding box to understand the overall model envelope and inspect the feature structure to identify important design elements.</p><p>For an assembly, component information can help determine whether a bill of materials and item balloons should be included.</p><p>The important principle is that drawing generation should be based on the actual CAD model, not solely on the original natural language prompt.</p><h3>4. Step Two: Decide What the Drawing Should Contain</h3><p>This is one of the most important decisions in the entire workflow.</p><p>A drawing specification should define the intended output before SolidWorks begins creating the drawing.</p><p>For example, a simple part drawing might require:</p><ul><li>One A3 landscape sheet.</li><li>Front, top, right, and isometric views.</li><li>A suitable drawing scale.</li><li>Overall dimensions.</li><li>Hole diameter and position dimensions.</li><li>Material and part number.</li><li>A title block.</li></ul><p>A more complex component may also require a section view or a detail view.</p><p>An assembly drawing may need:</p><ul><li>General arrangement views.</li><li>An exploded representation.</li><li>A bill of materials.</li><li>Item balloons.</li><li>Assembly notes.</li></ul><p>These requirements should be represented in a structured format.</p><p>In cadmcp, this is the purpose of DrawingSpec.</p><p>Rather than asking an AI agent to create drawing elements through a long sequence of unrelated commands, a DrawingSpec describes the intended drawing structure.</p><p>The current implementation provides two important operations:</p><ul><li>check_drawing_spec performs a read-only preflight check.</li><li>create_drawing builds a drawing from a DrawingSpec.</li></ul><p>The specification can describe sheets and views, with optional section and detail views, paper settings, scale, and title-block information.</p><p>This creates a useful separation:</p><p><strong>The AI agent decides what the drawing should contain. SolidWorks performs the actual CAD operations.</strong></p><p>The specification also provides a more structured interface for inspecting and improving the drawing workflow.</p><h3>5. Step Three: Generate the Drawing Views</h3><p>Once the drawing specification has been prepared, the next step is to create the views.</p><p>A typical mechanical drawing uses several orthographic projections.</p><p>ViewWhat it communicatesFrontMain profile and overall heightTopWidth, depth, and feature arrangementRightSide geometry and thicknessIsometricOverall three-dimensional appearanceSectionInternal geometry and hidden detailsDetailSmall features that require a larger scale</p><p>cadmcp provides create_drawing_view for creating standard model views on an active drawing.</p><p>It also provides create_section_view for creating a section view from the first drawing model view.</p><p>The current section-view operation uses a horizontal cut through the view origin. This is an important implementation detail: it should not be presented as a general-purpose arbitrary section-line editor.</p><p>A drawing workflow may therefore look like this:</p><pre>Existing SolidWorks Model<br>          |<br>          v<br>    Inspect Geometry<br>          |<br>          v<br>   Prepare DrawingSpec<br>          |<br>          v<br>  Check DrawingSpec<br>          |<br>          v<br>    Create Drawing<br>          |<br>          v<br>   Add Required Views<br>          |<br>          v<br>  Add Dimensions and Notes</pre><p>The advantage of this approach is that view planning happens before the drawing is populated.</p><p>This makes it easier to reason about the intended output and identify missing information.</p><h3>6. Step Four: Dimensions Are More Than Numbers</h3><p>Dimensioning is arguably one of the most important parts of an engineering drawing.</p><p>A drawing can have perfectly generated views and still be unusable if its dimensions are incomplete, redundant, or misleading.</p><p>There are several ways to approach dimension placement.</p><h3>Import existing model dimensions</h3><p>SolidWorks supports importing model dimensions into drawing views.</p><p>cadmcp exposes this operation through:</p><p>insert_model_items</p><p>This is useful when the model already contains meaningful driving dimensions.</p><p>However, model dimensions are not automatically equivalent to a complete manufacturing dimension scheme.</p><p>A model may contain many construction dimensions that do not belong on the final drawing.</p><h3>Add dimensions explicitly</h3><p>An AI agent can also use add_drawing_dimension to add an individual dimension by drawing-sheet coordinates.</p><p>This provides more direct control over placement, but it requires the agent to understand the relevant geometry and drawing layout.</p><p>The agent must consider:</p><ul><li>Which geometry should be dimensioned?</li><li>Is the dimension horizontal, vertical, or aligned?</li><li>Is the annotation readable?</li><li>Does it overlap another annotation?</li><li>Is the dimension necessary?</li><li>Does it communicate the intended manufacturing requirement?</li></ul><p>These decisions cannot be reduced to placing every available number on the sheet.</p><h3>Add specialized annotations</h3><p>cadmcp also exposes additional drawing annotation operations, including:</p><ul><li>insert_datum</li><li>insert_gdt</li><li>insert_weld_symbol</li></ul><p>These provide a path toward richer engineering documentation.</p><p>The current weld-symbol support is a defined subset rather than every possible welding symbol.</p><p>Likewise, the availability of a geometric tolerance annotation does not mean the AI can automatically determine the correct tolerance for a functional design.</p><p>The engineering intent still matters.</p><h3>7. Step Five: Assembly Drawings Need More Than Views</h3><p>Part drawings and assembly drawings have different requirements.</p><p>A part drawing primarily communicates how an individual component should be manufactured and inspected.</p><p>An assembly drawing also needs to communicate how multiple components relate to one another.</p><p>For example, an assembly drawing may require:</p><ul><li>Component identification.</li><li>A bill of materials.</li><li>Item balloons.</li><li>Assembly views.</li><li>Welding or fastening information.</li><li>General assembly notes.</li></ul><p>cadmcp provides two useful operations:</p><p>insert_bom</p><p>This inserts a bill of materials table into an assembly drawing.</p><p>insert_balloons</p><p>This automatically adds balloons to the first drawing view. For assembly drawings, the operation creates one balloon per component instance.</p><p>The project also provides get_bom for reading BOM information from the active assembly or drawing.</p><p>These capabilities make it possible to build a more complete assembly documentation workflow.</p><p>However, automatic balloon placement does not guarantee an ideal final layout. The engineer may still need to review the positions, readability, and correspondence between the balloons and BOM rows.</p><p>A technically generated drawing still needs presentation and engineering review.</p><h3>8. Step Six: Title Blocks, Sheets, and Export</h3><p>A drawing is also a document.</p><p>It needs the correct sheet configuration and identifying information.</p><p>A typical title block may contain:</p><ul><li>Part name.</li><li>Drawing number.</li><li>Material.</li><li>Scale.</li><li>Revision.</li><li>Designer.</li><li>Date.</li><li>Company information.</li></ul><p>cadmcp provides:</p><ul><li>new_drawing to create a drawing from a SolidWorks drawing template.</li><li>add_drawing_sheet to add a sheet with paper size and scale.</li><li>activate_drawing_sheet to switch between sheets.</li><li>set_title_block to write custom properties used by the drawing template.</li><li>add_drawing_layer and set_drawing_layer to manage drawing layers.</li></ul><p>Once the drawing is ready, it can be exported.</p><p>The export tool supports PDF and DXF output for drawings.</p><p>This is important because the final deliverable is often not the native SolidWorks drawing alone.</p><p>PDF is useful for review and distribution.</p><p>DXF is useful for downstream CAD workflows and certain manufacturing processes.</p><p>The distinction between native drawing creation and exported file generation should remain clear: successfully exporting a PDF does not by itself prove that every dimension, annotation, or drawing requirement is correct.</p><h3>9. Step Seven: Verify the Drawing</h3><p>This is where a useful AI drawing workflow becomes an engineering workflow.</p><p>A drawing should not be considered complete simply because SolidWorks created a drawing document.</p><p>The result needs to be inspected.</p><p>cadmcp provides inspect_drawing to retrieve information about:</p><ul><li>Drawing views.</li><li>Sheets.</li><li>Title-block information.</li><li>Geometric tolerance frames.</li><li>Paper size and scale.</li><li>Tolerances.</li></ul><p>The project also provides verify_model, whose verification scope includes drawing-release checks.</p><p>These tools provide a basis for checking whether the drawing contains expected information.</p><p>For example, a verification workflow could check:</p><ol><li>Does the drawing contain the expected number of sheets?</li><li>Are the required views present?</li><li>Is the expected title-block information available?</li><li>Are the expected geometric tolerance annotations present?</li><li>Is the drawing using the intended paper size and scale?</li><li>Can the drawing be exported successfully?</li></ol><p>However, there is an important distinction between checking drawing structure and validating engineering correctness.</p><p>A drawing may contain all expected views and annotations but still have:</p><ul><li>Missing manufacturing dimensions.</li><li>Incorrect dimension placement.</li><li>Inappropriate tolerances.</li><li>Ambiguous section references.</li><li>Overlapping annotations.</li><li>Incorrect material or revision information.</li></ul><p>A structural verification tool cannot independently prove that the drawing is ready for manufacturing.</p><p>This is why I see verification as a necessary layer, not a replacement for engineering review.</p><h3>10. What Is Already Possible with cadmcp?</h3><p>The current cadmcp implementation has a dedicated drawing toolset.</p><p>The published tool inventory documents 21 drawing tools covering views, annotations, DrawingSpec, and verification.</p><p>Some of the available operations include:</p><p>CapabilityCurrent toolCreate a drawing from a specificationcreate_drawingPreflight a drawing specificationcheck_drawing_specAdd standard model viewscreate_drawing_viewAdd a section viewcreate_section_viewImport model dimensionsinsert_model_itemsInsert a BOMinsert_bomAdd item balloonsinsert_balloonsAdd datum annotationsinsert_datumAdd geometric tolerancesinsert_gdtInspect drawing contentsinspect_drawingExport PDF or DXFexport</p><p>This is a meaningful step beyond simply creating 3D geometry.</p><p>It gives an AI agent a structured way to interact with the drawing environment through SolidWorks.</p><p>But it is equally important to understand what this does not mean.</p><p>The existence of drawing tools does not mean that cadmcp already has a complete autonomous drafting system that can interpret every engineering requirement and produce production-ready documentation without review.</p><p>There are still difficult problems to solve, particularly around dimension selection, annotation layout, drawing standards, and engineering intent.</p><h3>11. The Remaining Challenge: Engineering Judgment</h3><p>The hardest part of automated drawing generation is not creating a view.</p><p>It is deciding what the drawing should communicate.</p><p>Consider a mounting bracket with several holes.</p><p>An AI agent may be able to retrieve all the hole diameters and positions.</p><p>But it still needs to determine:</p><ul><li>Which dimensions are functionally important?</li><li>Should the holes be dimensioned individually or through a pattern?</li><li>Is a datum reference required?</li><li>Is a position tolerance necessary?</li><li>Does the drawing need a section view?</li><li>Which dimensions should be reference dimensions?</li><li>Is the selected tolerance appropriate for the manufacturing process?</li></ul><p>These are engineering decisions.</p><p>Some can be supported by explicit rules, templates, and structured specifications.</p><p>Others depend on product requirements, manufacturing processes, industry standards, and human judgment.</p><p>A reliable AI drafting system should not invent missing information.</p><p>If the model does not contain a material specification, the agent should not guess one.</p><p>If the user has not specified a tolerance, the agent should not silently assign one based on an arbitrary assumption.</p><p>If a drawing requirement is ambiguous, the system should expose that uncertainty.</p><p>This is especially important when drawings are used as manufacturing documents.</p><h3>12. A More Practical Architecture for AI-Driven Drawing Generation</h3><p>Based on these challenges, I think a useful AI drawing workflow should have five distinct layers.</p><p><strong>1. Model understanding</strong></p><p>Inspect the existing SolidWorks model, including geometry, features, parameters, and assembly structure.</p><p><strong>2. Drawing planning</strong></p><p>Use the model information and user requirements to decide which sheets, views, dimensions, and annotations are needed.</p><p><strong>3. Structured specification</strong></p><p>Represent the intended drawing through a DrawingSpec that can be checked before execution.</p><p><strong>4. Native drawing execution</strong></p><p>Use SolidWorks APIs through cadmcp to create views, add annotations, populate title blocks, and insert BOM information.</p><p><strong>5. Verification and review</strong></p><p>Inspect the resulting drawing, check required information, export deliverables, and identify anything that still needs engineering review.</p><p>The overall workflow looks like this:</p><pre>User Requirements<br>             |<br>             v<br>     Existing 3D Model<br>             |<br>             v<br>      Model Inspection<br>             |<br>             v<br>      Drawing Planning<br>             |<br>             v<br>        DrawingSpec<br>             |<br>             v<br>      Preflight Check<br>             |<br>             v<br>    SolidWorks Execution<br>             |<br>             v<br>    Drawing Inspection<br>             |<br>             v<br>     Verification<br>             |<br>             v<br>       PDF / DXF<br>             |<br>             v<br>      Engineering Review</pre><p>This architecture separates the AI’s reasoning from the CAD system’s deterministic execution.</p><p>It also makes failures easier to identify.</p><p>If a view is missing, the problem may be in the specification or execution.</p><p>If a dimension is incorrect, the problem may be in model interpretation or annotation selection.</p><p>If a drawing passes structural checks but remains unsuitable for manufacturing, the missing element may be engineering intent or domain-specific validation.</p><p>That separation is essential for improving reliability over time.</p><h3>Conclusion</h3><p>AI-driven CAD should not stop when a 3D model appears on the screen.</p><p>In mechanical engineering, a model often needs to become a drawing, and that drawing must communicate enough information for manufacturing, inspection, and assembly.</p><p>Generating views and annotations is only part of the problem.</p><p>The more difficult challenge is deciding what information belongs on the drawing, placing it correctly, preserving design intent, and verifying the result.</p><p>With cadmcp, SolidWorks drawing operations can be exposed to AI agents through MCP, including DrawingSpec-based creation, view generation, dimensions, BOMs, annotations, inspection, and export.</p><p>There is still a gap between automated drawing creation and fully autonomous engineering documentation.</p><p>But that gap is exactly where the next generation of AI-assisted CAD systems needs to improve.</p><p><strong>The goal is not simply to let AI draw what it sees. It is to help AI communicate what engineers need to know.</strong></p><h3>Explore cadmcp</h3><p>cadmcp is an open-source MCP server that connects AI agents with SolidWorks.</p><ul><li><strong>GitHub:</strong> <a href="https://github.com/pakupaku5260/cad-mcp">https://github.com/pakupaku5260/cad-mcp</a></li><li><strong>Project Website:</strong> <a href="https://cad.npanic.com/">https://cad.npanic.com/</a></li><li><strong>Getting Started:</strong> <a href="https://cad.npanic.com/getting-started/">https://cad.npanic.com/getting-started/</a></li><li><strong>Tool Reference:</strong> <a href="https://cad.npanic.com/tools/">https://cad.npanic.com/tools/</a></li><li><strong>Architecture:</strong> <a href="https://cad.npanic.com/architecture/">https://cad.npanic.com/architecture/</a></li><li><strong>Known Limitations:</strong> <a href="https://cad.npanic.com/limitations/">https://cad.npanic.com/limitations/</a></li></ul><p>For real SolidWorks modeling and drawing operations, the documented setup requires Windows, SolidWorks 2025, Python 3.11+, and pywin32.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bcc58f12e65d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[UNDERSTAND & MODIFY]]></title>
            <link>https://medium.com/@shiyang19822000/understand-modify-2fa59e729af6?source=rss-829569ad8b59------2</link>
            <guid isPermaLink="false">https://medium.com/p/2fa59e729af6</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[cad]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[solidworks]]></category>
            <dc:creator><![CDATA[David Shi]]></dc:creator>
            <pubDate>Wed, 25 Nov 2026 01:02:38 GMT</pubDate>
            <atom:updated>2026-11-25T01:02:38.078Z</atom:updated>
            <content:encoded><![CDATA[<h3>Can AI Understand and Modify an Existing SolidWorks Model?</h3><p><em>From Feature Inspection to Controlled Editing with cadmcp</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*No3h8NHCppIiDP2EQZebmQ.png" /></figure><h3>1. Creating a CAD Model Is Only the Beginning</h3><p>AI-driven CAD demonstrations often start with a blank document.</p><p>A user describes a component, an AI agent generates sketches and features, and SolidWorks produces a 3D model. This is an important capability, but it represents only one part of a real engineering workflow.</p><p>In practice, engineers spend a significant amount of time working with models that already exist.</p><p>They may need to:</p><ul><li>Change the length of an existing component.</li><li>Adjust a hole diameter or an extrusion depth.</li><li>Suppress or remove an obsolete feature.</li><li>Understand how a part was constructed.</li><li>Inspect geometry before making a modification.</li><li>Update a model without unintentionally changing unrelated features.</li></ul><p>These tasks introduce a different challenge.</p><p><strong>Can an AI agent understand an existing CAD model well enough to modify it safely?</strong></p><p>This is a more demanding problem than generating geometry from a text prompt.</p><p>With cadmcp, I have been exploring how MCP tools can expose SolidWorks model information to AI agents and allow them to perform controlled operations on existing documents.</p><p>The key idea is simple:</p><p>An AI agent should inspect first, understand the current state, make a deliberate change, and verify the result.</p><h3>2. A SolidWorks Model Contains More Than Geometry</h3><p>When an engineer looks at a SolidWorks part, they do not see only a solid body.</p><p>They also work with its construction history and design parameters.</p><p>A typical parametric part may contain:</p><ul><li>Sketches and geometric constraints.</li><li>Extrusions, revolutions, and cuts.</li><li>Fillets and chamfers.</li><li>Feature dimensions.</li><li>Equations and configurations.</li><li>Faces, edges, and reference geometry.</li><li>Dependencies between upstream and downstream features.</li></ul><p>These elements describe different aspects of the same model.</p><p>For example, consider a simple mounting plate.</p><p>Its visible geometry may be a rectangular solid with four holes. But its editable definition could include:</p><ol><li>A base sketch.</li><li>An extrusion feature.</li><li>Four hole features.</li><li>Fillets on selected edges.</li><li>Dimensions controlling the plate and hole positions.</li></ol><p>If an engineer asks an AI agent to increase the plate thickness from 10 mm to 15 mm, the agent needs more than an image of the part.</p><p>It needs to identify the relevant parameter and understand which feature owns it.</p><p>This is why model inspection matters.</p><h3>3. Step One: Discover the Existing Model</h3><p>Before modifying anything, an AI agent needs to establish what document is active and what information can be retrieved.</p><p>In cadmcp, several tools provide access to this information.</p><p>ToolPurposeget_active_documentRead the active document&#39;s title, path, and modified statelist_featuresInspect feature names and typeslist_dimensionsDiscover dimensions in an active partpart_parametersRead dimensions, equations, and configurationsget_geometryRetrieve a geometry fingerprintget_mass_propertiesRead volume, area, mass, and center of massget_entitiesQuery faces and edges through structured handles</p><p>These tools provide different views of the same document.</p><p>For example, list_features helps identify the construction elements, while list_dimensions exposes editable dimensional parameters.</p><p>part_parameters brings dimensions, equations, and configurations together in one query.</p><p>This is useful because an AI agent should not assume that a parameter exists simply because it can see a corresponding geometric feature.</p><p>It should discover the actual model data first.</p><h3>4. Step Two: Identify What Should Change</h3><p>Imagine the user gives this instruction:</p><p><em>“Increase the extrusion depth of the mounting plate to 15 mm, but keep the existing holes and edge treatments.”</em></p><p>A naive approach would be to create a new plate with the requested dimensions.</p><p>But that would not necessarily preserve the existing model structure.</p><p>A better workflow is:</p><p><strong>First, inspect the current model.</strong></p><p>The agent queries the feature list and available dimensions.</p><p><strong>Second, identify the target parameter.</strong></p><p>It determines which dimension belongs to the extrusion feature and checks its current value.</p><p><strong>Third, resolve ambiguity.</strong></p><p>If multiple dimensions have similar values or several extrusion features exist, the agent should not guess. It should ask which feature the user intends to change.</p><p><strong>Fourth, prepare a controlled modification.</strong></p><p>Only after the target is identified should the agent call the relevant modification tool.</p><p>This distinction is important.</p><p>Natural language provides the user’s intention. The CAD model provides the actual parameters and relationships. The AI agent must connect the two.</p><h3>5. Step Three: Modify the Model Without Rebuilding Everything</h3><p>One of the advantages of parametric CAD is that an existing model can often be modified without recreating it.</p><p>cadmcp provides several tools for this purpose:</p><ul><li>set_dimension changes a discovered dimension.</li><li>update_parameters updates multiple dimensions, equations, or configuration settings.</li><li>set_equation creates or updates a part equation.</li><li>suppress_feature suppresses or restores a feature.</li><li>delete_feature removes a feature by name.</li></ul><p>For example, a simplified interaction might look like this:</p><pre>User:<br>Increase the extrusion depth to 15 mm.</pre><pre>Agent:<br>1. get_active_document<br>2. list_features<br>3. list_dimensions<br>4. Identify the intended extrusion dimension.<br>5. set_dimension<br>6. Inspect the resulting model.</pre><p>The important part is not the number of tool calls.</p><p>It is the sequence of decisions.</p><p>The agent should use the exact dimension identifier returned by the inspection step rather than inventing a parameter name.</p><p>It should also distinguish between changing a feature-level dimension and changing sketch geometry. Not every geometric value is necessarily exposed as a driving dimension.</p><p>This is one reason why a model’s construction method matters.</p><p>A cylinder created with a dimensioned sketch may be easier to edit parametrically than one created from unconstrained sketch geometry.</p><h3>6. Step Four: Verify the Result</h3><p>A successful modification call does not automatically mean the model is correct.</p><p>Changing one parameter may affect downstream features. A fillet may fail. A cut may no longer intersect the intended body. A reference may become invalid.</p><p>Therefore, the agent needs to inspect the model again.</p><p>A useful verification sequence includes:</p><ol><li>Re-read the feature list.</li><li>Confirm the intended dimension has changed.</li><li>Check the geometry fingerprint.</li><li>Compare the bounding box or mass properties when relevant.</li><li>Inspect affected faces and edges if the modification depends on geometric references.</li></ol><p>For example, increasing a plate’s extrusion depth should normally change its overall dimensions and volume.</p><p>If the requested change was successful but the volume remains unchanged, that discrepancy deserves investigation.</p><p>Likewise, a successful tool response should not hide a rebuild error or an unexpected change to another feature.</p><p>This leads to a practical rule:</p><p><strong>Every meaningful modification should have a corresponding verification step.</strong></p><p>The agent should report what changed, what remained unchanged, and what could not be verified.</p><h3>7. Why Geometry References Need Special Attention</h3><p>Feature-level editing is only part of the problem.</p><p>Many engineering operations depend on selecting specific faces and edges.</p><p>For example:</p><ul><li>Add a fillet to a particular edge.</li><li>Create a hole on a selected face.</li><li>Measure the distance between two geometric entities.</li><li>Use an existing edge as a reference for another operation.</li></ul><p>This is difficult for an AI agent because a CAD model is not a static image.</p><p>A face or edge index may no longer refer to the same geometric entity after a modification.</p><p>A safer workflow is to query the relevant geometry, identify the intended entity, perform the operation, and refresh the references after the model changes.</p><p>In cadmcp, face and edge queries provide structured geometric information rather than requiring the agent to rely entirely on visual interpretation.</p><p>This does not eliminate every ambiguity, but it gives the agent a more reliable basis for selecting geometry.</p><p>It also highlights an important difference between visual recognition and CAD understanding.</p><p>An image may show which edge looks like the right one. A structured query can provide information about its location and geometric type.</p><p>For engineering operations, both forms of information can be useful.</p><h3>8. What AI Still Cannot Automatically Understand</h3><p>There is an important distinction between reading a model and understanding its engineering intent.</p><p>An AI agent may be able to retrieve:</p><ul><li>Feature names and types.</li><li>Dimensions and equations.</li><li>Face and edge information.</li><li>Mass properties and bounding boxes.</li><li>Configuration information.</li></ul><p>But these facts do not necessarily explain why the original designer made a particular decision.</p><p>For example, a 20 mm dimension might represent:</p><ul><li>A functional clearance.</li><li>A manufacturing allowance.</li><li>A mating requirement.</li><li>A packaging constraint.</li><li>An arbitrary modeling choice.</li></ul><p>The CAD model may expose the value without exposing its original rationale.</p><p>Similarly, changing a dimension does not prove that the resulting component remains mechanically suitable.</p><p>A geometrically valid model is not automatically a structurally valid design.</p><p>There are also practical limitations in the current cadmcp implementation. For example, part in-context editing through EditPart2 is not supported, although subassembly editing is available.</p><p>These boundaries matter because a reliable engineering assistant must know when it has enough information to act and when it should ask for clarification.</p><h3>9. A More Reliable Pattern for AI-Assisted CAD Editing</h3><p>The workflow can be summarized as five stages:</p><pre>Existing SolidWorks Document<br>          |<br>          v<br>    Inspect Model<br>          |<br>          v<br> Identify Target Feature<br>          |<br>          v<br>  Plan the Modification<br>          |<br>          v<br>   Apply Controlled Edit<br>          |<br>          v<br>    Verify Model State<br>          |<br>          v<br> Report Results and Limits</pre><p>This pattern is more than a convenient sequence of MCP calls.</p><p>It is a foundation for building safer AI-driven CAD workflows.</p><p>In particular, it encourages three principles:</p><p><strong>Read before write.</strong></p><p>The agent should discover the current model state before attempting to change it.</p><p><strong>Change only what is necessary.</strong></p><p>A focused modification is easier to reason about and verify than an unnecessary rebuild.</p><p><strong>Verify after every meaningful change.</strong></p><p>The agent should use model data to check the result rather than assuming that a successful API call means the engineering task is complete.</p><p>These principles are also relevant to other CAD systems and engineering automation platforms.</p><h3>10. From CAD Generation to CAD Assistance</h3><p>The first generation of AI CAD workflows focused on creating geometry from natural language.</p><p>That remains an important capability.</p><p>But the next step is to work with the models engineers already have.</p><p>An AI assistant that can inspect an existing part, identify its parameters, make a controlled modification, and verify the result is much closer to a practical engineering tool.</p><p>This does not mean that AI can independently understand every design decision or replace engineering judgment.</p><p>It means that CAD operations can become more accessible through a structured interaction between natural language, model data, and deterministic engineering software.</p><p>That is the direction I want to explore with cadmcp.</p><p>The long-term goal is not simply to let an AI agent create more geometry.</p><p>It is to help the agent work with existing engineering models in a way that is understandable, controlled, and verifiable.</p><h3>Conclusion</h3><p>Creating a new CAD model is an impressive demonstration.</p><p>Modifying an existing model without breaking its structure is a different level of challenge.</p><p>It requires model inspection, parameter discovery, reference management, controlled editing, and verification.</p><p>With cadmcp, these capabilities can be exposed to AI agents through MCP tools, allowing them to interact with real SolidWorks documents using structured operations.</p><p>There is still a long way to go before an AI agent can fully understand the engineering intent behind every CAD model.</p><p>But moving from <em>generate a part</em> to <em>understand and modify this part</em> is an important step toward a more useful AI engineering assistant.</p><h3>Explore cadmcp</h3><p>cadmcp is an open-source MCP server that connects AI agents with SolidWorks.</p><ul><li><strong>GitHub:</strong> <a href="https://github.com/pakupaku5260/cad-mcp">https://github.com/pakupaku5260/cad-mcp</a></li><li><strong>Project Website:</strong> <a href="https://cad.npanic.com/">https://cad.npanic.com/</a></li><li><strong>Getting Started:</strong> <a href="https://cad.npanic.com/getting-started/">https://cad.npanic.com/getting-started/</a></li><li><strong>Tool Reference:</strong> <a href="https://cad.npanic.com/tools/">https://cad.npanic.com/tools/</a></li><li><strong>Architecture:</strong> <a href="https://cad.npanic.com/architecture/">https://cad.npanic.com/architecture/</a></li><li><strong>Known Limitations:</strong> <a href="https://cad.npanic.com/limitations/">https://cad.npanic.com/limitations/</a></li></ul><p>For real SolidWorks modeling, the documented setup requires Windows, SolidWorks 2025, Python 3.11+, and pywin32.</p><p>cadmcp is an independent open-source project and is not affiliated with Dassault Systèmes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2fa59e729af6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Complex Oil Tank Assembly with AI]]></title>
            <link>https://medium.com/@shiyang19822000/building-a-complex-oil-tank-assembly-with-ai-10d559fa04b5?source=rss-829569ad8b59------2</link>
            <guid isPermaLink="false">https://medium.com/p/10d559fa04b5</guid>
            <category><![CDATA[mcps]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[mechanical-engineering]]></category>
            <category><![CDATA[cad]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[David Shi]]></dc:creator>
            <pubDate>Tue, 24 Nov 2026 04:26:51 GMT</pubDate>
            <atom:updated>2026-11-24T04:26:51.058Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building a Complex Oil Tank Assembly with AI: A Real-World SolidWorks Case Study</h3><p><em>From Natural Language to a Multi-Part Mechanical Assembly — Modeling, Assembly, and Geometry Verification with cadmcp.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*avg-NPe0LGpBb7XORwX8ng@2x.png" /></figure><h3>1. Introduction: Beyond Simple AI-Generated Parts</h3><p>AI-driven CAD automation is often demonstrated through relatively simple examples: creating a rectangular block, extruding a sketch, drilling a few holes, or generating a basic mechanical component.</p><p>These examples are useful, but they do not fully represent the challenges of real mechanical design.</p><p>A practical industrial product usually consists of multiple components, different geometric features, spatial relationships, assembly constraints, and engineering requirements. Creating the individual shapes is only one part of the problem. The components must also fit together into a coherent assembly.</p><p>This raises a more interesting question:</p><p><strong>Can an AI agent go beyond creating individual CAD features and build a complete mechanical assembly in SolidWorks?</strong></p><p>To explore this question, we used cadmcp to create a horizontal oil-storage tank assembly.</p><p>The result is a real SolidWorks project containing 16 distinct part models, 22 placed component instances, and 21 assembly mates.</p><p>More importantly, the project provides an opportunity to examine the entire workflow — from a natural-language engineering brief to component modeling, assembly constraints, geometry inspection, and STEP export.</p><p>This article examines what was built, what can be verified, and what still requires further engineering validation.</p><h3>2. The Engineering Challenge</h3><p>The starting point was a natural-language description of a horizontal oil-storage tank.</p><p>The request was not simply to create a cylindrical shape. It specified a collection of structural components and their relationships.</p><p>The main design requirements included:</p><p>ComponentDesign requirementCylindrical shellØ2,000 mm × 5,000 mmShell wall8 mm reference thicknessEnd headsTwo true hemispherical heads, R1,000 mmOverall tank length7,000 mmSupportsThree identical support framesSaddlesCurved surfaces following the tank shellInspection platformApproximately 4,500 × 800 mmAccessSide ladder connected to the platformFittingsManhole, inlet, vent, drain, and lifting lugs</p><p>The brief also specified that the major components should be modeled as real 3D solids rather than visual representations.</p><p>For example, the tank heads had to be true hemispherical geometry rather than flat or elliptical substitutes. The ladder needed actual stringers and rungs. The platform required a frame, grating deck, and safety guardrails.</p><p>The final result was expected to be a multi-part SolidWorks assembly with independent part models and seven viewing directions.</p><p>This made the task considerably more demanding than generating a single mechanical part.</p><h3>3. Breaking Down the Assembly</h3><p>A useful way to approach a complex mechanical model is to divide it into smaller, independently manageable components.</p><p>The oil tank was organized into several functional groups.</p><h3>Main tank structure</h3><ul><li>Cylindrical shell</li><li>Left hemispherical head</li><li>Right hemispherical head</li><li>Weld rings</li></ul><h3>Support structure</h3><ul><li>Three support frames</li><li>Three curved saddle pads</li></ul><h3>Inspection platform</h3><ul><li>Platform frame</li><li>Grating deck</li><li>Guardrail structure</li></ul><h3>Access and fittings</h3><ul><li>Ladder</li><li>Ladder bridge</li><li>Manhole</li><li>Inlet nozzle</li><li>Vent nozzle</li><li>Drain nozzle</li><li>Lifting lugs</li></ul><p>The resulting project contains 16 distinct part models.</p><p>However, the assembly uses 22 component instances because some part definitions are placed more than once.</p><p>This distinction matters. A CAD assembly is not simply a collection of unique files. It also contains instances of those files, each with its own position and orientation.</p><p>In this case, the three support frames, three saddle pads, two weld rings, and two lifting-lug placements contribute to the final assembly structure.</p><p>The result is a more representative mechanical assembly than a model made from a handful of unrelated solids.</p><h3>4. From AI Instructions to SolidWorks Operations</h3><p>This is where cadmcp becomes particularly interesting.</p><p>cadmcp provides an MCP interface between an AI agent and a running SolidWorks environment.</p><p>Instead of relying on a human operator to perform every modeling and assembly operation manually, an AI agent can interact with CAD functionality through structured tools.</p><p>For this case, the documented workflow exercises several important tool capabilities.</p><p>Workflow stageRelevant cadmcp toolsAssembly inspectionlist_components_liteComponent insertioninsert_componentAssembly constraintsmateComponent positioning and repairfix_componentsDegree-of-freedom inspectioncheck_assembly_dofModel verificationverify_modelInterference inspectioncheck_interferenceCAD exportexportSTEP readback contractverify_step_readback</p><p>These tools represent different stages of a stateful CAD workflow.</p><p>For example, inserting a component is not the same as positioning it correctly. Establishing a mate is not the same as confirming that the entire assembly is fully constrained.</p><p>The AI agent must work with the current CAD document state and use the available tools to inspect and modify that state.</p><p>This is an important distinction between AI-generated geometry and AI-assisted CAD automation.</p><p>The latter requires the agent to interact with an existing engineering application, where operations have dependencies and their results affect subsequent operations.</p><h3>5. Assembly Constraints: More Than Placing Components</h3><p>A collection of correctly shaped parts does not automatically form a valid mechanical assembly.</p><p>The components must occupy appropriate positions and maintain the intended relationships.</p><p>The oil tank assembly includes:</p><ul><li>Three support structures positioned along the tank axis.</li><li>Curved saddle pads associated with the cylindrical shell.</li><li>Two hemispherical end heads.</li><li>A platform positioned above the tank.</li><li>A ladder providing access to the platform.</li><li>Multiple fittings positioned on the tank structure.</li></ul><p>According to the published case results, the assembly contains 21 mates.</p><p>The recorded assembly check reports:</p><ul><li>Residual shift: 0.0 mm.</li><li>Remaining degrees of freedom: all 21 constrained.</li></ul><p>This is useful evidence that the assembly constraint workflow reached its intended degree-of-freedom state.</p><p>However, a fully constrained assembly does not automatically prove engineering correctness.</p><p>A component can be fully constrained in an incorrect position. Likewise, a mate can be mathematically satisfied while the physical design remains inappropriate.</p><p>Assembly constraints are therefore one important verification layer, not a substitute for engineering review.</p><h3>6. Inspecting the Actual CAD Geometry</h3><p>A rendered image can make a CAD model look convincing, but appearance alone is not enough.</p><p>For this reason, the exported STEP AP214 file was independently inspected using a geometry kernel.</p><p>The inspection was based on the actual uploaded STEP file rather than only on screenshots or the original design description.</p><p>The results provide another view of the assembly.</p><h3>Assembly structure</h3><p>Inspection itemResultDistinct part models16Placed component instances22Expanded BREP solids24Geometric faces500Overall BREP validityPassed</p><p>There is an important distinction between the 15 MANIFOLD_SOLID_BREP definitions recorded in the STEP file and the 24 solids found after the assembly is expanded by the geometry kernel.</p><p>The STEP file stores reusable geometry definitions and assembly references. When component instances are expanded, repeated placements contribute additional solids.</p><p>These numbers describe different levels of the same assembly structure.</p><h3>Overall dimensions</h3><p>The imported assembly has the following bounding-box dimensions:</p><p>DirectionDimensionX7,000 mmY2,155 mmZ3,700 mm</p><p>The 7,000 mm dimension corresponds to the main tank’s overall axial length.</p><p>The other two dimensions include the surrounding support and access structures, rather than describing the cylindrical shell alone.</p><h3>Shell and head geometry</h3><p>The STEP geometry inspection also found cylindrical and spherical surfaces consistent with the specified tank structure.</p><p>The shell and hemispherical heads use the 2,000 mm outer-diameter design and the 8 mm reference wall thickness.</p><p>This is particularly important because the original brief explicitly required true hemispherical heads.</p><p>It demonstrates why inspecting the underlying geometry is more useful than relying only on a rendered appearance.</p><h3>Geometric validity</h3><p>The geometry kernel reported that the imported assembly passed its BREP validity check.</p><p>This means the imported boundary-representation geometry passed the kernel’s topological validity test.</p><p>It does not mean that every component relationship, weld, fit, or engineering requirement has been proven correct.</p><p>Geometry validity and engineering validity are different things.</p><h3>7. Exporting the Assembly</h3><p>The completed assembly was exported in STEP AP214 format.</p><p>STEP is an important exchange format in mechanical engineering because it allows CAD geometry to be transferred between different systems.</p><p>The published Showcase records the export as a valid ISO-10303–21 AP214 file, approximately 977 KB in size.</p><p>The actual uploaded STEP file was also successfully read by an independent geometry kernel.</p><p>This provides evidence that the exported file contains readable geometric data and a structured assembly representation.</p><p>However, one limitation must be made clear.</p><p><strong>Live STEP readback into SolidWorks 2025 was not successfully verified in this environment.</strong></p><p>The documented SolidWorks COM import path returned err=1, including when testing a minimal self-exported STEP file. A controlled restart did not resolve the issue.</p><p>The verify_step_readback tool and its Fake backend contracts are present, but that does not establish successful readback through the live SolidWorks backend.</p><p>In other words, STEP export and independent geometry inspection were successful, while the SolidWorks round-trip import test remains an environment limitation.</p><p>This distinction is important for a technically honest case study.</p><h3>8. What This Case Demonstrates — and What It Does Not</h3><p>The horizontal oil tank project demonstrates several practical capabilities of AI-assisted CAD automation.</p><h3>What it demonstrates</h3><p><strong>1. Multi-part modeling workflows</strong></p><p>The system can be used to create a project organized around multiple independent part models rather than a single solid.</p><p><strong>2. Assembly construction</strong></p><p>The documented result contains 22 component instances and 21 assembly mates.</p><p><strong>3. Stateful CAD interaction</strong></p><p>The workflow exercises component insertion, mating, assembly inspection, and verification tools.</p><p><strong>4. Geometry inspection</strong></p><p>The exported STEP file can be independently examined for component structure, geometric entities, dimensions, and BREP validity.</p><p><strong>5. CAD data exchange</strong></p><p>The assembly was exported to STEP AP214 and successfully read by an independent geometry kernel.</p><h3>What it does not prove</h3><p>There are also important boundaries.</p><p>First, a valid geometric model does not establish that a storage tank is safe for manufacturing or operation.</p><p>The model should not be interpreted as a pressure-vessel design certified against ASME, GB 150, or any other engineering code.</p><p>Wall-thickness adequacy, pressure calculations, material selection, welding, nozzle reinforcement, support loads, fatigue, and structural integrity require separate engineering analysis.</p><p>Second, assembly constraints do not prove that every component is positioned according to engineering intent.</p><p>Third, the STEP inspection does not recover the original SolidWorks feature tree, sketch definitions, or native mate definitions.</p><p>Finally, the published design brief is an input specification, not proof that every requested detail was satisfied.</p><p>These limitations do not diminish the value of the case. They define what has actually been demonstrated and what still needs further validation.</p><h3>9. The Bigger Picture: From AI Modeling to AI-Assisted Engineering Workflows</h3><p>The most interesting aspect of this project is not the tank itself.</p><p>It is the workflow behind it.</p><p>A complex mechanical product can be described in natural language, divided into functional components, created through CAD operations, assembled, inspected, and exported.</p><p>MCP provides a standardized way for an AI agent to interact with these capabilities.</p><p>cadmcp provides the connection to SolidWorks.</p><p>The combination makes it possible to explore a more practical form of AI-assisted mechanical design: one in which the AI agent does not merely generate a picture or suggest a modeling approach, but interacts with a real CAD application and produces structured CAD data.</p><p>There is still a considerable distance between automated geometry creation and fully autonomous engineering design.</p><p>But that distinction should not obscure the progress represented by a real multi-part assembly.</p><p>The next step is not simply to make AI create more complex shapes.</p><p>It is to improve the reliability of the entire workflow:</p><ul><li>More robust feature and parameter management.</li><li>Better assembly planning and constraint handling.</li><li>More comprehensive geometry and interference verification.</li><li>Reliable CAD export and data exchange.</li><li>Stronger links between design requirements and verification results.</li></ul><p>These are the areas where AI-driven CAD systems can become increasingly useful to mechanical engineers.</p><h3>Conclusion</h3><p>The horizontal oil tank assembly is a practical example of how AI agents can interact with SolidWorks through MCP.</p><p>Starting from a natural-language engineering brief, the project produced 16 distinct part models and an assembly containing 22 component instances and 21 mates.</p><p>The exported STEP AP214 file was independently inspected, revealing 24 expanded BREP solids and 500 geometric faces. Its overall geometry passed the kernel’s BREP validity check.</p><p>At the same time, the case makes clear that successful CAD modeling is not the same as complete engineering validation.</p><p>That is an important principle for the future of AI-assisted mechanical design.</p><p><strong>The goal is not merely to make AI draw a mechanical product. It is to make AI work with real engineering systems, produce structured CAD models, and support a workflow in which results can be inspected and verified.</strong></p><p>That is the direction we are exploring with cadmcp.</p><p><strong>Project:</strong> cadmcp — Open-source MCP server for SolidWorks<br><strong>GitHub:</strong> <a href="https://github.com/pakupaku5260/cad-mcp">https://github.com/pakupaku5260/cad-mcp</a><br><strong>Website:</strong> <a href="https://cad.npanic.com/">https://cad.npanic.com/</a><br><strong>Case Study:</strong> <a href="https://cad.npanic.com/showcase/oil-tank">https://cad.npanic.com/showcase/oil-tank</a><br><strong>Documentation:</strong> <a href="https://cad.npanic.com/tools/">https://cad.npanic.com/tools/</a></p><p>cadmcp is an independent open-source project and is not affiliated with Dassault Systèmes or SolidWorks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10d559fa04b5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Future of AI-Powered Mechanical Design]]></title>
            <link>https://medium.com/@shiyang19822000/the-future-of-ai-powered-mechanical-design-830c8f2c54d6?source=rss-829569ad8b59------2</link>
            <guid isPermaLink="false">https://medium.com/p/830c8f2c54d6</guid>
            <category><![CDATA[mcps]]></category>
            <category><![CDATA[mechanical-engineering]]></category>
            <category><![CDATA[cad]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[David Shi]]></dc:creator>
            <pubDate>Mon, 23 Nov 2026 01:48:23 GMT</pubDate>
            <atom:updated>2026-11-23T01:48:23.723Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Future of AI-Powered Mechanical Design: From CAD Automation to Engineering Intelligence</h3><p>How AI agents, MCP, and engineering knowledge could transform the way mechanical products are designed, modeled, assembled, and verified.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lscTThLiLPoryS7q9MxyFQ.jpeg" /></figure><h3>Introduction: CAD Is Entering a New Era</h3><p>For decades, mechanical engineers have relied on sophisticated CAD software to design products, build assemblies, generate engineering drawings, and prepare manufacturing data.</p><p>These tools are powerful.</p><p>But they also require users to understand complex interfaces, modeling operations, geometric relationships, and engineering workflows.</p><p>Artificial intelligence is beginning to change how people interact with these systems.</p><p>Instead of manually navigating every command, engineers can describe their intentions in natural language and ask AI agents to perform supported operations.</p><p>A user might say:</p><blockquote><em>Create a mounting bracket with four holes, assemble it with the shaft support, generate an engineering drawing, and export the model as STEP.</em></blockquote><p>This sounds like a simple instruction.</p><p>But behind it are many engineering tasks:</p><ul><li>Understanding the design requirements</li><li>Planning the modeling sequence</li><li>Creating parametric geometry</li><li>Selecting the correct faces and edges</li><li>Building component relationships</li><li>Generating engineering documentation</li><li>Checking geometric consistency</li><li>Preparing files for downstream applications</li></ul><p>The real challenge is not simply making AI generate a 3D shape.</p><p>It is connecting AI to the entire engineering workflow.</p><p>This is where AI agents and the Model Context Protocol (MCP) become interesting.</p><h3>1. From Command-Based CAD to Intent-Based CAD</h3><p>Traditional CAD software is primarily organized around commands and operations.</p><p>An engineer typically follows a workflow:</p><ol><li>Open a part document.</li><li>Select a reference plane.</li><li>Create a sketch.</li><li>Add dimensions and constraints.</li><li>Create an extrusion or other feature.</li><li>Modify the resulting geometry.</li><li>Inspect the model.</li><li>Save or export the document.</li></ol><p>This workflow is familiar to experienced CAD users.</p><p>However, it requires knowledge of the software’s interface and modeling conventions.</p><p>AI introduces another interaction model.</p><p>Instead of specifying every individual command, the engineer can describe the intended result.</p><p>For example:</p><blockquote><em>Create a 100 × 50 × 10 mm mounting plate with four Ø6 through-holes.</em></blockquote><p>An AI agent interprets the request, plans the modeling operations, and invokes the relevant CAD tools.</p><p>The engineer communicates design intent.</p><p>The AI agent coordinates the operations.</p><p>The CAD application creates the actual geometry.</p><p>This is a shift from command-oriented interaction toward intent-oriented interaction.</p><p>However, natural language does not eliminate the need for precise engineering requirements.</p><p>If the request is ambiguous, the agent should ask for clarification rather than invent missing dimensions or constraints.</p><h3>2. The First Layer: AI-Assisted 3D Modeling</h3><p>The most visible application of AI in mechanical design is automated part modeling.</p><p>A typical workflow looks like this:</p><pre>Natural Language Request<br>          |<br>          v<br>      AI Agent<br>          |<br>          v<br>    Design Planning<br>          |<br>          v<br>      MCP Tools<br>          |<br>          v<br>     CAD Backend<br>          |<br>          v<br>   SolidWorks Model<br>          |<br>          v<br>   Geometry Inspection</pre><p>The agent translates the user’s requirements into a sequence of operations.</p><p>For example:</p><ul><li>Create a new part.</li><li>Start a sketch.</li><li>Draw a rectangle.</li><li>Define dimensions.</li><li>Extrude the profile.</li><li>Add holes.</li><li>Inspect the resulting geometry.</li></ul><p>The important distinction is that the result is a real CAD model, not simply an image of a mechanical component.</p><p>A useful AI CAD system should also be able to retrieve information about the resulting model.</p><p>It should know the dimensions, feature structure, volume, and geometric properties rather than relying entirely on visual appearance.</p><p>This makes it possible to compare the result against the original request.</p><h3>3. The Second Layer: AI-Assisted Assembly Design</h3><p>Most mechanical products consist of multiple components.</p><p>A shaft, bearing, bracket, housing, and fastener may each be relatively simple parts.</p><p>But their relationships are what make the assembly function.</p><p>AI-assisted assembly design introduces additional challenges.</p><p>An agent must understand:</p><ul><li>Which components are required</li><li>How they should be positioned</li><li>Which geometric entities should be selected</li><li>Which mates should be applied</li><li>Which degrees of freedom should remain</li><li>Whether components interfere with one another</li></ul><p>For example, consider a shaft supported by two bearings.</p><p>A visually correct arrangement is not enough.</p><p>The shaft axis must align with the bearing axes.</p><p>The axial position must be controlled appropriately.</p><p>The assembly must preserve any intended rotational freedom.</p><p>This is why assembly automation is fundamentally different from simply placing several 3D models in the same document.</p><p>AI needs access to geometric relationships, component information, and assembly operations.</p><h3>4. The Third Layer: Understanding Existing CAD Models</h3><p>Creating new parts is only one part of engineering work.</p><p>In many companies, engineers spend a considerable amount of time working with existing models.</p><p>They need to understand:</p><ul><li>Feature history</li><li>Sketch dimensions</li><li>Design parameters</li><li>Geometric entities</li><li>Model dependencies</li><li>Existing configurations</li></ul><p>An AI agent that can inspect an existing CAD document could help answer questions such as:</p><blockquote><em>What is the current thickness of this component?</em></blockquote><blockquote><em>Which feature created this hole?</em></blockquote><blockquote><em>Which dimensions control the overall length?</em></blockquote><blockquote><em>What might be affected if I increase the base thickness?</em></blockquote><p>This moves AI beyond generating geometry.</p><p>It begins to make the existing engineering document accessible through structured information.</p><p>A useful workflow would combine:</p><ul><li>Feature-tree inspection</li><li>Dimension queries</li><li>Geometry analysis</li><li>Face and edge identification</li><li>Parameter modification</li><li>Rebuild and verification</li></ul><p>There is an important distinction between retrieving model information and understanding engineering intent.</p><p>Knowing that a hole has a diameter of 8 mm does not automatically tell the AI whether it is a clearance hole, a locating hole, or a functional bearing interface.</p><p>That requires additional engineering context.</p><h3>5. The Fourth Layer: Engineering Knowledge and Standard Parts</h3><p>One of the most interesting opportunities is connecting AI agents to external engineering knowledge.</p><p>Mechanical engineering already has a large ecosystem of standardized components:</p><ul><li>Bolts and screws</li><li>Nuts and washers</li><li>Bearings</li><li>Retaining rings</li><li>Pins</li><li>Keys</li><li>Shafts</li><li>Seals</li></ul><p>Instead of generating every component from scratch, an AI agent could retrieve the correct component from a verified library.</p><p>Imagine asking:</p><blockquote><em>Add four M8 × 30 ISO 4017 bolts with matching washers to this assembly.</em></blockquote><p>A future system could:</p><ol><li>Interpret the request.</li><li>Identify the applicable standards.</li><li>Retrieve the corresponding specifications.</li><li>Validate the dimensions.</li><li>Locate the matching CAD models.</li><li>Insert the components.</li><li>Establish the required assembly relationships.</li></ol><p>Retrieval-Augmented Generation (RAG) could help the agent understand technical descriptions and discover relevant engineering information.</p><p>A structured database could provide exact dimensional values.</p><p>A CAD library or parametric generator could provide the actual geometry.</p><p>MCP could connect the resulting workflow to SolidWorks.</p><p>This combination could significantly improve the reliability of standard-component retrieval.</p><p>However, a verified standard-parts RAG system is a separate development task. It should not be confused with an existing built-in feature of cadmcp.</p><p>The broader principle is:</p><p><strong>AI should not have to invent engineering knowledge that already exists in verified technical sources.</strong></p><h3>6. The Fifth Layer: Engineering Drawings and Documentation</h3><p>A 3D model is not necessarily the final deliverable.</p><p>Mechanical engineering projects often require:</p><ul><li>Orthographic views</li><li>Section views</li><li>Dimensions</li><li>Geometric tolerances</li><li>Surface-finish information</li><li>Bill of Materials</li><li>Title blocks</li><li>PDF and DXF exports</li></ul><p>AI agents could help coordinate these operations.</p><p>For example:</p><blockquote><em>Generate an A3 engineering drawing for this mounting bracket, including front, top, side, and isometric views.</em></blockquote><p>The agent could create the drawing document, insert views, add supported annotations, and export the result.</p><p>But documentation requires more than placing dimensions on a sheet.</p><p>The agent must understand which dimensions are functionally important, which tolerances are required, and what information is necessary for manufacturing and inspection.</p><p>Inserting a dimension does not mean the drawing is complete.</p><p>Adding a GD&amp;T annotation does not mean the selected tolerance scheme is correct.</p><p>Engineering review remains essential.</p><h3>7. The Sixth Layer: Verification Must Be Part of the Workflow</h3><p>One of the biggest mistakes in AI-driven CAD would be treating successful tool execution as proof of engineering correctness.</p><p>Consider a simple operation:</p><blockquote><em>Extrude this sketch by 10 mm.</em></blockquote><p>SolidWorks may successfully create the feature.</p><p>But that does not necessarily prove that:</p><ul><li>The sketch was correct.</li><li>The intended profile was selected.</li><li>The resulting geometry has the expected dimensions.</li><li>No unintended bodies were created.</li><li>Downstream features remain valid.</li></ul><p>A more reliable workflow should include verification after important operations.</p><p>For example:</p><p>OperationPossible verificationCreate a sketchDimensions and constraintsExtrude a profileVolume and bounding boxCreate a holeDiameter, position, and depthInsert a componentComponent identity and positionCreate a mateMate status and remaining freedomModify a parameterRebuild status and geometry comparisonExport a fileFile existence and format checks</p><p>This suggests an important design principle:</p><p><strong>AI-driven CAD should be a closed-loop process, not a one-way sequence of commands.</strong></p><p>The agent should:</p><ol><li>Plan an operation.</li><li>Execute it.</li><li>Retrieve the resulting state.</li><li>Compare the result against expected conditions.</li><li>Correct the operation when appropriate.</li><li>Report unresolved problems.</li></ol><p>The purpose of verification is not to guarantee that every design is correct.</p><p>It is to make errors more visible, decisions more traceable, and engineering review more effective.</p><h3>8. Why MCP Matters</h3><p>The Model Context Protocol provides a standardized way for AI applications to communicate with external tools and services.</p><p>For CAD automation, this is particularly useful.</p><p>Without a standardized integration layer, every AI application may need its own custom connection to the CAD software.</p><p>MCP provides a common tool interface.</p><p>An AI client can discover supported operations and invoke them through an MCP server.</p><p>A simplified architecture looks like this:</p><pre>AI Applications<br>    Cursor / Claude / Others<br>              |<br>              v<br>          MCP Client<br>              |<br>              v<br>         MCP Server<br>              |<br>              v<br>        CAD Tool Layer<br>              |<br>              v<br>        CAD Backend<br>          /       \<br>         /         \<br>        v           v<br>   Fake Backend   Real Backend<br>                      |<br>                      v<br>                COM / STA<br>                      |<br>                      v<br>                  SolidWorks</pre><p>The architecture separates several responsibilities.</p><p>The AI application interprets the user’s request.</p><p>The MCP server exposes available CAD operations.</p><p>The backend handles application-specific execution.</p><p>The CAD application performs the actual modeling.</p><p>This separation also makes it possible to develop and test parts of the integration without requiring a running CAD application.</p><p>For a Windows COM-based application such as SolidWorks, thread management is especially important.</p><p>A dedicated Single-Threaded Apartment (STA) execution model helps keep COM operations within the required execution context.</p><p>This is an engineering concern that is easy to overlook when focusing only on AI prompts.</p><h3>9. What We Are Building with cadmcp</h3><p>cadmcp is an open-source project exploring this approach.</p><p>Its purpose is to connect AI agents to real SolidWorks modeling and engineering workflows through MCP.</p><p>The current public implementation exposes 163 tools across 15 toolsets.</p><p>These cover several areas:</p><p><strong>Core modeling</strong></p><p>Documents, sketches, basic features, and model queries.</p><p><strong>Advanced features</strong></p><p>Threads, helices, sweeps, surfaces, and feature operations.</p><p><strong>Assemblies</strong></p><p>Component insertion, mates, and component operations.</p><p><strong>Engineering drawings</strong></p><p>Drawing views, annotations, DrawingSpec, and inspection operations.</p><p><strong>Sketch and sheet-metal operations</strong></p><p>Advanced sketch entities, constraints, dimensions, flanges, hems, and flat patterns.</p><p><strong>Selection and inspection</strong></p><p>Face and edge selection helpers, geometry queries, and model information.</p><p><strong>Export and workflow support</strong></p><p>STEP, STL, PDF, DXF, task execution, rules, verification, and diagnostics.</p><p>The project also separates the shared backend protocol from its real SolidWorks implementation and offline Fake backend.</p><p>For real geometry, the documented environment currently requires Windows, SolidWorks 2025, Python 3.11 or newer, and pywin32.</p><p>The Fake backend allows developers to test MCP connectivity and backend workflows without SolidWorks. It does not create real SolidWorks geometry.</p><p>These capabilities provide a foundation for exploring more integrated AI-assisted engineering workflows.</p><h3>10. What Is Available Today and What Comes Next?</h3><p>It is important to distinguish current implementation from longer-term possibilities.</p><p>The following table summarizes the distinction.</p><p>AreaCurrent project positionNatural language-assisted part modelingSupported through MCP tool workflowsGeometry and mass-property queriesAvailableAssembly components and matesAvailableDrawing and annotation operationsAvailableSheet-metal operationsAvailableSTEP, STL, PDF, and DXF exportAvailableModel rules and verification toolsAvailableDesignSpec intent validationAvailable; not a complete autonomous design engineStandard-parts RAG libraryFuture development opportunityAutomatic engineering design decisionsNot a general current capabilityFully autonomous mechanical product designLong-term vision, not a current claim</p><p>This distinction matters.</p><p>The goal is not to claim that AI can already replace a mechanical engineer.</p><p>The goal is to build a practical foundation that makes engineering operations more accessible, repeatable, and verifiable.</p><h3>11. The Future: From CAD Automation to Engineering Intelligence</h3><p>Looking further ahead, several developments could make AI-powered mechanical design much more capable.</p><h3>Engineering Knowledge Integration</h3><p>AI agents could access company standards, material databases, supplier catalogs, and verified component libraries.</p><p>This would allow them to retrieve information rather than relying exclusively on model-generated answers.</p><h3>Design Intent and Constraint Reasoning</h3><p>Agents could interpret functional requirements and translate them into geometric and parametric constraints.</p><p>They could also identify missing information and ask engineers for clarification.</p><h3>Multi-Stage Engineering Workflows</h3><p>A single design task could coordinate:</p><ul><li>Part modeling</li><li>Assembly construction</li><li>Drawing generation</li><li>Geometry verification</li><li>File export</li><li>Engineering documentation</li></ul><h3>Design Alternatives</h3><p>AI could help generate several candidate designs and compare them against specified requirements.</p><p>For example, it could compare different bracket geometries based on weight, dimensions, and specified constraints.</p><p>The engineer would still need to evaluate strength, fatigue, manufacturability, and other relevant engineering criteria.</p><h3>Human-in-the-Loop Engineering</h3><p>Perhaps the most important development will be better collaboration between engineers and AI agents.</p><p>The AI could perform repetitive modeling operations, gather technical information, and prepare design alternatives.</p><p>The engineer would define requirements, approve important changes, and validate the final result.</p><p>This is a more realistic direction than expecting an AI model to independently make every engineering decision.</p><h3>12. A New Way to Think About Mechanical Design</h3><p>The future of AI-powered mechanical design may involve three interconnected systems.</p><p><strong>The AI System</strong></p><p>Understands user requirements, plans operations, and coordinates tools.</p><p><strong>The Engineering Knowledge System</strong></p><p>Provides standards, dimensions, materials, component information, and design rules.</p><p><strong>The CAD Execution System</strong></p><p>Creates geometry, manages assemblies, generates drawings, and verifies model state.</p><p>MCP provides a communication layer that allows these systems to work together.</p><p>The result is potentially much more powerful than a simple natural-language interface to CAD commands.</p><p>It is an environment where design intent, engineering knowledge, and executable CAD operations can be connected.</p><h3>Final Thoughts</h3><p>AI is changing the way people interact with software.</p><p>Mechanical design is no exception.</p><p>The first step is allowing AI agents to create and modify real CAD geometry.</p><p>The next step is helping them understand existing models, assemble components, generate engineering documentation, and retrieve verified engineering information.</p><p>Beyond that lies a broader opportunity: connecting AI agents to the knowledge and workflows that support the entire mechanical design process.</p><p>Projects like cadmcp are exploring the infrastructure needed to make this possible.</p><p>There is still substantial work ahead.</p><p>Engineering standards must be handled carefully. Geometric operations must be verified. Assembly relationships must be understood. Design decisions must remain traceable. And engineers must retain control over critical technical judgments.</p><p>But the direction is becoming clear.</p><p><strong>The future of AI-powered mechanical design is not just about generating geometry. It is about connecting design intent, engineering knowledge, CAD execution, and verification into one coherent workflow.</strong></p><p>If you are working on AI agents, MCP, CAD automation, or mechanical engineering software, I would welcome your feedback and contributions.</p><p>Explore cadmcp:</p><p>GitHub:<br><a href="https://github.com/pakupaku5260/cad-mcp">https://github.com/pakupaku5260/cad-mcp</a></p><p>Project Website:<br><a href="https://cad.npanic.com/">https://cad.npanic.com/</a></p><p>Getting Started:<br><a href="https://cad.npanic.com/getting-started/">https://cad.npanic.com/getting-started/</a></p><p>Tool Reference:<br><a href="https://cad.npanic.com/tools/">https://cad.npanic.com/tools/</a></p><p>Architecture:<br><a href="https://cad.npanic.com/architecture/">https://cad.npanic.com/architecture/</a></p><p><em>cadmcp is an independent open-source project and is not affiliated with Dassault Systèmes. SOLIDWORKS® is a registered trademark of Dassault Systèmes SolidWorks Corporation.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=830c8f2c54d6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Standard Parts Library for AI-Driven CAD]]></title>
            <link>https://medium.com/@shiyang19822000/building-a-standard-parts-library-for-ai-driven-cad-c228144583fe?source=rss-829569ad8b59------2</link>
            <guid isPermaLink="false">https://medium.com/p/c228144583fe</guid>
            <category><![CDATA[mechanical-engineering]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[cad]]></category>
            <category><![CDATA[mcps]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[David Shi]]></dc:creator>
            <pubDate>Fri, 20 Nov 2026 02:21:17 GMT</pubDate>
            <atom:updated>2026-11-20T02:21:17.193Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building a Standard Parts Library for AI-Driven CAD: Connecting RAG with SolidWorks</h3><p>How retrieval-augmented generation could help AI agents identify, retrieve, and use standardized mechanical components in CAD workflows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zz_WqdxnyIqd5lZPWdvKTA.jpeg" /></figure><h3>Introduction: Why Should AI Recreate Every Mechanical Part?</h3><p>Imagine an engineer asking an AI assistant:</p><blockquote><em>Add four M8 hex bolts, ISO 4017, with matching washers to this assembly.</em></blockquote><p>For a human mechanical engineer, this is a relatively straightforward request.</p><p>They understand that:</p><ul><li>M8 identifies the nominal thread size.</li><li>ISO 4017 defines a hexagon head bolt with full thread.</li><li>The bolt needs a specific length.</li><li>The washers must have compatible dimensions.</li><li>The components must be positioned correctly in the assembly.</li></ul><p>But what happens when an AI agent receives this instruction?</p><p>Should it create a bolt from scratch using cylinders, extrusions, and threads?</p><p>Should it search through thousands of CAD files?</p><p>Should it retrieve a component from a standard-parts database?</p><p>Or should it use an existing CAD library?</p><p>This leads to an important question for AI-driven CAD:</p><p><strong>Why should an AI agent recreate standardized components when it could retrieve the correct component from a verified library?</strong></p><p>In mechanical engineering, standard parts are everywhere.</p><p>Bolts, nuts, washers, bearings, retaining rings, keys, pins, and other standardized components appear in countless designs.</p><p>A well-organized standard-parts library could become an important foundation for more reliable AI-assisted mechanical design.</p><p>One promising approach is to combine a structured parts database with Retrieval-Augmented Generation (RAG).</p><h3>1. The Problem with Generating Standard Parts from Scratch</h3><p>Large language models are good at interpreting natural language.</p><p>They can understand requests such as:</p><ul><li>Insert an M8 bolt.</li><li>Use a deep-groove ball bearing.</li><li>Add a retaining ring to the shaft.</li><li>Replace the existing fastener with a longer version.</li></ul><p>However, understanding a component name is not the same as identifying its correct engineering specification.</p><p>Consider an M8 hexagon head bolt.</p><p>Its complete specification may include:</p><ul><li>Standard number</li><li>Nominal thread diameter</li><li>Thread pitch</li><li>Overall length</li><li>Head dimensions</li><li>Thread length</li><li>Material</li><li>Strength class</li><li>Surface treatment</li></ul><p>An AI model might know that an M8 bolt has a nominal thread diameter of 8 mm.</p><p>But it should not be expected to reliably generate every other dimension from memory.</p><p>Even a small dimensional error can create problems:</p><ul><li>Incorrect clearances</li><li>Incompatible mating parts</li><li>Invalid assembly geometry</li><li>Incorrect bills of materials</li><li>Manufacturing and procurement mistakes</li></ul><p>This is why standardized mechanical components should not depend entirely on language-model knowledge.</p><p>They should come from controlled, traceable data sources.</p><h3>2. What Is a Standard Parts Library?</h3><p>A standard-parts library is a structured collection of mechanical components defined by recognized standards or verified supplier specifications.</p><p>For example:</p><p>CategoryTypical componentsFastenersBolts, screws, nuts, washersBearingsDeep-groove, angular-contact, tapered rollerRetaining componentsRetaining rings, circlipsTransmissionKeys, splines, shaftsPinsDowel pins, cylindrical pins, taper pinsSealingO-rings, gaskets, sealing rings</p><p>Each component should have structured information.</p><p>For example, a bolt record might contain:</p><pre>{<br>  &quot;category&quot;: &quot;fastener&quot;,<br>  &quot;standard&quot;: &quot;ISO 4017&quot;,<br>  &quot;part_type&quot;: &quot;hexagon_head_bolt&quot;,<br>  &quot;thread_size&quot;: &quot;M8&quot;,<br>  &quot;pitch&quot;: &quot;1.25 mm&quot;,<br>  &quot;length&quot;: &quot;30 mm&quot;,<br>  &quot;property_class&quot;: &quot;8.8&quot;,<br>  &quot;material&quot;: &quot;Steel&quot;,<br>  &quot;surface_treatment&quot;: &quot;Zinc plated&quot;<br>}</pre><p>This is only an illustrative data structure. A production library would need to define which fields are required for each standard and verify every value against an authoritative source.</p><p>The library should also connect each specification to its corresponding CAD representation.</p><p>In other words, it should not only know what a component is.</p><p>It should know how to retrieve or construct the corresponding engineering geometry.</p><h3>3. Why RAG Is Useful for Standard Parts</h3><p>Retrieval-Augmented Generation is a technique that allows an AI model to retrieve relevant external information before generating a response.</p><p>Instead of relying exclusively on information learned during training, the system retrieves information from an external knowledge source.</p><p>For standard parts, this is particularly useful.</p><p>Consider this request:</p><blockquote><em>Add an M8 × 30 ISO 4017 bolt with an ISO 7089 washer.</em></blockquote><p>A RAG-based workflow could perform the following steps:</p><ol><li>Understand the requested component types.</li><li>Identify the applicable standards.</li><li>Extract the dimensional parameters.</li><li>Search the standard-parts database.</li><li>Retrieve matching component records.</li><li>Check whether the requested specifications are supported.</li><li>Return the corresponding CAD component references.</li></ol><p>The language model interprets the request.</p><p>The retrieval system finds the relevant records.</p><p>The CAD backend performs the actual modeling or insertion operations.</p><p>This separation is important.</p><p><strong>The language model should interpret design intent, while verified engineering data should provide the component specifications.</strong></p><h3>4. A Possible Architecture: From Natural Language to Standard Components</h3><p>A standard-parts retrieval system for AI-driven CAD could be organized into several layers.</p><pre>Engineer<br>                |<br>                v<br>        Natural Language Request<br>                |<br>                v<br>             AI Agent<br>                |<br>                v<br>       Standard Specification<br>           Recognition<br>                |<br>                v<br>       Standard Parts Retrieval<br>                |<br>          +-----+-----+<br>          |           |<br>          v           v<br>     Structured     Semantic<br>      Database      Retrieval<br>          |           |<br>          +-----+-----+<br>                |<br>                v<br>       Specification Validation<br>                |<br>                v<br>       CAD Component Resolution<br>                |<br>                v<br>          MCP Interface<br>                |<br>                v<br>          cadmcp Server<br>                |<br>                v<br>           SolidWorks<br>                |<br>                v<br>       Component Insertion<br>                |<br>                v<br>       Assembly Verification</pre><p>Let’s examine the main layers.</p><h3>Layer 1: Natural Language Understanding</h3><p>The AI agent receives the user’s request.</p><p>For example:</p><blockquote><em>Add two M10 hexagon bolts, 40 mm long, and matching nuts.</em></blockquote><p>The agent identifies:</p><ul><li>Component category: Fastener</li><li>Bolt standard: To be specified or inferred only when sufficiently clear</li><li>Nominal thread: M10</li><li>Length: 40 mm</li><li>Quantity: 2</li><li>Additional component: Matching nuts</li></ul><p>If the user does not specify the standard, the agent should ask a clarification question when multiple standards could apply.</p><p>It should not silently assume that every hexagon bolt belongs to the same standard.</p><h3>Layer 2: Structured Standard Database</h3><p>A structured database stores exact component specifications.</p><p>A simplified record could look like:</p><pre>{<br>  &quot;standard&quot;: &quot;ISO 4017&quot;,<br>  &quot;part_type&quot;: &quot;hexagon_head_bolt&quot;,<br>  &quot;nominal_diameter&quot;: &quot;M10&quot;,<br>  &quot;length_mm&quot;: 40,<br>  &quot;thread_pitch_mm&quot;: 1.5,<br>  &quot;source&quot;: &quot;Verified standard data&quot;,<br>  &quot;revision&quot;: &quot;Recorded revision&quot;,<br>  &quot;status&quot;: &quot;verified&quot;<br>}</pre><p>In a real implementation, the source, revision, applicable dimensional tables, and verification status must be explicit.</p><p>This database is the foundation of reliable retrieval.</p><h3>Layer 3: Semantic Retrieval</h3><p>Not every user describes a component using its exact standard number.</p><p>An engineer might say:</p><ul><li>Hex bolt</li><li>Full-thread bolt</li><li>M10 fastening screw</li><li>ISO 4017 bolt</li><li>Standard M10 bolt</li></ul><p>A semantic retrieval system can help identify the likely component category and relevant records.</p><p>However, semantic similarity alone is not enough to select an engineering component.</p><p>A text search may find a similar description, but it cannot prove that two components have identical dimensions.</p><p>That is why semantic retrieval should be combined with structured filtering.</p><h3>Layer 4: Specification Validation</h3><p>Before a component is selected, the system should verify:</p><ul><li>Does the standard support the requested size?</li><li>Is the requested length available?</li><li>Are the dimensions consistent with the selected standard?</li><li>Are the material and property class compatible with the request?</li><li>Is the record verified?</li><li>Is the CAD representation available?</li></ul><p>If the requested size is not present in the database, the system should report that it cannot find a verified match.</p><p>It should never invent a missing standard dimension.</p><h3>5. Why a Hybrid RAG and Structured Database Is Better</h3><p>An important architectural decision is how to store and retrieve standard-parts information.</p><p>There are two possible approaches.</p><h3>Approach A: Pure RAG</h3><p>The system stores standard documents, technical tables, and component descriptions in a searchable knowledge base.</p><p>The AI retrieves relevant text and extracts the required information.</p><p>Advantages:</p><ul><li>Flexible natural language queries</li><li>Useful for interpreting technical descriptions</li><li>Can retrieve information from different document formats</li><li>Supports knowledge discovery</li></ul><p>Limitations:</p><ul><li>Numeric extraction can be unreliable</li><li>Similar component descriptions may refer to different standards</li><li>Document revisions may conflict</li><li>Retrieved text is not automatically a verified CAD specification</li></ul><h3>Approach B: Structured Database</h3><p>The system stores component specifications in normalized tables or structured records.</p><p>For example:</p><p>StandardTypeSizeLengthISO 4017Hex boltM830 mmISO 4017Hex boltM840 mmISO 4017Hex boltM1030 mmISO 4017Hex boltM1040 mm</p><p>Advantages:</p><ul><li>Precise numeric filtering</li><li>Predictable queries</li><li>Easier validation</li><li>Better integration with CAD generation</li></ul><p>Limitations:</p><ul><li>Requires structured data preparation</li><li>Less flexible for ambiguous descriptions</li><li>Requires maintenance when standards or source data change</li></ul><h3>Recommended Approach: Hybrid Retrieval</h3><p>For mechanical standard parts, a hybrid architecture is more suitable.</p><p>Use RAG to understand the user’s language and discover relevant standards.</p><p>Use a structured database to retrieve exact specifications.</p><p>Use deterministic validation to check whether the requested component is valid.</p><p>Use a CAD component library or controlled geometry generator to obtain the corresponding model.</p><p>The overall principle is:</p><p><strong>Use AI for interpretation, structured data for dimensions, and CAD operations for geometry.</strong></p><h3>6. Connecting the Standard Parts Library to SolidWorks</h3><p>Finding a standard component is only half the problem.</p><p>The system must also make that component available inside SolidWorks.</p><p>There are several possible approaches.</p><h3>Option 1: Retrieve Existing CAD Files</h3><p>The library stores verified CAD models.</p><p>When the agent identifies the required specification, it retrieves the corresponding file.</p><p>Possible formats include:</p><ul><li>SLDPRT</li><li>STEP</li><li>Other supported neutral CAD formats</li></ul><p>The system can then insert the retrieved component into a SolidWorks assembly.</p><p>Advantages:</p><ul><li>Reuses existing geometry</li><li>Avoids regenerating complex shapes</li><li>Can preserve supplier-provided models</li></ul><p>Challenges:</p><ul><li>Large file libraries</li><li>Multiple CAD formats</li><li>Different model quality levels</li><li>Configuration and naming management</li><li>Licensing and redistribution restrictions</li></ul><h3>Option 2: Generate Parametric Components</h3><p>Instead of storing every possible size, the system can use verified parametric templates.</p><p>For example, a bolt generator might accept:</p><pre>{<br>  &quot;standard&quot;: &quot;ISO 4017&quot;,<br>  &quot;thread_size&quot;: &quot;M8&quot;,<br>  &quot;length_mm&quot;: 30,<br>  &quot;property_class&quot;: &quot;8.8&quot;<br>}</pre><p>The generator uses verified dimensional data to create the component.</p><p>Advantages:</p><ul><li>Smaller library</li><li>Flexible dimensions</li><li>Consistent geometry</li><li>Easier support for multiple sizes</li></ul><p>Challenges:</p><ul><li>Each template needs careful implementation</li><li>Geometry must match the selected standard</li><li>Threads and other detailed features can increase model complexity</li><li>Generated components require validation</li></ul><h3>Option 3: Combine Retrieval and Generation</h3><p>A hybrid approach may be the most practical.</p><p>The system can retrieve existing CAD models for commonly used components.</p><p>For less common components, it can use verified parametric templates.</p><p>This reduces unnecessary geometry generation while keeping the library flexible.</p><p>The selection process should always preserve the source and verification status of the component.</p><h3>7. A Practical Example: Adding Fasteners to an Assembly</h3><p>Let’s consider a simple assembly containing a mounting plate.</p><p>The engineer asks:</p><blockquote><em>Add four M8 × 30 ISO 4017 bolts with matching ISO 7089 washers to the four mounting holes.</em></blockquote><p>A future AI-assisted workflow could look like this.</p><h3>Step 1: Interpret the Request</h3><p>The agent extracts:</p><pre>{<br>  &quot;bolt&quot;: {<br>    &quot;standard&quot;: &quot;ISO 4017&quot;,<br>    &quot;thread_size&quot;: &quot;M8&quot;,<br>    &quot;length_mm&quot;: 30,<br>    &quot;quantity&quot;: 4<br>  },<br>  &quot;washer&quot;: {<br>    &quot;standard&quot;: &quot;ISO 7089&quot;,<br>    &quot;thread_size&quot;: &quot;M8&quot;,<br>    &quot;quantity&quot;: 4<br>  }<br>}</pre><h3>Step 2: Retrieve the Components</h3><p>The retrieval system searches for:</p><ul><li>ISO 4017 M8 × 30 bolt</li><li>ISO 7089 M8 washer</li></ul><h3>Step 3: Validate the Specifications</h3><p>The system checks whether both records exist and whether their dimensional data is verified.</p><p>It also checks whether the corresponding CAD models or generation templates are available.</p><h3>Step 4: Obtain CAD Geometry</h3><p>The system retrieves or generates the bolt and washer models.</p><h3>Step 5: Insert Components into SolidWorks</h3><p>Through the CAD integration layer, the agent inserts four bolts and four washers into the assembly.</p><h3>Step 6: Establish Mates</h3><p>The agent identifies the mounting holes and positions the components using appropriate geometric relationships.</p><h3>Step 7: Inspect the Assembly</h3><p>The system checks:</p><ul><li>Component count</li><li>Component positions</li><li>Mate status</li><li>Potential interference</li><li>Assembly rebuild status</li></ul><h3>Step 8: Generate a Component List</h3><p>The system can prepare a structured component list for engineering review and procurement.</p><p>This example illustrates how standard-parts retrieval could become part of a larger AI-assisted assembly workflow.</p><p>It is an architectural example, not a claim that this complete RAG-to-SolidWorks workflow is already implemented in cadmcp.</p><h3>8. Data Quality Is More Important Than the Number of Parts</h3><p>A standard-parts library containing 100,000 unverified records may be less useful than one containing 1,000 accurate and well-documented records.</p><p>This is particularly important in mechanical engineering.</p><p>Every record should ideally contain:</p><p>FieldPurposeStandard numberIdentifies the applicable standardStandard revisionTracks the source editionComponent categoryClassifies the partNominal sizeIdentifies the primary sizeDimensionsDefines the geometryMaterialDescribes the material specificationMechanical propertiesDefines relevant performance informationCAD file or templateConnects data to geometrySourceRecords where the information came fromVerification statusIndicates whether the data has been checked</p><p>The system should also distinguish between:</p><ul><li>Verified standard data</li><li>Supplier-provided data</li><li>User-generated data</li><li>Unverified or incomplete records</li></ul><p>This distinction prevents an AI agent from treating every retrieved result as equally trustworthy.</p><p>Another important issue is licensing.</p><p>Standards documents, supplier CAD files, and technical catalogs may have different usage and redistribution restrictions.</p><p>A production library must respect those restrictions and maintain clear data provenance.</p><h3>9. Where cadmcp Fits into This Architecture</h3><p>cadmcp is an open-source MCP server that connects AI agents to SolidWorks operations.</p><p>Its current capabilities provide several useful building blocks for a future standard-parts workflow.</p><p><strong>Assembly operations</strong></p><p>The project provides tools for inserting components, creating mates, and performing component operations.</p><p><strong>Model inspection</strong></p><p>The agent can query geometry, faces, edges, feature information, and mass properties.</p><p><strong>Document and export operations</strong></p><p>The system can work with SolidWorks documents and export supported CAD formats.</p><p><strong>Backend architecture</strong></p><p>The protocol, real SolidWorks backend, and offline Fake backend are separated.</p><p>This provides a foundation for integrating external data services without making the standard-parts knowledge base part of the SolidWorks COM layer.</p><p>However, there is an important limitation:</p><p><strong>SolidWorks Toolbox is not currently integrated into cadmcp.</strong></p><p>A RAG-based standard-parts database is also a separate system that would need to be designed, implemented, populated, and tested.</p><p>The architecture described in this article represents a potential extension of the project, not an existing built-in feature.</p><p>You can explore the current implementation here:</p><p>GitHub:<br><a href="https://github.com/pakupaku5260/cad-mcp">https://github.com/pakupaku5260/cad-mcp</a></p><p>Project Website:<br><a href="https://cad.npanic.com/">https://cad.npanic.com/</a></p><p>Architecture:<br><a href="https://cad.npanic.com/architecture/">https://cad.npanic.com/architecture/</a></p><p>Tool Reference:<br><a href="https://cad.npanic.com/tools/">https://cad.npanic.com/tools/</a></p><h3>10. The Future: From CAD Automation to Engineering Knowledge Integration</h3><p>The larger opportunity goes beyond inserting bolts and washers.</p><p>Imagine an AI agent that can access several connected knowledge sources:</p><ul><li>Standard-parts databases</li><li>Material databases</li><li>Supplier catalogs</li><li>Existing company CAD libraries</li><li>Engineering design rules</li><li>Manufacturing constraints</li><li>Previous engineering projects</li></ul><p>The agent could then help engineers with more complex tasks.</p><p>For example:</p><blockquote><em>Replace the existing bearing with an equivalent model from another supplier.</em></blockquote><p>The system could retrieve candidate bearings, compare their specifications, check installation dimensions, and identify potential assembly changes.</p><p>Or:</p><blockquote><em>Find a suitable standard fastener for this mounting connection.</em></blockquote><p>The system could search the available standards and supplier records, then present candidates for engineering review.</p><p>This is a much broader concept than simple text-to-CAD generation.</p><p>It moves toward an engineering knowledge system in which AI agents can retrieve, reason about, and apply structured mechanical information.</p><p>However, selecting an engineering component also requires functional requirements, loading conditions, environmental conditions, and other design constraints.</p><p>A database match is not the same as engineering approval.</p><p>The engineer must remain responsible for validating the selected component.</p><h3>Final Thoughts</h3><p>AI-driven CAD should not require AI to recreate every component from scratch.</p><p>Mechanical engineering already has a large body of standardized components, verified dimensions, supplier models, and engineering knowledge.</p><p>The challenge is making this information accessible to AI agents in a reliable and structured way.</p><p>A combination of RAG, structured engineering databases, validated CAD libraries, and MCP-based application integration offers one promising direction.</p><p>RAG helps interpret requests and discover relevant information.</p><p>Structured databases provide exact specifications.</p><p>CAD libraries and parametric templates provide geometry.</p><p>MCP connects the resulting workflow to real engineering software.</p><p>For projects like cadmcp, this represents an opportunity to evolve beyond individual modeling operations toward a more intelligent engineering environment.</p><p><strong>The future of AI-driven CAD may not be about generating everything. It may be about knowing what already exists, finding the right component, and using it correctly.</strong></p><p>If you are working on AI agents, MCP, mechanical engineering databases, standard-parts libraries, or SolidWorks automation, I would welcome your feedback and contributions.</p><p><em>cadmcp is an independent open-source project and is not affiliated with Dassault Systèmes. SOLIDWORKS® is a registered trademark of Dassault Systèmes or its subsidiaries.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c228144583fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>