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.
Designing mechanisms in 2D in Onshape
lougallo
Member, Moderator, Onshape Employees, Developers, csevp, pcbaevp Posts: 2,021
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...
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.

FIRST...
- 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.
- 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.
- Move the mechanism to visualize the motion
- Tweak the lengths to fit the motion you want.
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.
- Remove the length of my bottom linkage (originally set to 0.8")
- Add a coincident relation to the gripper face sketch and the centerline of the gripper
- Add a dimension to the bottom linkage, which will over-define the sketch (which is fine)
- Remove the relationship

Lou Gallo
Sr. Director of Product Definition. UX and Support
Sr. Director of Product Definition. UX and Support
Tagged:
1
Comments
-
Could this also have been done with a parallel relation between the grip face (sketch line) and the construction line?Steve Hess \ Onshape Inc.0
-
@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
Sr. Director of Product Definition. UX and Support0 -
@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?
Mark0 -
Driven, driving dimensions is not there yet. But yes it is a good enhancement request.
Joe Dunne / Onshape, Inc.0 -
Driving/Driven dims is already been requested and I can add you to the request!Lou Gallo
Sr. Director of Product Definition. UX and Support0 -
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.0
-
Add me to the driving and driven enhancement as well please...0
-
Any one has created a cam mechanism? There is no tangent mate in assembly.
0 -
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
Mark0 -
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.
Bruce0 -
+1 for blocks, driven dims.
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





