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.

Designing mechanisms in 2D in Onshape

lougallolougallo Member, Moderator, Onshape Employees, Developers Posts: 1,954
Designing mechanisms is necessary in many mechanical design challenges and sometimes the easiest way to do it is to use 2D blocks to test out and tweak lengths and interfaces in order to tune the mechanism. In Onshape I was refining a robot gripper and tried out a few approaches to get it right before using the layout as a base for my part creation.

FIRST...
  1. Place 3 construction lines and connected them in relation to one another. (avoiding relations like vertical, horizontal, etc). I only added what was needed to restrain the size of the construction lines.
  2. Add sketches to define the shapes of the mechanism components (links in my case) only adding relationships to the main construction line that defined the link length.
  3. Move the mechanism to visualize the motion
  4. Tweak the lengths to fit the motion you want.
FINE TUNING..
I wanted to make sure that the gripper interface would touch parallel to the center of the gripper so the entire interface would be engaged at full closure. Not knowing the exact size of the linkages to make this happen (and avoid having to do any hand calcs) I let the CAD tool do it for me.
  1. Remove the length of my bottom linkage (originally set to 0.8")
  2. Add a coincident relation to the gripper face sketch and the centerline of the gripper
  3. Add a dimension to the bottom linkage, which will over-define the sketch (which is fine)
  4. Remove the relationship
Here is a quick rundown of the result...


Lou Gallo / PD/UX - Support - Community / Onshape, Inc.

Comments

  • stevehessstevehess Moderator, Onshape Employees, Developers Posts: 98
    Could this also have been done with a parallel relation between the grip face (sketch line) and the construction line?
    Steve Hess \ Onshape Inc.
  • lougallolougallo Member, Moderator, Onshape Employees, Developers Posts: 1,954
    @Steve Hess‌ sure if I was designing it statically, however in my case I could not measure the last linkage so I modeled the parts I could measure and then use OS to interpolate for me.
    Lou Gallo / PD/UX - Support - Community / Onshape, Inc.
  • stevehessstevehess Moderator, Onshape Employees, Developers Posts: 98
    @gol10dr‌ ah, I see, the gripper is only parallel at the construction line. Very cool trick.
    Steve Hess \ Onshape Inc.
  • mark_biasottimark_biasotti Member Posts: 123 ✭✭✭
    edited August 2014
    @Steve @‌Lou
    I would have a conversion with Joe and Andy about this. My last job was to solve this problem and we came up with a pretty unique way of handling 2D mech design - but I'm under post NDA from Dassault not to discuss it.
    - What I can say is that over the years, the practice with many designers doing mechanism design in SW is to
    create a layout sketch of the beginning and end positions (or intermediate positions also) and apply sketch constrains to completely solve the path/position. (see below example.)


    This works pretty well but it is sometimes hard to visualize and in addition dynamically move and also have a definitive solution.
    - One thing that OS really needs and would go a long way toward mech design is to be able to make OS dimension driven/driving; I'm not sure OS has this capability or I have not found it yet?

    Mark
  • joe_dunnejoe_dunne Onshape Employees, Developers Posts: 161
    Driven, driving dimensions is not there yet. But yes it is a good enhancement request.

    Joe Dunne / Onshape, Inc.
  • lougallolougallo Member, Moderator, Onshape Employees, Developers Posts: 1,954
    Driving/Driven dims is already been requested and I can add you to the request!
    Lou Gallo / PD/UX - Support - Community / Onshape, Inc.
  • mark_biasottimark_biasotti Member Posts: 123 ✭✭✭
    edited August 2014
    Need to add that blocks are really useful when it comes to 2D mech design but their drawback (at lease in SW) is that they solve at a "sub-level" below the main sketch so when combining blocks adjusting becomes contentious - think of adjusting the pitch dia. of two gears or the linkage length of one only to have the overall mate solution solve ONLY when you exit the block edit mode. This is why diehard SW mech designers do it in one big complicated layou sketch thanks fully contained and dimensioned at one level.
  • Ben_Ben_ OS Professional, Mentor, Developers Posts: 286 PRO
    Add me to the driving and driven enhancement as well please...
  • lougallolougallo Member, Moderator, Onshape Employees, Developers Posts: 1,954
    @Ben‌ Sure.
    Lou Gallo / PD/UX - Support - Community / Onshape, Inc.
  • kesava_prasad_t_dkesava_prasad_t_d OS Professional Posts: 9
    Any one has created a cam mechanism? There is no tangent mate in assembly.
  • mark_biasottimark_biasotti Member Posts: 123 ✭✭✭
    Cam mates are rare even in SW - I suspect because most real applications of a cam mate involve "contact" mate I.e. Something that goes well beyond sime constrain kinematics ( I.e. pushrods in an engine - and SW still does not have this kind of mate.) I suspect that if a cam is involved that is always in contact and providing a regular motion result, it can be better served with linkage ( or series of.) For highly irregular motion that is always in contact, then of course a contact or path mate is needed.

    My 2 cents

    Mark
  • brucebartlettbrucebartlett Member, OS Professional, Mentor, User Group Leader Posts: 2,100 PRO
    Driving and driven would be useful.
    I've never really mastered using the sketch blocks in SW but tend to added a bit of detail on the sketch to get clearance restraints/boundarys. The key is to keep these sketches simple, they very powerful and the key to most of the products I design.

    When I have done cams in the past, it has been with basic sketches and manually moving bit of the sketches to visualise the operation, these mess with your head and it's good to know there's not even a way to do it in SW because I have looked with no success. 

    I have found in OS I can add mate connectors to my sketches which blow through to the assembly this great because I can drive my assemblies to positions off the layout sketches. Is there any plans to be able to sketch in an assembly? (maybe you don't need too, it might be better to retain all sketches in the part studio), I think I'd be fine with out assembly sketching but I would like to see the driving sketch and be able to drive sketch dimensions from the assembly.

    Bruce
    Engineer ı Product Designer ı Onshape Consulting Partner
    Twitter: @onshapetricks  & @babart1977   
  • traveler_hauptmantraveler_hauptman Member, OS Professional, Mentor, Developers Posts: 419 PRO
    +1 for blocks, driven dims.

Sign In or Register to comment.