My simple MCP test project versus doing the same thing with the ADAM app in Onshape
As a simple test project I made featurescript to generate generalized rack gears for arbitrary pinon gears, with associated mate features getting created so it was easy to mate them up in an Assembly with all the usual gear relationships and so on.
Doing this with my OpenAI (Sol 5.6) account attached to Onshape MCP consumed 665/2500 PER-YEAR (?!?) API calls in my "Pro" account. Given how simple as task this was, this does not seem like a sustainable consumption rate…
It is also interesting to compare what the folks at ADAM are trying to do with text-to-part when doing this same little project. I do not particularly need an AI to sketch parts for me, it is way faster for me to draw them than to try to describe them to an LLM over and over until it gets them right. In fact ADAM isn't really set up to create feature studio for you - I had to cut and paste its intermediate FS work into an FS tab manually and then paste back error messages and commentary on results. Slow. Tedious. Not really an AI code development workflow, obviously.
But… ADAM can read and have its LLM understand your part studio and all your steps. And this turned out to be a great way to prompt the AI. It was faster to get the LLM on point and making featurescript with ADAM - even though that is not ADAM's intended use.
If I had some complicated part family I was trying to automate into a general featurescript I would really want my AI to be able to "see" the part studio and other spec docs in my Onshape Project.
Onshape MCP can code featurescript in a proper AI iterative process, but blows out your API limits doing so. And can't "see" anything inside your project so if you are trying to automate some legacy design process you will have to spell it out in words for your LLM. It will not access Part Studio tabs directly.
ADAM allows its LLM to see your part studio, try to understand it. Even modify it. But doesn't "want" to help you make a featurescript to automate doing things in the future. And will not access Feature Studio tabs directly. And thus can't iterate code without a human in the loop.
Obviously the union of these two partial solutions is possible. And possible right now as both of these things are running via API. What am I missing or doing wrong? (it was only my first day with MCP so perhaps I missed something key)
Comments
-
I haven't tried ADAM, so I can't comment on that, but an LLM which has decent browser use skills can see how you modeled something and come up with a FS based on that. You can also copy the literal FS that's in the part studio as a starting point.
I recommend watching this video, especially the part starting at the link time (~34:35). @GregBrown shows a couple ways of using an LLM (with the MCP connection, although that's not 100% necessary for this idea) to copy a model and turn it into a custom feature.
Simon Gatrall | Product Development, Engineering, Design, Onshape | Ex- IDEO, PCH, Unagi, Carbon | LinkedIn
0 -
@S1mon thanks.
Adam is the beginning of a neat idea among the paid-for application options in Onshape, and, more or less, does the part Greg showed in the video with respect to getting the FS into the LLM. In whole or in part. Hence my post.
I mean yes, we could cut and paste the right part(s) of completed part code out of OnShape and into our AI's; and then cut and paste the resulting featurescript back into Onshape. And if we point our LLM at some Git repo with all the relevant Featurescript docs and other elements we could bypass the MCP entirely. Which would also solve the issue of our API limits being too low to use this thing much…
Or we could all have really adept browser control agents that can that also bypass the MCP and just mouse along next to us.
But I'm pretty sure that's not the intended point of the MCP right? Surely not in the long run.
I'm imagining bouncing back and forth between me and the AI while sketching and modelling while "we" also talk in text. Even before the crazy-complicated part-model fully exists. Highlighting areas of the Part Studio build, those highlighted areas appearing in the LLM (a la how Adam works now) and the LLM responding with "is this what you mean relationship? Or this one?" In the form of direct-edit responses to the Part Studio. So I can see them not read them. Then ultimately, after "we" work it all out, evolving toward some Featurescript heavy multiple configuration generalized solution. Without ever looking at code, or cutting and pasting. Just designing with AI. (AI that someday may have enough of a spatial world/object model, beyond a language model, in them to be good a this.)
I also imagine not hitting an API limit experimenting with the bare basics on the way to that future.
So, while I am curious if my future vision is misaligned with OnShape here. I am also, and more immediately, interested in if something is going to be done about the API limit. Because it doesn't seem like 27% of my annual API budget on something so simple is sustainable. Surely not if I am going to work on things as complicated as shown in that video. Cutting and pasting existing FS code out or not won't impact that.0
Categories
- All Categories
- 10.2K Community Support
- 4.6K General
- 194 Account and subscriptions
- 353 Data management
- 1.6K Product Feedback
- 215 New in Onshape
- 14 Onshape Labs
- 75 CAM Studio
- 35 PCB Studio
- 107 Simulation
- 209 Onshape Mobile
- 315 App Store & Partners Apps
- 8.2K Using Onshape
- 1.8K Drawings
- 2.3K FeatureScript
- 324 Learning Center
- 253 Education Community
