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.
How to accurately constrain a splined shaft to a splined gear?
I can fasten the splined shaft and the gear but I can't get the splines to line up without doing a revolve around the axis. The method I am using is to select the center axes of both parts and then, when the position and rotation are not accurate I do an offset and rotate. Is there an easier way or is this a feature request?
Best Answer
-
I looked into your document and slightly modified the definitions of your two part studio mate connectors and reversed the fastened mate in the assembly.
- You cannot place the connector on the spline edge itself, for there might be an offset between the gear and shaft splines, so that this would make the fit excentric.
- You need to put both mate connectors right on the geometrical axis of the gear resp. the spline in the part studio. Ideally, you'd use their common face (where the both are to touch in the assembly).
- You need to find (or define) a refenence to use. Lacking any immediately clickable references, I created a sketch on both the parts for this purpose. The sketches center on the spline base circle segments.
- Align the secondary axis with the reference.
Find the result here:
1
Answers
-
Always a good idea to create an explicit mate connector in both the spline and gear with "matching" orientation. Otherwise you can use the "realign" option in the mate connectors to line them up the same way.
Or possibly model both the gear and spline in the same part studio (may not make sense depending on what you are doing though…).0 -
I can mate them approximately. The problem is the rotation. The splines don't line up such that there is interference. I am using gears and shafts that others have generated. Also, the peaks on the shaft are flattened and the corresponding valleys on the gear are rounded.
0 -
In these cases, I usually create an explicit mate connector in both the shaft and the gear and realign the connectors to a reference point on the spline and make the gear and shaft the owner entitiy of said connectors, all within their part studio(s). This makes matching them in the assembly very easy, on an intuitive if not quasi-automatic level. Also, this is much safer downstreams, compared to aligning mates in the assembly. Let me know if you need an example.
0 -
@martin_kopplow Yes, an example would probably help me understand. I understand about doing it in the part studio. If you could use these parts, it would help.https://cad.onshape.com/documents/65734b40e6c4759e97ed2caf/w/4e2dc6501d0a3883945c903a/e/91814ed87fe3dbcff39708c2?renderMode=0&uiState=682a371cda76cf549de1df3e
0 -
Hi @dan_beavers , you'll probably need to make the (private) dokument readable for me, else I cannot use your parts.
Here's one simplified example- I used a gear and a shaft to be matched by means of a key. The same goes for splines.
- First, I created the parts in a part studio and then DELIBERATELY misaligned them, just to show that it doesn't matter.
- Then, I added a mate connector to the gear and another one to the shaft.
- In the mate connector edit box, I made sure the SECONDARY axis of each connector is aligned with a face or a line that is part of the keyway I later want to align and both the secondary axis' (In my examle that's the red X-axis) point towards the keyway: Depending on you use a line or the end face you might be 90° off and need to hit the mate connector rotate button one to three times to make that happen.
- I made sure the mate connector origin were the shaft rep. the gear, so the mate connector gets carried through to the assembly together with their owner parts later. That is the bottom box within the edti box.
- I inserted all parts into the assembly.
- I created a Reference Mate Connector E.G. at the origin (If you already have a machine or anything else in the assembly you could use that instead).
- I created a rotate mate between the shaft and the 'machine', just so the shaft can do what shafts do.
- I found the gears's (already aligned in part studio) mate connector and the shaft's (already aligned) mate connector and created a fixed mate between them. They just jump into place.
- I applied a fastened mate beween th ekey and the shaft keyway.
0 -
@martin_kopplow Sorry, I thought it was public by default. It is now public. I will try to see how your method works with splines later. Thank you for your response and the effort you have expended!
0 -
@martin_kopplow I think I did what you suggested but it did not work for me. What did I do wrong? Also, the gear should be adjacent to the motor, not on the end of the shaft. (I saved a few versions.)
0 -
I looked into your document and slightly modified the definitions of your two part studio mate connectors and reversed the fastened mate in the assembly.
- You cannot place the connector on the spline edge itself, for there might be an offset between the gear and shaft splines, so that this would make the fit excentric.
- You need to put both mate connectors right on the geometrical axis of the gear resp. the spline in the part studio. Ideally, you'd use their common face (where the both are to touch in the assembly).
- You need to find (or define) a refenence to use. Lacking any immediately clickable references, I created a sketch on both the parts for this purpose. The sketches center on the spline base circle segments.
- Align the secondary axis with the reference.
Find the result here:
1 -
@martin_kopplow THANKS! I now understand how to accomplish this!
0



