Thinking about building an integrated calculation tool for Onshape
Hey there,
as mentioned last week in my comment of this feature request, I want to start a new discussion about the needs and ideas for an integrated calculation app for Onshape.
I'm proposing an engineering tool for basic to moderately complex calculations that accompany us on a daily basis: Bearing dimensioning, pressure vessel wall thickness, bolt size and quantity, drive torque, etc... In other words, calculations that don't warrant a FEA run but are crucial to dimension the design correctly. @c_büscher explained it beautifully in the linked feature request.
Of course the core of it is the bidirectional sync. Retrieve configuration values, variables or model parameters, use them to calculate a result, then push that result back into the design.
I would be delighted to get some feedback on this from you like:
- What features would you like to see most?
- What calculations would you like to do with it?
- What would be your preferred document style? A free canvas like Mathcad or SMath or rather something more structured and row based?
- What do you use currently to calculate, dimension or validate your design? Excel? Pen and Paper? …
- Would you like to be a beta tester for such a product?
Hope to hear from you! :)
Thanks, Jo
Comments
-
Not exactly sure what your asking for, but I'll give it a shot.
Here are some of the things Onshape is missing (perhaps your app can help) to be able to do things like this:- Ability to have an actual spreadsheet within Onshape that drives and is driven by variables. Variable studio isn't nearly capable enough for this.
- Ability to have equations and functions within a variable studio (or spreadsheet) that can be used to drive calculations anywhere in the document within any input.
- Ability to drive assembly values both ways (measured and non measured) so that these can control other calculations.
- Dynamic suppression for assembly features.
- Drive configurations of inserted instances via measured variables.
▚▞▚▞▚▞▚▞▚1 -
That's what I'm asking for, thank you for the quick reply.
We all have very individual workflows. I want to find out what people are looking for in terms of engineering calculations in Onshape.1 -
Having a spreadsheet would be useful for easily coping a bunch of configuration inputs to a table at once, something you cannot do now.
1 -
Since every project is new, a flexible tool would be my choice, and a spreadsheet with an easy to use i/o interface would probably come close. Next step, of course, is to re-use spreadsheets created in one document in another document, and that is where they become some kind of knowledge-modules or tools. That calls for storing them in a toolbox or knowledge library.
Would it make sense to create a FS that serves as the i/o for a referenced spreadsheet, collects upstream data and makes its output available for downstream features?
1 -
Ah I see. You can copy and paste them into different tabs but not to an external program like Excel. Good point but I can imagine that Onshape might provide that functionality at some point.
0 -
You mean a template system?
As for the I/O, partner apps talk via the REST API and a client side messaging layer. So better than a workaround with Feature Script actually :)
0 -
I have a .js / html solution for calculation and for a knowledge base based on TW. No clue if it could be integrated in any way shape or form. (And it could probably do with some extra usability)
(Any excuse to show off my stuff..)
Engineering textbook: https://hwh.stephenteacher.com/txtbook.html0 -
Having something like notebook cell style editor with numpy and dedicated onshape api client class and specific modules for a few kinds of engeneering calculations would be good. Even better if will have more grid data processing - running queries on onshape bom in few lines of code right in the embedded spreadsheet, then making batch export tasks would be even better. The assembly and inter-document manipulation for search and batch actions can benefit from that as well, and of course AI integration - probably even more important then everything above, because the engennering calculus will not be the same from now on, but the glue layer is missing for lots of tools
CADSharp - Onshape custom programming services + Onshape mechanical design services
1 -
That is neat Stephen!
I think it would be useful in general to provide some sort of library where common calculations can be shared. This ties in with Martins suggestion. But of course there is a lot of groundwork to be done before that.1 -
AI is definitely something I am planning to integrate but I don't want to plague the world with yet another AI wrapper. I think especially in engineering calculations we have to be very careful what we throw at LLMs and how much we trust the output.1 -
Once the tool is genuinely code-first the LLM will integrate very naturally, it will not calculate anything on itself, but write the deterministic and testable code, and the calculator can be very code-oriented. Notice how beneficial became the tools which expose all kinds of open api's, scripting layers, mcp's nowadays
CADSharp - Onshape custom programming services + Onshape mechanical design services
1 -
I partly agree, AI will make our work a lot easier and a solid integration is important.
I'm not sure about the code-first approach though. Based on my experience, very few CAD engineers who do the actual design work have real coding experience. Yes, the AI creates code that in turn calculates a result. But how do they verify and take accountability for the result if they don't understand the actual code (especially for more complex calculations)?
Just take Onshapes MCP for example. Yes, AI creates a FeatureScript that has code behind it which may not be understandable for every user. But the output is still geometry a CAD engineer is familiar with, can look at, verify and take accountability for it.
I think creating a visual and intuitive experience for design engineers as primary interface is the most important part. If AI can help them by creating calculation templates or automating stuff with just a simple prompt, great! At least that's how I look at it.0 -
I see what you are after, I'm an engineer myself after all. And from my experience the calculation can escalate quickly - today you want just to calculate an axis distance for a gear pair, tomorrow you already want an optimization for 3 stage gear reducer.
Luckily modern interactive notebooks (like say verso, which I familiar with) can emit whole UI from cell execution on the fly - this is the author's example of music player which was created right from cell execution:
And this is not only opensource but the frontend is web-first so it runs in the browser naturally, and at this point the integration would be as easy as just serve it by the callback path of onshape's iframe and make sure your notebook's language server of choice is exporting modules with specific calculator api's
CADSharp - Onshape custom programming services + Onshape mechanical design services
1 -
Yeah totally! One of my former project managers used to say: You start simple, then it gets complicated fast and then you can reduce it to simple again.
Thanks for the link, that was interesting to watch! I can see the appeal for power users and engineers who think in code. Still I have to say, this is not the direction I would go first for engineering calculations. AI gets better very fast (GPT-6 Astra wow), but it still makes dangerous errors sometimes. Even if AI spits out the entire calculation in a graphical and formatted way, how can you prove that it didn't make a mistake along the way and rendered some results wrong. You'd have to look at the actual code behind it.
I want to offer a structured and proven document and math layout engine that is catered to the needs of day to day CAD engineers and that AI can connect to if desired by the user.1
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




