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.

Options

Struggling to find correct mate for sliding part

murray_1murray_1 Member Posts: 19
The OS mate concept uses one mate and only one mate between any 2 parts in an assembly. So how do I mate the sensor to the bracket so that it is held in the right orientation whilst being free to slide?

I have 2 slots and 2 bolt holes. In SW, I think would select a coincident mate to place the sensor on the face of the bracket, then a parallel mate to align the body along the bracket, then a slot mate to confine the sensor bolt hole to the slot length. I'd then have a sensor that could slide back and forth, confined by the slot.

The sensor body is not the same width as the bracket, like most real things, so aligning an edge of the sensor to an edge of the bracket would require offsets to be calculated. What is the approved method for getting a similar outcome? Do I need to devise a mate point on the back of the sensor and another (a line?) on the bracket between (in the mid pint etc) the existing slots? I believe the sliding mate doesn't have limits (yet) which I can live with.

This takes a different way of thinking about mates and assemblies and I suspect will throw a lot of people like me who are used to removing degrees of freedom one mate at a time. Presumably this is why there is talk of needing to devise mate points at part design time?

Comments

  • Options
    murray_1murray_1 Member Posts: 19
    In the screenshot, I have made a slot mate between one of the bolt holes and one of the slots but of course this fails miserably to confine the sensor beyond holding said bolt hole in line with that slot.
  • Options
    jakeramsleyjakeramsley Member, Moderator, Onshape Employees, Developers Posts: 657
    Hi Murray,

    Pin-slot is a mate that is order dependent and orientation dependent.  The axis that the pin will slide along is the red axis (the x-axis) of the slider mate connector.  I would suggest making an explicit mate connector in your slot, with the red axis parallel to the walls to use to define this.  And then when you do a pin-slot mate, select the pin first, the slot second and then make sure the red axis (the x-axis) is aligned or anti-aligned.  At this point the pin should be allowed to slide along the red axis of the slot.

    I'm attaching some pictures which I hope makes it clear




    1.png 132.6K
    2.png 147.8K
    3.png 143.8K
    Jake Ramsley

    Director of Quality Engineering & Release Manager              onshape.com
  • Options
    brucebartlettbrucebartlett Member, OS Professional, Mentor, User Group Leader Posts: 2,137 PRO
    Thanks @JakeRamsley I haven't used that mate yet either. I will have to try it out to get my head around it. Maybe an animated gif might make it easier to understand. Bruce 
    Engineer ı Product Designer ı Onshape Consulting Partner
    Twitter: @onshapetricks  & @babart1977   
  • Options
    brucebartlettbrucebartlett Member, OS Professional, Mentor, User Group Leader Posts: 2,137 PRO
    edited March 2015
    Just had a play with the Slot Mate. Is there any plan to put limits on the float?

    @JakeRamsley  Also a bit confusing as to which mate connector drives the direction of float. Is it the second in the list? Is there a refer to a help file?
    Engineer ı Product Designer ı Onshape Consulting Partner
    Twitter: @onshapetricks  & @babart1977   
  • Options
    caradoncaradon OS Professional, Mentor Posts: 300 PRO
    If you click the mate connector in the dialog, it should highlight the part to which it is attached. No?

    Dries
  • Options
    murray_1murray_1 Member Posts: 19
    Well, I added mate connectors to both parts and then used the slot mate in the assembly. That appeared to assemble the sensor to the bracket as intended (first screenshot). However, the sensor isn't held parallel to the edge of the bracket. After grabbing the sensor, you can see that the red axes of the 2 connectors are no longer aligned (second screenshot). However, when you think about it, it all works as it's supposed to.

    Then I changed the mate type to a sliding mate (third pic). I had to go back to the part connectors and realign them so that the primary blue axis was in the direction of the slot. Job done.

    So I was using the wrong mate. The difference between the slot and sliding mates is that the sliding mate maintains alignment (one less degree of freedom).

    Configuring and positioning mating connectors in the parts is the key to making mates work without having to calculate messy offsets. It requires a slightly different thought process and choosing the right mates might take a little consideration.
  • Options
    jakeramsleyjakeramsley Member, Moderator, Onshape Employees, Developers Posts: 657
    Just had a play with the Slot Mate. Is there any plan to put limits on the float?
    Yes.

    @JakeRamsley  Also a bit confusing as to which mate connector drives the direction of float. Is it the second in the list? Is there a refer to a help file?
    Sorry for the late reply, this is something that has changed and is changing so I had to double check the current behavior.  Right now the direction of the float is attached to the first mate connector in the list, the pin.  The direction that it picks is the x-axis of the pin at the initial position (seen by either when the mate is created or by choosing 'Reset' in the context menu on the mate).  As the pin can rotate, this is why I suggest making the x-axis of the slot and the pin to be aligned/anti-aligned to reference going forward.

    If you click the mate connector in the dialog, it should highlight the part to which it is attached. No?
    No need to click, simply highlighting the mate connector in the dialog will cross-highlight the associated part.
    Jake Ramsley

    Director of Quality Engineering & Release Manager              onshape.com
  • Options
    brucebartlettbrucebartlett Member, OS Professional, Mentor, User Group Leader Posts: 2,137 PRO
    Thanks @JakeRamsley was thinking about raising some tickets on this one but will hold off if change is coming, save you guy the unnecessary paperwork. 

    Hopefully you can make the whole mate connector, mating thing a bit more user friendly, I find I have to think pretty hard when approaching an assembly, I'm sure heaps of UX testing is going to try and sort some of these issues out.

    Look forward to some changes rolling in.
    Engineer ı Product Designer ı Onshape Consulting Partner
    Twitter: @onshapetricks  & @babart1977   
Sign In or Register to comment.