Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:
- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Are perfume bottles like pellicans?
I've returned to using Onshape after a long hiatus, and fully bought into LLMs in the meantime. The Onshape featurescript MCP was interesting but not quite the right toolset for me. So I spent a week of evenings and made my own. My MCP is not something that is viable as a product or to make available to others, for lots of reasons, and not the subject of this post. I'm sure Onshape likely has something similar in the pipeline already and I look forward to what they crank out.
What I am interested in discussing is, what does an LLM collaboration look like when the output is physical. If you are not familiar, one of the visible indicators of LLM evolution is the
. I saw the
feature script perfume bottle and was curious if that was a good equivalent.
Here's what I got today:
PROMPT: Design a perfume atomizer.
The LLM worked for 8 minutes and finished its response with … `Is this for a real product or a concept? If it's real, give me the actual pump size (neck standard) and I'll match its dimension.`
My follow up was:
PROMPT: Real product. This does not look functional or manufacturable. Can you improve it?
… and when I noticed it talking about using a off-the-shelf pump …PROMPT: Can you design the pump? I'd rather we control all of the user experience, including pump stroke and pressure.
A further 25 minutes of work by the LLM resulted in this:
So this is an interesting data point. I'm not a perfume bottle designer so I'd need to spend some time reviewing the design to understand the true quality of it. But it looks plausible… Real product design has different inputs than the zero-shot prompt I gave. But it's interesting to see the zero-shot result.
What do we think? Is a perfume bottle sufficiently complex to stress test an LLM? Is the future of product design 3 lines of prompt?
Comments
-
The parts are roughly in the right places, but there's no DFM (draft, tolerances, etc) details that would make this actually manufacturable. It looks like what would happen if you got a random cross section off the web and revolved it. Maybe good enough for an illustration or a LinkedIn post, but nothing you can build a real product from.
With enough prompting from an engineer, you might get a lot closer, but realistically in the real world, you would be working with vendors that already make the internal components and you would only be customizing the cosmetic parts. If you're P&G or LVMH you'd have your own supply chain for these kinds of parts, and maybe occasionally you'd consider redesigning them or trying to innovate them, but in general you don't.
Simon Gatrall | Product Development, Engineering, Design, Onshape | Ex- IDEO, PCH, Unagi, Carbon | LinkedIn
0 -
`With enough prompting from an engineer` … There are two sides to this statement that I find interesting. First the idea that the engineer is needed. There are certainly industries and engineers that have built little moats around their institutional knowledge. Crossing moats takes time but not as long as it used to. Second, that the LLM does not have the ability to get there on it's own. There are LLMs that are the wrong fit; but I've found that with the standard general model of today, less is more. I've found that over-constraint of a problem by an engineer (i.e. myself) that thinks too much of the way they do things is more likely to cause problems with the result.
I've been leaving out the postscript the LLM wrote on finishing. A snippet:
Still open before prototypes
Neck sizes are my estimates. Sources confirm only about 15 mm over the bead and a minimum bore of 7.8 mm. Get the official FEA 15 / CETIE neck data sheet and check the bead and ferrule geometry against it.
Swirl slots aren't designed yet. The insert has a plain chamber, but the tangential slots are what set spray cone and droplet size. That's the next UX detail if you want it.
Press fits are drawn at exactly nominal size, and no draft angles are modelled yet. Interference fits and draft belong on the drawings.
I nudged the model to work on the open DFM issues.
PROMPT: Note the manufacturing process for each part and make sure they follow best practice in their design for each process.<snippet of modeling postscript>
Process per part
Part
Process
Key rules applied
Bottle
Glass, press-and-blow
2.6 mm wall, no sharp inner corners, heavy base with push-up and stand ring, no draft needed (mould splits sideways)
Neck gasket
Die-cut from 1.0 mm LDPE sheet
Plain washer, bore opened to 8.4 mm to clear the housing radius
Pump housing
Injection moulded PP
0.5° draft outside, bore left straight on purpose (it's the seal face — polished, not drafted), fillets at floor and flange, bore lead-in chamfer, flat spring seat, ball cage split into 3 snap fingers
Turret
Injection moulded PP
1° / 0.5° draft, R0.3 fillets, rim chamfered to clear the ferrule's radius
Ferrule
Deep drawn 0.3 mm aluminium, then crimped
Uniform wall, shallow single draw, corner radii 1.3× and 2.3× thickness so it won't split
Stem
Injection moulded POM
Bore runs right through, so the core pin is supported at both ends; seal diameter left straight; drafted collar; lead-in chamfer
Valve plunger
Injection moulded POM
Parting line at the widest diameter, draft each way from it, blind core only 4× its diameter deep, raised sealing bead
Piston
Injection moulded LDPE
Twin seal lips with a relieved waist (less friction, more tolerant); lips intentionally un-drafted and stripped off the core
Both springs
CNC coiled stainless, ground ends
Spring index and stress checked; return spring can't coil-bind at full stroke
Inlet ball
Bought-in precision ball
Catalogue size and grade — don't design a special ball
Dip tube
Extruded PE tube, cut to length
Constant section; cut length and a 45° end bevel go on the drawing
Actuator
Injection moulded PP, one side-action slide
1° draft keeping a constant 1.2 mm wall, 0.25° on the stem socket (guides on entry, grips at the top), R0.5 fillets, flow channel cored higher to kill a thick slug that would have sunk the top surface
Nozzle insert
Micro-moulded POM
Orifice shortened to 0.3 mm (length/diameter 1.2) — better spray and a core pin short enough to survive
Overcap
Injection moulded PP
1° draft at a constant 1.5 mm wall, grip zone left straight, snap bead only 0.25 mm so it strips off the core with no side action
</snippet of modeling postscript>
(I'm not trying to claim this is a good design. Just showing that DFM, of some form, is there)
But I take your point. Perfume bottles are commoditized and not interesting from a product design viewpoint. That's the point of the post. What is the interesting physical design benchmark?
I feel like
Design a <thing>.is not the interesting goal. In most of my current usage of LLMs my goals are a lot bigger than they were when they first came on the scene, and the biggest challenge I have is to get them to gather enough info to have enough of the nuance of what makes this project different than the others. But I've had good success just externalizing a lot of processes that were previously internal and poorly articulated.0 -
Just a little side note. Why are all the sketches not fully defined? Can LLMs not do that? Also, it would be interesting to know if the sketches and features are tied together at all. Just a glance at that feature tree makes me shudder at the thought of trying to clean it up (fully define sketches, etc.) or tweak it.
0 -
So far, for zero-shot the LLM has tended to position geometry by coordinate. When I've told it to use constrained sketches, it has done so. When I've told it to use a layout sketch to drive things, it has done that. So it does not seem to be a limitation, just a tendency.
Meanwhile, if the assembled device in my hands is what I want, do I really care about the how? I'm trying to figure this out…0 -
This is really new territory for me so I poked at this a bit more. Here's my side of the prompt chain:
Get the swirl slots in so we can iterate with the moulder. The client want the feeling of this bottle to be 'butterflies'. Can you give me three different design concepts? Descriptive -> Creative Commons image collage (in a dir is fine) -> onshape model first
passOne of the concept boards it gave:
And the model for that board:
Let's evolve Chrysalis to Concept A2: The images have an interesting asymmetry and distinctive and familiar shape. What I want to see is a bottle embossed with a 'butterfly inside a chrysalis' shape and a
cap that is the chrysalis shape, extending down to the base (leave 10mm exposed for grip on the bottle for unscrewing). The customer unscrews and the butterfly emerges. Read-back the conceptMy steer to it's read-back was:
1 True to nature. Molded plastic it should not be too top heavy.
2. No clocking. The base (bottle) neutral to orientation.
3. Thick clear acrylic
4. yes
5. Let's focus on the cap to start. Embossing is attractive. Economics might lean towards printing.
6. acceptable.For the chrysalis i'd like to see a surface model that includes the shape, especially the horizontal ridge that runs part-way around. Let's see your modeling chops!
Great start. [Image #1] [Image #2] [Image #3] are great exemplars. Can you work on achieving that profile a bit better?
Critique: I like what you did with the ridge. I don't feel like the shape narrows below the ridge in the same way that the photos do. On the ridge side of the profile (call that the ventral), the shape
narrows at almost the same angle as the top part approaches the rideg. See what I'm saying?
I stopped it there. I was curious how far it would get and I'm impressed with what it managed. I know that if someone asked me to model a chrysalis in Onshape, I'd laugh at them.Meanwhile I've drifted way off my original topic.
For the curious this was ~750k tokens of Opus 5 in one session, 1h 20min execution time and 712 Onshape API calls; 300 for the design with pump mechanism, 100 more for the DFM, and 300 for 3 industrial design concept models plus the model of the chrysalis shape.
Image credits:
| 1 | Chrysalis(Pupa) of a Common Crow Butterfly (Euploea core).jpg | Pon Malar | CC BY-SA 3.0 | https://commons.wikimedia.org/wiki/File:Chrysalis(Pupa)of_a_Common_Crow_Butterfly(Euploea_core).jpg |
| 2 | Its Nearly Ready (7006054626).jpg | aussiegall from sydney, Australia | CC BY 2.0 | https://commons.wikimedia.org/wiki/File:Its_Nearly_Ready_(7006054626).jpg |
| 3 | Kimbospacenut - This is some kinda moth cacoon (by).jpg | Kimberly Smith | CC BY 2.0 | https://commons.wikimedia.org/wiki/File:Kimbospacenut_-This_is_some_kinda_moth_cacoon(by).jpg |
| 4 | Monarch Chrysalis (48671250082).jpg | U. S. Fish and Wildlife Service - Northeast Region | Public domain | https://commons.wikimedia.org/wiki/File:Monarch_Chrysalis_(48671250082).jpg |
| 5 | NIE 1905 Butterflies and Moths.jpg | not specified for the most part, except one: W. J. Holland is given as a citation for Fig. 1; author of the article is Ernest Ingersoll | Public domain | https://commons.wikimedia.org/wiki/File:NIE_1905_Butterflies_and_Moths.jpg |
| 6 | Variegated Fritillary Chrysalis 01.png | Hannah Chandler | CC BY 4.0 | https://commons.wikimedia.org/wiki/File:Variegated_Fritillary_Chrysalis_01.png |0 -
I did have a recent experiment with Claude working on a custom feature that the office has been joking about me writing the "Water Tabler" feature to replace our drafting team with code for the last year and a half. I sat down and gave it a shot with Fable 5.1 and my vibecode harness, and all it took was feeding it the most recent best practices model from a job and our old vintage Solidworks SOPs to get a solid foundation laid for that feature in about a half day of noodling. The product we make is fairly specialized and it takes ages for new drafters to wrap their head around the whats and whys of modeling one of these exhibits successfully and it takes careful guidance from one of their senior peers to make sure that the final model covers all the bases for avoiding manufacturing issues we've run into time and time again.
Or - apparently - the dedication of a weekend and distillation of years of practices into a tight script package that genuinely does cut weeks worth of labor out of every similar project going forward. I think we've already crossed over the threshold in the mechanical modeling realm where there's a considerable level of overlap between the most advanced AI models and the entry or even mid-level workers in some industries.
0 -
"Meanwhile, if the assembled device in my hands is what I want, do I really care about the how? I'm trying to figure this out…"
Don't have to. But I also have to think about it from a manufacturing standpoint. I have made plenty of mistakes that have cost a significant amount to fix up. One of the worst was a 50k injection mold. Most of those mistakes stemmed from poor modeling practices and a feature tree to match🤯.
0 -
Very interesting setup and trial, it's impressive to see how far LLMs have come in the area of direct modelling. I'd love to learn more about your own MCP approach!
Like the previous comment, I'd like to touch on your question about the finished device and the how.Meanwhile, if the assembled device in my hands is what I want, do I really care about the how? I'm trying to figure this out…
I get the impression that you're a software engineer by practice, please correct me if that's not the case. Either way I think the software analogy might be a useful.
Imagine two teams are set out to make the same app, one is following all the software design practices, like DRY, variable/function naming conventions, camel case vs. snake case usage, etc. The other throw it all out the door and do all the software design crimes in the book.
Now, the two finished apps work identically to the user, there's legitimately zero difference in "the assembled app in my hands is what I want". Ship either and you can all move on to the next app. But, one is going to be miles easier to maintain, bugfix, update with new functions, and as the previous commenter mentioned, it's also easier to spot mistakes in a code that is actually readable.
CAD modelling practices are just like software design practices; they are not there for the sake of itself, they are there for our sanity tomorrow, next year, 5 years from now.
Interestingly, mechanical design in CAD has historically been fairly bad at these best practices, my theory is that much of it comes down to the speed of iteration. If you design a part, and then make that same part in thousands of copies for 5 to 10 years without touching it, there's never really been an incentive to make that first model robust. Heck in the last 40 years, the most likely outcome was that you don't even support the CAD package version that part was designed in in the first place! So re-modelling the part from scratch for updates was okay, or rather encouraged.
Today the scene is very different. First off, speed of in-development iteration is much faster with 3D printers and rapid prototyping tools that mean the design-test-update cycle is days, not months. Secondly the speed of releases is much faster, there's a new model phone, TV, computer, car, etc. every 1-2 years. You can no longer afford to throw your CAD model out the window just to make some updates to it.
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











