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.

Hollowing out a convoluted cylinder

tj_thornileytj_thorniley Member Posts: 65
edited November 2017 in Community Support
Was hollowing out this lens barrel, making progress. But for some reason, I can't seem to get the last bit (towards the right-hand side of the images below).

Any ideas? Here it is looking up the barrel.

https://cad.onshape.com/documents/b4b4261f4f1c26e011a77dbf/w/1b735737fb7eeb1a46eac899/e/aad0b319e095bf2cff3162c5

Answers

  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 5,674
    The images look ok? What are you trying to do?
    Senior Director, Technical Services, EMEAI
  • tj_thornileytj_thorniley Member Posts: 65
    @NeilCooke Trying to hollow the whole thing out. See how in the first image, the hidden hollow areas are shaded yellow? But there's a bit near the narrow end that isn't? I can't seem to reach that bit to hollow it out. It's blocking the spot where the first glass element is supposed to fit. Notice the shape?
  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 5,674
    Yeah, still don't understand? Is the lens supposed to sit in like this?


    If so, just do a revolved cut. Also, I noticed that Hole9 and Hole11 are misaligned.

    Senior Director, Technical Services, EMEAI
  • tj_thornileytj_thorniley Member Posts: 65
    edited November 2017
    @NeilCooke Yes, just like that! I was trying to cut out the red bits with the 'hole' tool. The thing is I can't seem to acquire the correct starting point (or plane? I'm not entirely sure). With the others, I just selected the circles (vertical lines from this perspective) where the 'chamfer' is, and used the 'hole' tool. It's weird, because I had no issue making the others.

    Also, are you talking about the small 1.5mm holes? I tried to get them perfectly in line, but I don't know how. I made the first one by making a 'point' and 'hole', flipped the model, expecting a new 'point' would snap in line with the one on the opposite side. But it didn't seem to recognise it.
  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 5,674
    To model this part, you shouldn't really use the hole tool. You could just as easily create most (not all) of the external and internal profile in one sketch and revolve, like this:



    Note that some of the chamfers are drawn - "functional" chamfers should be drawn, "cosmetic" chamfers should use the chamfer tool (as a rule). To get your hole around the circumference, draw a circle on the top plane and extrude/remove in both directions, then use the circular pattern tool to get the others.

    Senior Director, Technical Services, EMEAI
  • tj_thornileytj_thorniley Member Posts: 65
    @NeilCooke Okay, I will try to do it that way next time. But in the meantime, I have to know what I was doing wrong. Why was I able to hollow out the other sections with the 'hole' tool, but not this one? 

    Not trying to be a pain; I appreciate your advice. But for me, it's not so much about this one particular instance. It's more about understanding how to use the tools and becoming familiar with all associated the bits & pieces.
  • mahirmahir Member, Developers Posts: 1,307 ✭✭✭✭✭
    edited November 2017
    I have to know what I was doing wrong

    @tj_thorniley, what you were doing wrong was using the Hole feature. Hole features are generally used when making holes of preset shape/size for fasteners, e.g. specific fastener clearance sizes, counterbores, countersinks, etc. Asking why the Hole tool didn't work is akin to asking why you shouldn't use needle & thread instead of stapling sheets papers. I guess needle & thread could be made to work, but why would you bother figuring out how?

    In your case, you wanted a very specific shape that more or less matches the outer contours of your lens barrel. That's what the Revolve feature is for, or possibly Shell. I suggest you learn to use those features and leave the Hole shenanigans behind - at least for this particular usage.
  • Jake_RosenfeldJake_Rosenfeld Moderator, Onshape Employees, Developers Posts: 1,646
    Hi @tj_thorniley ,

    The reason your "Hole" tool is chopping off the end of your Part is because its subtracting a tool that looks like this red thing (but is going the other way from the selected sketch point):


    I got this graphic by clicking the arrows next to "through", which switches the direction that the hole is being drilled.


    In general, I wouldn't advise using the hole tool do hollow out a part like this.  With the hole tool, you don't have control over the shape of the cone at the end and there are a lot of unnecessary options that you won't end up using.  The hole tool is great for making drilled/tapped holes, but what you are trying to do here requires a bit more precision.

    It's much simpler to just sketch a circle and extrude-subtract:


    Or better yet, roll back to before the holes, sketch the cross section of the material you want removed, and do a revolve-remove:

    Simple sketch using the "offset tool"  ^

    revolve remove ^

    Document with these examples:
    https://cad.onshape.com/documents/04d9d061ddaa16dfbde7bba0/w/3ed12fdc1d26d2637339e97d/e/490d09a182df864063ac2760


    I think you'll get a lot farther by using sketches and simple, generic, robust tools like extrude, revolve, draft, and loft than trying to use a special purpose tool like Hole for something it wasn't meant for.

    The hole tool is really meant for applications like this:

    where you want to make a series of bolt-holes in one or more parts.  The added value of the tool is that the selected options (ANSI vs ISO, sizing, countersink/counterbore, through) will show up on a drawing sheet for manufacturers.
    Jake Rosenfeld - Modeling Team
  • tj_thornileytj_thorniley Member Posts: 65
    @mahir Nah. You're missing the point. There are better ways to do it? Okay, fine. We've established that. I hear you. But I know this way can work. It worked fine three times in a row. I just want to know why I couldn't get it to work for this last bit. Indulge me.
  • tj_thornileytj_thorniley Member Posts: 65
    @Jake_Rosenfeld Actually, it wasn't chopping the end off. I couldn't seem to get that far. It was like the tool wouldn't latch onto the edge (/sketch/vertex?). Thanks though. You always have the most helpful answers. The offset tool looks useful.

    Are there video tutorials for all the tools? I checked YouTube, but I think there's a lot that isn't covered on there.
  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 5,674
    @tj_thorniley please take the advice from the users on this board - many of them have decades of 3D modeling experience. Each tool does a specific job and using the wrong tool for the wrong job will just get you into bad habits.

    You can learn all you need to know for free at learn.onshape.com or you should attend one of Cody's regular "Essentials" webinars where you can ask as many questions as you like, live.

    P.S. Don't down vote me!

    Senior Director, Technical Services, EMEAI
  • tj_thornileytj_thorniley Member Posts: 65
    For anyone who might be interested: Not sure what was getting in the way before, but to satisfy my curiosity I was randomly playing around with it, tried again, and it worked. 


    To everyone else: Not to go on about nothing, but I'm not the kind to just shut up and do what I'm told. It seems you're right; it's not the best way to do it. I've taken that advice on board. I appreciate it. And chances are, I'm going to end up doing it the way you've recommended. But when I'm determined to figure something out there's not much point trying to stop me. I experiment. It's how I learn. And sometimes, I simply want to know what I want to know. In this instance the reason why is kind of abstract and hard to explain. No disrespect intended. Just to be clear.

    All things considered, it worked out reasonably well, although the final internal bevel is steeper than the required 45°. I'll probably end up going with Jake's 'offset' sketch → 'revolve' remove method.
    ---------------------------------------------------------------------------------
    To make sure all the parts fit together perfectly, should I model them all in a single 'parts studio'? There are just a few non-moving internal parts. And a brown/gold outer shell with a fine thread that fits over the top. Yes, I'd like to model the thread.

    Here's the shell:

    Here's the original model where it was all one piece:

    Here's the actual part that fits in the shell, so you can see where the thread goes (the middle one; I think the one to the right is vestigial):

    Here's the first internal part (again):

  • tj_thornileytj_thorniley Member Posts: 65
    PS @NeilCooke Pretty sure I've only ever hit 'Vote Up' on your answers. They're good answers. I was just trying to do something odd before.
  • Jake_RosenfeldJake_Rosenfeld Moderator, Onshape Employees, Developers Posts: 1,646
    edited November 2017
    Hi @tj_thorniley

    Yes! You'd be best modeling all of these parts together in the same Part studio to make sure they fit together nicely.  The Boolean tool is your friend here (as well as the boolean options at the top of our feature dialogs), because you could do something like creating the positive of the threads, and then doing a "Subtract" to get the negative.

    https://www.onshape.com/cad-blog/tech-tip-booleans-in-onshape

    Additionally, you might find the "Thread Creator" custom feature helpful.  It can be found on this page: https://www.onshape.com/featurescript by hitting the "More" button at the bottom of the "Feature Spotlight".  If you've never used a custom feature before (custom features are Onshape features written by the community), check out the "Start Using Custom Features" video on that page.

    Was there anything else you were wondering about? I'm not sure if I'm missing another question in your post.

    Best
    Jake Rosenfeld - Modeling Team
  • tj_thornileytj_thorniley Member Posts: 65
    edited November 2017
    @Jake_Rosenfeld Could you guys do a video tutorial on that? Particularly RE: making multiple parts in a single parts studio, with matching threads. The video at the top of that link is pretty good too.
    You're welcome to use any of my parts as examples if you like. I think it could be useful for everyone.
  • Jake_RosenfeldJake_Rosenfeld Moderator, Onshape Employees, Developers Posts: 1,646
    Hi @tj_thorniley !

    You may find this page helpful:
    https://www.onshape.com/videos

    I'm not very good at making videos (my main role here at Onshape is as a programmer).  We try to discourage making threads in general ( @owen_sparkshad a great post on the end of this chain about how adding threads made his model >100x more complicated for our system https://forum.onshape.com/discussion/comment/33855#Comment_33855), unless it's absolutely necessary from a modeling standpoint, so I'm not sure we'll make that kind of video tutorial any time soon.

    I'm definitely happy to help though! Instead of a video I've made you a couple part studios:
    https://cad.onshape.com/documents/6df3507dd25c816a1d437ad7/w/6a706b78f17354ea71494aa7/e/2ffd79d230b17d4c11d33e18
    You can copy this document and double click on any of the features to see what the inputs and affect of that feature were.  You can also drag the rollback bar to different points in the Feature List to see what state the document was in at that point in time.
    This video has a good example of the best way to roll through the history of a document, starting at 3:58: https://www.onshape.com/videos/parametric-modeling-and-feature-based-modeling

    I've taken two approaches in this document:
    1. In the "Using boolean" part studio, I created a bolt by rotation, created threads on it using the thread creator custom feature (see my last post for how to add this to your toolbar and use it), created a cylinder by rotation, and then did a "Boolean" with the "Subtract" option to carve the threads out of the cylinder
    2. In the "Using thread creator" part studio, I created a bolt by rotation, then created a cylinder by rotation and used a "Boolean" with the "Subtract" option to carve out the (unthreaded) bolt shape from the cylinder.  I then used the thread creator on the outside face of the bolt and the inside face of the complimentary cylinder to make matching threads on both of the parts.
    Please let me know if you have any questions about the document, or about looking through the feature list to deconstruct how a part was made.

    P.S. I did find these videos on creating threads: 
    https://www.onshape.com/videos/lets-build-a-thread-in-60-seconds
    https://www.onshape.com/videos/lets-make-a-nut
    but they are pretty old, and the thread creator is much easier to use than following these full sets of steps.
    Jake Rosenfeld - Modeling Team
  • tj_thornileytj_thorniley Member Posts: 65
    @Jake_Rosenfeld Nice, I've got this Boolean business down now, thanks.

    About to take another crack at hollowing out this part. Why can't I just use the 'shell' tool? I can get it to work perfectly on separate parts, including cylinders, etc. But for some reason it won't do the whole part. Something keeps tripping it up.
  • Jake_RosenfeldJake_Rosenfeld Moderator, Onshape Employees, Developers Posts: 1,646
    @tj_thorniley

    Sometimes the shell can create self-intersecting geometry on parts with small details (like threads).  Since you want your shell to just respect the overall shape of the part anyway, I would design the simple shape of the part, then shell it, then add the details (all the threads and exterior lips etc.)
    Jake Rosenfeld - Modeling Team
  • tj_thornileytj_thorniley Member Posts: 65
    edited November 2017
    So, do I have to start again? 
    It's become pretty intricate with various 0.5mm extrudes, and tiny details.

    This is my first model and its taken considerable time and effort to get it this far. So I'm trying my best to avoid scrapping it. 

    Measurements were taken with vernier calipers and a micrometer.
  • bruce_williamsbruce_williams Member, Developers Posts: 842 EDU
    Shell before the threads.  You should be able to move the thread features lower in tree if necessary.  Version and branch are your friends for recovery if experimenting.
    www.accuratepattern.com
  • tj_thornileytj_thorniley Member Posts: 65
    Cheers. I'll give it a shot.
Sign In or Register to comment.