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.

Rotate on Fasten

shazznershazzner Member Posts: 3
So I'm having an issue that I feel has already been solved, but since I'm fairly new to CAD I'm not sure what the terminology would be to search for an answer.

I have a part that I'm trying to fasten to a base. It has two holes and it's at an angle with respect to the x-axis:

(Image two holes on the under side)

So selecting one rim on the bottom of the part:

 and fastening to the top of the base rim:

I get it mated easily enough:


Now what I hope would happen is that I fasten the other rim to the top of the base rim and the part will automatically rotate to satisfy both mating restrictions.

However when I do that, I just get it translated over:


Bummer! I was hoping the Solve button would fix the issue but no dice. How do it get the part to properly align up?

I've managed to find a sort of 'cheater' solution in by fastening a screw into the hole, then adding a revolve mate, thus allowing me to manually 'swing' it around. Unfortunately fastening another screw doesn't stop the revolving movement. Not a usable solution.

Also manually rotating each one (of twelve) is no fun, they're all at weird arbitrary angles, and fastening them afterwards seems to mess them up somehow.

Any ideas on what to do? Thanks!

Comments

  • konstantin_shiriazdanovkonstantin_shiriazdanov Member Posts: 1,221 ✭✭✭✭✭
    edited May 2017
    hi, looks like you need both "revolute" mates instead of "fastened". you can switch mate type inside the mate dialog
  • shazznershazzner Member Posts: 3
    That worked! Though it's a little counter-intuitive it did exactly what I was hoping for. If anyone stumbles upon this, here are the steps I took:

    So I add my screws in as I normally would using the standard fasten mate.


    Next I 

    Next I create a Revolute mate from the rim of the hole to the base of the screw.


    This allows me to swing it around fence-style.

    Now I create another Revolute mate from the second rim to the base of the other screw.



    Now when you do that, at first it looks like it failed again and didn't rotate properly. Fear not! Just click the solve button and the lil' bugger will rotate into place.


    Thank you konstantin_shiriazdanov for the quick answer!





  • owen_sparksowen_sparks Member, Developers Posts: 2,660 PRO
    Yeah, what @konstantin_shiriazdanov said. :)

    Worth noting that although the above is a great way there are always others in OS...  I like as few mates as possible, especially if I'm reusing parts.  As such I might be tempted to apply a mate in the part-studio on the plate.  I'd also use the "rotate" option (within the mate function) to align one axis of this mate towards the other hole.  Then in the assembly one fixed mate would work as initially intended.

    All personal preference.

    Cheers, Owen S.
    Business Systems and Configuration Controller
    HWM-Water Ltd
  • philip_thomasphilip_thomas Member, Moderator, Onshape Employees, Developers Posts: 1,381
    Almost any two parts in Onshape can be mated with ONE mate.  This keeps the tree very clean. 
    Owens is correct. 
    The best approach would be to add an Explicit Mate Connector to the base part in its Part Studio. 
    Start a sketch on the face 
    Draw line between the centers of two of the holes
    Close the sketch
    Create a Mate Connector at the mid point of the line
    In the Mate Connector dialog
    1) Make the base the 'owner part'( to make it visible)
    2) Select 'move' and rotate the Mate Connector 90 degrees about the x axis (red) to make the Primary Axis (blue) point away from the part. 

    Now in the assembly create a fasten Mate between this explicit Mate Connector and the implicit one automatically generated at the center of the middle hole in the clamp. 

    Boom! One Mate!

    if this makes no sense, let me know and I will make a sample later today and post the link here. 

    I hope this helps. 



    Philip Thomas - Onshape
  • shazznershazzner Member Posts: 3

    if this makes no sense, let me know and I will make a sample later today and post the link here. 


    Thanks Philip, I'd really appreciate that. I'm still attempting to grasp this, does it matter if I separated all my fasteners and the main plates in separate part studios? Apologies if this is a dumb question.
  • philip_thomasphilip_thomas Member, Moderator, Onshape Employees, Developers Posts: 1,381
    edited May 2017
    @chris_hardee - Your wish is my command :)

    Here is your assembly done with one mate and this IS the best way to do this.

    https://cad.onshape.com/documents/57b186fb5574511fb8aad85f/w/087685a35729e6b81eea4d93/e/3fe71ef3931689e88d94bc78



    Philip Thomas - Onshape
  • bill_danielsbill_daniels Member Posts: 278 ✭✭✭
    I have found this a VERY helpful discussion.  Aligning a mate connector in this way is not intuitive but, once the procedure is understood, it's clear how useful it can be.  Cody should put this in his "Hints and tips" webinars.
  • philip_thomasphilip_thomas Member, Moderator, Onshape Employees, Developers Posts: 1,381
    @cody_armstrong ^^^^   :)

    Philip Thomas - Onshape
  • cody_armstrongcody_armstrong Moderator, Onshape Employees, Developers, csevp Posts: 215
    I have found this a VERY helpful discussion.  Aligning a mate connector in this way is not intuitive but, once the procedure is understood, it's clear how useful it can be.  Cody should put this in his "Hints and tips" webinars.
    Thanks @bill_daniels.  I will make sure I throw in an example like this.
  • owen_sparksowen_sparks Member, Developers Posts: 2,660 PRO
    Nice atmosphere, good here isn't it?

    I wonder if it would be possible to have something on a mate connector that we can grab onto and constrain to a sketch entity to set axis orientation.  (A bit like the controls on the sketch pattern feature.)  That might be more intuitive than poking around in sub menus looking for rotation parameters?

    Owen S.
    Business Systems and Configuration Controller
    HWM-Water Ltd
  • noanoa Onshape Employees, Developers Posts: 141
    @owen_sparks - when creating an explicit mate connector, you have the option of specifying a primary and secondary axis. These selections allow you to parameteically define exactly what you're saying using things like sketch lines and straight edges. Useful for this sort of thing!
    Noa Flaherty / Customer Success / Onshape Inc.
  • konstantin_shiriazdanovkonstantin_shiriazdanov Member Posts: 1,221 ✭✭✭✭✭
    I wonder if it would be possible to have something on a mate connector that we can grab onto and constrain to a sketch entity to set axis orientation.  (A bit like the controls on the sketch pattern feature.)  That might be more intuitive than poking around in sub menus looking for rotation parameters?
    yes, let us use triad manipulator for MC orientation
  • noanoa Onshape Employees, Developers Posts: 141
    Great idea for an improvement request - please submit it! --->
    Noa Flaherty / Customer Success / Onshape Inc.
Sign In or Register to comment.