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

Is there a way to rotate around an axis without having to draw something or need an edge on a part

It's annoying having to draw a sketch with a line or circle for the sole use of defining a rotation point. Is there a way to rotate an object around a standard axis. And if not, why not? It would be nice to use the transform rotation tool and use a view cube edge to rotate the object from that standard axis from the origin for example. 
Tagged:

Best Answer

Answers

  • Options
    _anton_anton Member, Onshape Employees Posts: 274
    edited November 2022 Answer ✓
    Implicit mate connectors are often your friend when you need to rotate about some axis you don't explicitly have. Check it out: https://cad.onshape.com/documents/80ee1e87410c81aaac14ff2e/w/e026b7065a125dd38f5c042b/e/41917c17755518b8ee5d4d3e

    (You do that by clicking the little mate connector button in the feature dialog.)

    Edit: got a couple of useful references from @KatieHuffman:
    https://learn.onshape.com/learn/article/all-the-ways-to-use-mate-connectors
    https://learn.onshape.com/learn/course/advanced-part-design/advanced-features/mate-connectors-in-part-design
  • Options
    steve_shubinsteve_shubin Member Posts: 1,066 ✭✭✭✭
    It would be nice to use the transform rotation tool ...

    There is a TRANSFORM within the SKETCH TOOLSET

    There is also a TRANSFORM within the FEATURE TOOLSET (SEE THE GIF'S BELOW)

    And as Anton spoke of IMPLICIT MATES, well there is an implicit mate button, within the transform featurescript dialog box also, that allows you to set the location wherever you want, on the fly

    Now without using the implicit mate to set the axis, you can simply click on any edge.

    But if you need a rotation point other than an edge for instance, you can also select the implicit mate in the dialog box and click on the origin, or a corner point or center of face or hole.

    If you want to further define your rotation point, you can click within the dialog box, on the name of the implicit mate you just set-up, and then edit its’ location. In other words, you could move it off of the origin (or whatever point) by whatever you want along the X, Y, or Z.

    And this all happens without having to setup a sketch for doing a rotation





  • Options
    eSonOfAndereSonOfAnder Member Posts: 8
    I had to rewatch that bottom video/gif multiple times to figure out how you got the secondary menu to show up that actually enabled the selection of the axis to rotate around. To say that this workflow is unintuitive and cumbersome is an extreme understatement. In searching for a way to do this, I've run across innumerable requests here for a simple "Rotate about X/Y/Z" option from the Transform tool; I'm shocked that this has gone ignored for so many years.

    So the workflow as it stands today is:
    1. Select object
    2. Select Transform
    3. Choose Rotate
    4. Click the "Mate Connector" button to the right of Axis (Right here we have already gone off the rails; there is no logic to this, and the verbiage of "mate connector" does not even translate in this context.)
    5. Click the point either on the object or the origin that you want to rotate about
    6. Unless you are looking to specifically rotate around the Z axis, ignore the Angle field entirely, because that's all it does
    7. Click the Mate Connector option in the Axis field again to show a hidden side menu (Again, how would anyone ever know to even try this?)
    8. NOW you can finally select the axis that you want to rotate around and the amount.
    Working through both OnShape and FreeCAD, for the most part OnShape has the upper hand in pretty much everything, but then it gets bogged down with things like this that should be dirt simple tasks that are definitely not. Now it's just getting silly.
  • Options
    S1monS1mon Member Posts: 2,361 PRO
    When you’re in the middle of creating the Mate Connector you can hit shift and move the mouse to switch the axes to X, Y or Z (if you’re selecting the origin). Opening up the mate connector dialog is only necessary if you want to really reorient or reposition it.

    It sounds like you haven’t done much with Mate Connectors yet. It’s perhaps a bit odd that they’re being used as an axis selection mechanism here, but once you get used to them, they’re very powerful.

    While I do use the transform tool a fair amount, I find that sometimes people who are using a lot are coming from non-parametric CAD paradigms and perhaps could be modeling things in a more simple and efficient way. Perhaps if you shared the problem you’re trying to solve, it might be clearer.
  • Options
    steve_shubinsteve_shubin Member Posts: 1,066 ✭✭✭✭
    edited February 2023
    I had to rewatch that bottom video/gif multiple times to figure out how you got the secondary menu to show up that actually enabled the selection of the axis to rotate around. To say that this workflow is unintuitive and cumbersome is an extreme understatement.

    A person can submit an improvement request. If enough people vote it up, it will move up the list where it could be incorporated sooner rather than latter

    If there was an improvement request already submitted along these lines, and if it has not been incorporated, it probably means there just has not been enough interest

    There is another option — Onshape has featurescript which allows a person to make customized tools. If you were to learn featurescript, you could make a simple rotate tool just the way you’d  like it to be.

    I’m guessing there are hundreds if not thousands of featurescripts that have been created by users, covering many different uses, as I myself have somewhere around 165 featurescripts installed in my app, on top of the default tools made by Onshape. 

    Now as to the intuitiveness or lack of intuitiveness of clicking on a mate connector or the name of the mate connector in the dialog, in order to further define it —

    With CAD and computers in general, you end up clicking on names or words or text A WHOLE LOT

    What you click on may be the name of a tool. Or such text could be a command in a pull-down, pop-up, or contextual menu. It may be the title of a document. Or the text may be a link to something located elsewhere.

    In the case of the second GIF, when I clicked on the line that had the name of the mate connector (and icon for it also), well that opened up a dialog box that allowed for the further defining of that MC (mate connector). So suffice it to say that TEXT CLICKING is NOT something that’s unusual for CAD or in computer work in general.

    Now you say, yeah but why in the world did they use the term — mate connector ??

    Well that’s because the item (mate connector) is widely used in the CONNECTING or MATING of one part to another within the assembly. But because of the nature of the MC having also to do with a reference point that also incorporates XYZ coordinates or delta (relative) location, and rotation along the three axes also, well because of all this, it lends itself to a lot more than just work in the assembly

    As such, MC’s can also be used to move (translate) things via the transform feature

    They can be used in place of planes when you want to make a sketch

    And they can be used as a reference point set up on the fly when using certain tools or as an axis when doing a rotation

    Mate connectors can also act as an origin for a user defined coordinate system so to speak, as opposed to the absolute origin that never moves. And as such can be used to build a sketch around as mentioned above.

    So the mate connector is a great tool for a number of situations.

    And because of all this — clicking on its name to further define it — as was done in the 2nd GIF, makes sense to those that have taken the time to read up on or gone through the training, to find out what mate connectors are all about

    Now about that second GIF above, made by a hobbyist (me). You listed a number of steps, and felt it was too much work

    Myself I haven’t taken time to really think this through thoroughly, as to what may possibly be a more efficient way of doing it. Reason being, is because I find it adequate as is.

    What you saw as far as how long it took me to do things within the GIF, well that’s not the speed I typically work at. What you saw in the GIF is slower than I normally work so that people could see what’s going on. Because if I were to make a GIF at normal speed, it would be hard for at least some to follow the cursor and clicks

    So there may be a number of steps, but they don’t take all that long once you get up to speed with the app

    Now I can imagine that if you were assigned a job where you had to do a most basic rotate, such as only relative to the absolute origin, and you had to do this type of thing hundreds of times a day, well you probably would want something that has less steps. And that’s all the more reason to learn featurescript and to design your own tool.

    Just realize that if you use a mate connector to set up a user defined origin for your sketch as mentioned above — then realize that the tool described in the paragraph directly above, is probably not going to work for you in all situations. So you may have to add a little bit more functionality to your custom tool, and then you might have to add a little bit more on top of that, to where you end up with what we have now


  • Options
    eSonOfAndereSonOfAnder Member Posts: 8
    S1mon said:
    When you’re in the middle of creating the Mate Connector you can hit shift and move the mouse to switch the axes to X, Y or Z (if you’re selecting the origin). Opening up the mate connector dialog is only necessary if you want to really reorient or reposition it.

    It sounds like you haven’t done much with Mate Connectors yet. It’s perhaps a bit odd that they’re being used as an axis selection mechanism here, but once you get used to them, they’re very powerful.

    While I do use the transform tool a fair amount, I find that sometimes people who are using a lot are coming from non-parametric CAD paradigms and perhaps could be modeling things in a more simple and efficient way. Perhaps if you shared the problem you’re trying to solve, it might be clearer.
    Coming back to this a year later, because this process remains unintuitive and problematic and this is one of the first hits that Google provides when trying to figure out how to do this. Just like the original post the problem, as very specifically defined is, "How do I rotate an object around the X, Y, or Z axis?" That's it. That is all that we are trying to do. And no, this is not coming from non-parametric CAD paradigms - Fusion 360 and FreeCAD both allow you to rotate an object around X, Y, or Z extremely simply as part of their rotate tool.

    As far as hitting shift and moving the mouse to switch axes, I'm not sure what exactly you are trying to say here, but I have tried every combination that I can think of of pressing or holding the shift key and/or mouse button, and moving the mouse in every direction, and nothing changes the axis from the Z axis in the rotation. If you could provide a little bit more detail here as to what you mean and how to actually accomplish it, what you are describing actually addresses the original problem, if it can be made to work.
  • Options
    rick_randallrick_randall Member Posts: 97 ✭✭
    As far as I know OS does not have anything called an axis, there are things you can use as an axis (i.e. edges, lines, cylindrical faces, conical faces, mate connectors).   I think you just have to create your own.


    You could try this - create a folder named templates, open new part studio, create 3 sketches with one construction line each along the correct axis and name each sketch  x,y,z (axis). Close part studio. Next time you start a new project - duplicate the workspace & move to current document, keeping the original as your template. Truth be told, I really don't do this very often - I've gotten used to just creating the axis I need on the fly. This approach is kind of clunky I admit - but will work in a pinch if you can't live without them.


    This feels more like inventor or older solid-works.  Hope this helps

Sign In or Register to comment.