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
-
martin_kopplow Member Posts: 790 PRO
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:
https://cad.onshape.com/documents/f51c5a902c3aa8033be2a7d7/w/ad498b791b6f6da82bc43798/e/2827adb17a30a8fa23a07e83?renderMode=0&uiState=682c5020c903661b1545cf44
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…).
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.
@dan_beavers
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.
@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
Hi @dan_beavers , you'll probably need to make the (private) dokument readable for me, else I cannot use your parts.
https://cad.onshape.com/documents/a73a39e35afbb0e4d944bde6/w/459912529e5b95b328fed1f5/e/018dffda0eedc5e3984985ab?renderMode=0&uiState=682b1c745889b855c164704b
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.
@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!
@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.)
@dan_beavers
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.
Find the result here:
https://cad.onshape.com/documents/f51c5a902c3aa8033be2a7d7/w/ad498b791b6f6da82bc43798/e/2827adb17a30a8fa23a07e83?renderMode=0&uiState=682c5020c903661b1545cf44
@martin_kopplow THANKS! I now understand how to accomplish this!