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.

Efficiently set mate connectors

rune_thorsen229rune_thorsen229 Member Posts: 182 EDU
Hi, this question relates to :https://forum.onshape.com/discussion/8799/select-mate-connectors-in-context-menu-assembly
john_mcclary  have a proposal.
The problem is that paring mates e.g. revolute mates on the same position is difficult. Say I want to set a Revolute mate pair on the corner of part 4 so it coincides with the corner of part 3.
This is practical impossible if the parts are already in place (see animation). I have to move one of the parts first. I expected that I could hide the one that I have already mated but it doesn't work that way. 

What is an efficient way to do this? Is there some (select other part trick?)
Tagged:

Best Answers

  • john_mcclaryjohn_mcclary Member, Developers Posts: 3,936 PRO
    Answer ✓
    In order to use Re-Align, You will need an existing axis pointing in the desired z direction (by means of: a sketched line, the edge of a part, or cylindrical face)

    Move, should give you the option to Rotate about 1 of the three axis. Which is how you do it without additional reference geometry.

Answers

  • steve_shubinsteve_shubin Member Posts: 1,096 ✭✭✭✭
    @rune_thorsen229

    Here is a way that’s not difficult 





  • john_mcclaryjohn_mcclary Member, Developers Posts: 3,936 PRO
    If you mouseover the face of part1 you will see all possible mate vertices to snap to. 

    Before you move your mouse, hold SHIFT. This will lock those points. Now pick your first mate point. 

    Let go of shift now

    Mouse over part 2, and then hold shift again once the face points appear. Now select point 2.
  • steve_shubinsteve_shubin Member Posts: 1,096 ✭✭✭✭
    edited March 2020
    @john_mcclary

    The desktop does have its advantages

    Itt would be nice to have some way of doing that on iOS (See the post below)

    Great tip John
  • steve_shubinsteve_shubin Member Posts: 1,096 ✭✭✭✭
    edited March 2020


    I figure I better get in here and clarify things. Actually the iPhone does have something similar to the desktop version. It’s just that now and then it can be a little picky when you go to select or try to select that second revolute mate

  • rune_thorsen229rune_thorsen229 Member Posts: 182 EDU
    edited March 2020
    NeilCooke said:
    You don't have to put the cursor directly over the vertex to snap the mate connector – try zooming in a bit to make the selection area larger.
    Thanks for sharing this 'secret' gem ;-) 
    I hope the UX designers understand that that is an issue. 
    Thanks @steve_shubin for your solution you make a lot of mouse actions. If you were to apply mates for many components I think one should be able to do it in the most intuitive way.
    Neil gave the best answer, but  it is 'unintelligent' behaviour of OS not to temporarily) disable the first selected mate when your intent is to select a PAIR. 
    Thanks for your input everyone. Most appreciated.
  • rune_thorsen229rune_thorsen229 Member Posts: 182 EDU
    If you mouseover the face of part1 you will see all possible mate vertices to snap to. 

    Before you move your mouse, hold SHIFT. This will lock those points. Now pick your first mate point. 

    Let go of shift now

    Mouse over part 2, and then hold shift again once the face points appear. Now select point 2.

    Thanks @john_mcclary. I tried it but what actually happens is that what Neil explained. The shift doesn't change the result that the first mate gets deselected if you click too close.
    Now Im at it I always have problems with orienting the mate specially to origin. Say I want it to be oriented normal to the ZY plane (Front), it keeps proposing the other orientations contrary to what I would expect. Shift- no shift. I would expect to click on the Front plane- press shift and then keep that orientation but no. Eventually I have to turn the dice to see it from the bottom an I might get lucky. Any hidden trick?
  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 5,686
    Now Im at it I always have problems with orienting the mate specially to origin. Say I want it to be oriented normal to the ZY plane (Front), it keeps proposing the other orientations contrary to what I would expect. Shift- no shift. I would expect to click on the Front plane- press shift and then keep that orientation but no. Eventually I have to turn the dice to see it from the bottom an I might get lucky. Any hidden trick?
    It is trying to reference the "viewable" axes, so the one pointing perpendicular to the screen cannot be "seen" - you will have to rotate your view
    Senior Director, Technical Services, EMEAI
  • john_mcclaryjohn_mcclary Member, Developers Posts: 3,936 PRO
    You are right, I guess I've just gotten used to it.

    How I approach a mate is shown in the animation below, When holding shift you just need to get close enough to the point that the connector snaps to the corner.

    You can see how far away my cursor is to the point all around it. So there is a huge tolerance for your mouse click precision.
    also if you look half way thru the animation, you can see when you mouse over the existing mate, it appears to shrink, giving a visual queue that you are selecting the existing mate for removal. 

    as for the origin, yea getting the mate in the right axis is a Bitch. Even after a lot of practice I still fumble during the mouse click and end up getting the wrong axis...


  • rune_thorsen229rune_thorsen229 Member Posts: 182 EDU
    edited March 2020
    NeilCooke said:
    Now Im at it I always have problems with orienting the mate specially to origin. Say I want it to be oriented normal to the ZY plane (Front), it keeps proposing the other orientations contrary to what I would expect. Shift- no shift. I would expect to click on the Front plane- press shift and then keep that orientation but no. Eventually I have to turn the dice to see it from the bottom an I might get lucky. Any hidden trick?
    It is trying to reference the "viewable" axes, so the one pointing perpendicular to the screen cannot be "seen" - you will have to rotate your view
    Thanks I had figured it out but nice to have the authoritative confirmation.

    I hope the UX developers read this thread so I would expect the mates to behave different so just my 2 cents:

    In a context (RB) you should select which of the 3 axis (also relative to the object) you want - not this rubbish of a mouseposition and view angle. Simple and clean. When selecting a mate pair the first should go in background allowing you to select the second. Deselection is already in the menu - this Microsoft philosophy of doing the same thing in multiple ways is bad / code smell (sorry).
    Let selection on the dice work like selecting a face (make a consistent userinterface) and use the axis for flipping reorienting the axis (this sucks as well - sorry).
    While I'm at it. I would expect e.g. Planar Mate to take multiple >2 connectors
    Oh , finally I think the naming of the mates are hopeless: Fastened mates (8 possible solutions?).   Revolute mate ???. They are effectively constraints so use the same terminology, same shortcuts etc.  and in the tool-tip remind us of what DOF they have -  X Y Z.

    Hope it may be useful for discussions like : Dealing with employers
  • john_mcclaryjohn_mcclary Member, Developers Posts: 3,936 PRO
    The DOF are shown in the icon itself:


    Fasten is interlocking two parts indicating no DOF

    Revolute is shown spinning on the axis of a cylinder standing up-right, Z normally faces UP, so: you can only revolve  around the Z axis.

    Slider shows the same cylinder and two dark lines with an arrow coming out the top face, this looks like something that can only slide about the Z axis.

    Planar shows a plane with arrows going only in the X and Y directions. (I agree, it would be nice to combine planar mates together, when you want many parts to follow the same offset, rather than mating a master part, then everything planar to "that" part...)

    Cylindrical shows both slider and revolute images combined, indicating it does the same thing as if you had one of each mate.

    Pin-Slot, is not very intuitive, it doesn't indicate the cylinder can rotate in the slot, and it doesn't let you know that it slides along the X axis..
  • rune_thorsen229rune_thorsen229 Member Posts: 182 EDU


    as for the origin, yea getting the mate in the right axis is a Bitch. Even after a lot of practice I still fumble during the mouse click and end up getting the wrong axis...


    I'm relieved to hear that even an expert has problems. A mate on origin normal along the X axis is far too complicated I think. I do all this and sometimes it doesn't work.

    There must be a direct way.?
  • john_mcclaryjohn_mcclary Member, Developers Posts: 3,936 PRO
    Answer ✓
    In order to use Re-Align, You will need an existing axis pointing in the desired z direction (by means of: a sketched line, the edge of a part, or cylindrical face)

    Move, should give you the option to Rotate about 1 of the three axis. Which is how you do it without additional reference geometry.
  • bruce_williamsbruce_williams Member, Developers Posts: 842 EDU
    edited March 2020
    rune_thorsen229 said:

    I'm relieved to hear that even an expert has problems. A mate on origin normal along the X axis is far too complicated I think. I do all this and sometimes it doesn't work.

    There must be a direct way.?
    Part Studio and Assembly behave a little differently when locating a Mate connector on Origin:in

    In Part Studio when choosing Vertex of Origin as the Origin entity, the primary axis defaults to Z up.  Then since it is a Part Studio we always have standard planes and previously created geometry to Realign to if desired.

    In Assembly we are given a visual clue as to axis of choice.  First rotate the view to see all three axis.  Then while hovering the cursor, the various axis will highlight yellow and X, Y, or Z may be selected as Primary.  This is handy since there are no standard planes and geometry may not be present yet. Then Realign & Move may be used if desired.  



    www.accuratepattern.com
  • rune_thorsen229rune_thorsen229 Member Posts: 182 EDU
    Thanks  nice. I find it quite annoying that mates need a part. Apparently sketch lines can not be owners (unexpectedly).
    A new part with just one sketch and one line cannot have a mate.
  • romeograhamromeograham Member, csevp Posts: 676 PRO
    If you define a Mate Connector in a Part Studio and use the Realign tool, you can select a plane to define the Z-direction of the new Mate Connector - then the Mate Connector will be owned by that plane. This way you can have Mate Connectors that don't require a Part.


    There's also the excellent Multi Mate Connector FeatureScript by @konstantin_shiriazdanov
    that (among other great functionality) allows you to set a Mate Constructor as "Construction" which removes the requirement for a part owner: https://cad.onshape.com/documents/5d8da63844bedebe5cff72b1/v/ef3f978424d1f49e3e40a09e/e/11dcab8f665add80b9aced0a


    Custom FeatureScripts are fantastic tools to extend the functionality of this platform. Often, Onshape will build them into the core product over time, once they understand how people are using them, and what kind of workflows are successful. 

    Definitely check them out!


  • steve_shubinsteve_shubin Member Posts: 1,096 ✭✭✭✭
    @rune_thorsen229

    You said —
    ... with just one sketch and one line cannot have a mate

    @romeograham mentioned how a Mate Connector can be owned by a plane

    Here is a GIF showing what Romeo was talking about





Sign In or Register to comment.