Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. 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_smidchensimants_smidchens Member Posts: 83 EDU
edited June 9 in FeatureScript

Ever needed to fill your part with beans? now you can.

https://cad.onshape.com/documents/e5d7fa14c8575cfc7c1f66b6/

image.png

let me know if you have any questions.

Comments

  • glen_dewsburyglen_dewsbury Member Posts: 1,349 PRO

    Cool

  • Caden_ArmstrongCaden_Armstrong Member Posts: 444 PRO

    Do you have another feature that counts the beans?

    www.smartbenchsoftware.com --- Renaissance --- fs.place
    Experts in Onshape Automation - Custom Features and Integrated Applications
  • jim_zamecnikjim_zamecnik Member Posts: 96 ✭✭

    What that needs now is a banana for scale.

  • Matt_ShieldsMatt_Shields Member, Onshape Employees Posts: 973 PRO

    I've bean waiting for this feature!

  • EvanReeseEvanReese Member, Mentor Posts: 2,965 PRO

    No questions. Seems pretty clear.

    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com
  • _anton_anton Member, Onshape Employees Posts: 544 image
    edited June 11

    Oh, hey, I wrote something equally useful at one point: https://cad.onshape.com/documents/730bad0a9e652009c094b98c

  • martin_kopplowmartin_kopplow Member Posts: 1,448 PRO

    After I accidentally deleted the glass and spilled them all, someone know about a script to retrieve them?

  • sebastian_glanznersebastian_glanzner Member, Developers Posts: 493 PRO

    Why do users have to create FeatureScripts for this type of high-demand feature?
    Every other major CAD system has had that for decades! 😁

  • sebastian_glanznersebastian_glanzner Member, Developers Posts: 493 PRO

    @martin_kopplow Have you tried to restore an old version of reality to the main reality branch?

  • MDesignMDesign Member Posts: 1,419 PRO

    The proper reply would of been 'Cool Beans!' 😆

  • S1monS1mon Member Posts: 4,259 PRO

    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

  • EvanReeseEvanReese Member, Mentor Posts: 2,965 PRO

    @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.

    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com
  • S1monS1mon Member Posts: 4,259 PRO

    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

  • Derek_Van_Allen_BDDerek_Van_Allen_BD Member Posts: 988 PRO

    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.

  • wille_jwille_j Member Posts: 85 ✭✭✭

    yeah, 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…

  • S1monS1mon Member Posts: 4,259 PRO

    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

  • wille_jwille_j Member Posts: 85 ✭✭✭

    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.

  • ry_gbry_gb Member, csevp, pcbaevp Posts: 237 PRO

    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/

    1000051075.jpg

    Ramon Yip | glassboard.com

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.