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.

Constraining to 3D objects from Drawing

tom_augertom_auger Member Posts: 116 ✭✭
Hi everyone! I hope you're staying safe and loving being able to work remotely in the cloud with OnShape!

I came across this amazing blog post on the inner workings of 2D Drawings https://www.onshape.com/cad-blog/under-the-hood-onshape-sketches. In it, the author seems to recommend NOT USEing other profiles / shapes to constrain to, but rather just constraining to the projected version of that shape directly from the drawing.

I can't seem to get that to work. I have a revolved 3D shape and I've made a plane at 45 degrees to that shape and am trying to "wake up" the lathed edge of that shape but it's not recognized unless I USE it, but when I do, the projected circle doesn't in fact match the profile I'm trying to constrain to.

I wonder what I'm missing. Below you can see an off-axis view of the drawing plane with me about to USE the outer edge of the revolved object. the construction line is the projected line. I was hoping to not have to USE it (based on that blog post), but it won't wake up for me to constrain to.

Am I missing something basic here (quite likely)?


Best Answer

Answers

  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 5,714
    edited April 2020
    It's hard to see what's going on there - can you share the URL? Is the circular edge perpendicular to the sketch plane?

    EDIT: To avoid confusion please use the term Sketch rather than Drawing which is a totally different environment, thanks.
    Senior Director, Technical Services, EMEAI
  • tom_augertom_auger Member Posts: 116 ✭✭
    NeilCooke said:
    It's hard to see what's going on there - can you share the URL? Is the circular edge perpendicular to the sketch plane?

    EDIT: To avoid confusion please use the term Sketch rather than Drawing which is a totally different environment, thanks.
    Hi Neil, thanks for being willing to take a look. https://cad.onshape.com/documents/5988345a673f76d47ce4d374/w/2b0e87b56c4d74c4561d74d1/e/4d6393f458e4aa76dc931ec0

    Sorry about the Sketch/Drawing thing. I'm constantly getting those two terms mixed up. The Sketch is the thing you start with, the Drawing is the plan you end with, is that right?
  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 5,714
    tom_auger said:

    Sorry about the Sketch/Drawing thing. I'm constantly getting those two terms mixed up. The Sketch is the thing you start with, the Drawing is the plan you end with, is that right?
    Correct!

    Also, the projected edge looks correct too - projecting a circle onto an angled plane will create an ellipse. It is still perfectly valid for constraining to. If I am misunderstanding the issue, please let me know.
    Senior Director, Technical Services, EMEAI
  • tom_augertom_auger Member Posts: 116 ✭✭
    NeilCooke said:
    It is still perfectly valid for constraining to. If I am misunderstanding the issue, please let me know.
    Hi Neil thanks for your continued feedback on this topic! My question was really in reference to the best practices Paul was referring to in an OnShape blog post from way back - about preferring to constrain to the projected geometry rather than "use"ing that geometry (as I have done) and constraining to the "Use"d projection.

    I may have missed his point altogether, or maybe it only applies in certain circumstances. It seemed that you retain more flexibility to changes if you don't "use" the geometry, but I could have misunderstood the whole thing.

    What's your perspective? Have you read that blog post? Have things changed in the way sketches are handled internally since then?
  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 5,714
    How a sketch works has not changed. "Use" is perfectly acceptable if you are sure that the external reference isn't going to change too much (be deleted, consumed by a fillet, or change from a circle to an ellipse (the example in the blog)). If the reference fails, it is impossible to fix the "used" geometry - your only option is to delete and re-"use" which could have a knock-on effect on downstream features.

    If you create sketch geometry and manually add a constraint to an external reference, and that reference subsequently fails, you only have to re-add the constraint - the geometry is still intact, it just needs a new reference. Hope that makes sense.
    Senior Director, Technical Services, EMEAI
  • tom_augertom_auger Member Posts: 116 ✭✭
    NeilCooke said:

    If you create sketch geometry and manually add a constraint to an external reference, and that reference subsequently fails, you only have to re-add the constraint - the geometry is still intact, it just needs a new reference. Hope that makes sense.

    thanks again, Neil. My challenge here is that I don't know how to add a sketch constraint to geometry that's not in the sketch or on the plane of the sketch. For example, if I extrude a cylinder and then create a new sketch on one of the endcap faces of the cylinder, no problem, I can reference any portion of that circular shape. But in the example I linked above, the plan is at 45 degrees to the revolved shape and I cannot wake up the edge of that shape to constrain to it (without the Use command). Is there a method I'm missing, or is that the way it's supposed to work?
  • tom_augertom_auger Member Posts: 116 ✭✭
    Thanks @Jake_Rosenfeld I will try that!
Sign In or Register to comment.