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.
New Custom Feature: Beans
imants_smidchens
Member Posts: 83 EDU
Ever needed to fill your part with beans? now you can.
https://cad.onshape.com/documents/e5d7fa14c8575cfc7c1f66b6/
let me know if you have any questions.
8

Comments
Cool
Do you have another feature that counts the beans?
Experts in Onshape Automation - Custom Features and Integrated Applications
What that needs now is a banana for scale.
@Caden_Armstrong is all over it, @jim_zamecnik:
I've bean waiting for this feature!
No questions. Seems pretty clear.
The Onsherpa | Reach peak Onshape productivity
www.theonsherpa.com
Oh, hey, I wrote something equally useful at one point: https://cad.onshape.com/documents/730bad0a9e652009c094b98c
After I accidentally deleted the glass and spilled them all, someone know about a script to retrieve them?
Why do users have to create FeatureScripts for this type of high-demand feature?
Every other major CAD system has had that for decades! 😁
@martin_kopplow Have you tried to restore an old version of reality to the main reality branch?
The proper reply would of been 'Cool Beans!' 😆
I realize that this was built for entertainment purposes, but it makes me wonder if anyone has built a custom feature to show parts jumbled in bins to check or illustrate packing efficiency? I assume that's not an easily solved problem mathematically, but curious what's out there.
Simon Gatrall | Product Development, Engineering, Design, Onshape | Ex- IDEO, PCH, Unagi, Carbon | LinkedIn
@wille_j did this one for 3D part nesting. Could be a handy gut check for a shipment size and trying to avoid less-than-full-container loads. I've not tried it out though.
The Onsherpa | Reach peak Onshape productivity
www.theonsherpa.com
Interesting. Now I vaguely remember that one. I'm again wishing for FeatureScript in assemblies…
Although I could see a custom feature which would generate a composite surface body for use with replicate in assembly mode.
What I'm really hoping for is something that could represent random jumbles of parts. I'm fine if the packing needs to be approximated as a few simple primitives (e.g. cylinders, spheres, boxes), but I'd love to see something that can generate an approximate fill of a container with some parts.
Simon Gatrall | Product Development, Engineering, Design, Onshape | Ex- IDEO, PCH, Unagi, Carbon | LinkedIn
I was doing some digging into the ol' standard library the other day and saw there's a whole bunch of featurescript that runs in an assembly context in the sectionpart.fs module and was formulating an evil plan to duplicate that code and try to see how Onshape breaks when you mess with it. I once did some messing around with other low level functions and managed to completely brick my sheet metal contexts in other tabs within a workspace before the Onshape police politely told me not to do that again, so there's a possibility that by copying that module you could get something unexpected to happen in an assembly. I'm too swamped with other projects to try it at the moment though.
Derek Van Allen | Engineering Consultant | Meddleryeah, well spotted @Derek_Van_Allen_BD! They seem to be the engine behind section views in drawings, essentially any time you do a section view of some sort in a drawing (even from assemblies) this spins up local part studios with partStudio.fs to perform splits and then feed back the result back to 2d. These functions are called from the drawing to execute so I'm not sure how to to cause havoc by executing them from a feature studio.
We actually had some really funky geometry in our enterprise that caused these split functions to fail in drawings, which was fun to find out from that direction; splits in drawings are boolean operations. If you can't split the part by the parting plane; the drawing can't either. But you can in the assembly 3d section view…
Interesting. Assembly sections are graphics based (triangles), not Parasolid based. As far as I can tell, drawing sections are Parasolid based. Parasolid can't handle non-manifold splits.
Simon Gatrall | Product Development, Engineering, Design, Onshape | Ex- IDEO, PCH, Unagi, Carbon | LinkedIn
Yeah, well phrased. AFAICT sections in drawings are Parasolid operations, and the functions in sectionpart.fs are the the ones that actually perform said operations.
Speaking of optimal packing, I feel the need to bring this up:
https://old.reddit.com/r/math/comments/111ne5y/deeply_unsettling_asymmetric_patterns_in/
Ramon Yip | glassboard.com