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.

Variable number of revolved features on cone

thomas_aathomas_aa Member Posts: 19 ✭✭
I'm trying to create ribs on a tilted cone, to form a tube connector. I want to be able to change the number of ribs, so I have created #rib_count. My problem is that I cannot get the ribs to change in number correctly.

I tried with a linear pattern within a sketch, but such patterns cannot use variables (I have read that e.g. reducing the number would delete sketch geometry).

Then I tried using a feature pattern. It works well for doing #rib_count number of ribs. Now my next problem is that I want a revolve to revolve all the ribs, but I cannot get revolve to pick up ribs when I increase #rib_count.

I have tried revolving first and then doing a linear pattern of the revolve feature, but then the ribs do not expand in size as they follow the cone.

How do I solve this?

Example. Try increasing #rib_count:




Best Answer

Answers

  • romeograhamromeograham Member, csevp Posts: 673 PRO
    edited May 2020
    @thomas_aa
    Have a look at this document: https://cad.onshape.com/documents/794db4c5a5426e423c76daba/w/884b325aad2bfa0883d6ed0c/e/d1f7517bc1b8d8b05bce0e6c

    I have set your #rib_count to be driven by the configurations (your document didn't have any configurations in it), so your pattern is different for each configuration.


    See if that helps.

    Don't forget you can also configure the selection of sketch faces (for instance, your "Suction Pipe Rib Sketch" could have all 5 ribs in it, but your selection could change with each configuration.

    Hope that helps!

  • thomas_aathomas_aa Member Posts: 19 ✭✭
    Thanks for your reply. I'm looking for a more general solution that allows any number of ribs (maybe not very useful in practice, but at the moment I'm experiment with the ribs and some tubes).

    I came up with a workaround using the fact that overlapping solids can be combined to one using Add in the linear pattern:


    I did this on my phone, so please ignore the configuration and change the rib_count directly (cannot edit configurations on the phone).
  • romeograhamromeograham Member, csevp Posts: 673 PRO
    I see - your strategy of patterning the body is probably more robust in the end than patterning the Sketch.
    However, if you DO pattern the sketch, and set up the selection of the Revolve to select the highest possible number of barbs (as defined with a Configuration Variable), it seems to work well. You can enter any integer in the Configuration variable, and it will work. You can define the range of acceptable number of ribs in the Variable itself (I set it from 1 - 10, with 5 as the default).

    Updated model: https://cad.onshape.com/documents/794db4c5a5426e423c76daba/w/884b325aad2bfa0883d6ed0c/e/d1f7517bc1b8d8b05bce0e6c



    Is that more in line with what you need?

  • thomas_aathomas_aa Member Posts: 19 ✭✭
    Your method does work indeed, but it does require me to know the probable maximum from the start (or patch it up later). In one way it is less hackish than mine, not creating strange solids.

    I found it interesting that Onshape does not warn about missing faces in the revolve when the number is reduced. However, I guess this might be happening with "suppress" configurations, so it is a conscious feature.

    Also, were someone to change the maximum allowed number of barbs (thanks for the terminology!) from 100 to 101, they would probably miss that a barb is missing.( I know that it is unrealistic for this example.)
  • romeograhamromeograham Member, csevp Posts: 673 PRO
    @thomas_aa because there is an explicit limit set as part of the Configuration Variable, you are not able to enter a value higher than the upper limit, so they won't be able to enter a number that is not allowed.

    Yes, I thought the fact that it will revolve a smaller number of faces than are selected. However, if you select a smaller number of faces (say the Configuration is set to 5, and you select 5 faces) and then increase the variable - it will not increase the number of barbs (even though the sketch has more faces, they don't get automatically selected).

    I'm sure with more playing around there is a configuration method for this that doesn't rely on the number of faces in the sketch. However, I haven't found it yet. I think it may have to do with patterning bodies (as you started to do).
  • EvanAReeseEvanAReese Member, Mentor Posts: 2,077 1337
    I believe you could use a linear pattern feature set to “feature pattern”, then pattern not only the revolve, but the sketch feature as well and select “apply per instance”
    Evan Reese / Principal and Industrial Designer with Ovyl
    Website: ovyl.io
  • thomas_aathomas_aa Member Posts: 19 ✭✭
    @Evan_Reese I tried playing around with feature pattern a bit, I don't think I understand what you mean. Can you elaborate a bit?
  • EvanAReeseEvanAReese Member, Mentor Posts: 2,077 1337
    thomas_aa said:
    @Evan_Reese I tried playing around with feature pattern a bit, I don't think I understand what you mean. Can you elaborate a bit?
    Hmm I just tried what I suggested and it isn't doing quite what I expected and I don't have time to fiddle with it right now. I think it's an interesting challenge and I feel close so I'll try to mess with it and let you know if I find a good solution.
    Evan Reese / Principal and Industrial Designer with Ovyl
    Website: ovyl.io
  • thomas_aathomas_aa Member Posts: 19 ✭✭
    @Evan_Reese Thanks for giving it a try! I'm interested to see what you did, but it seems that the document is not public?

    (I didn't know that it's possible to sketch on a mate connector!)
  • EvanAReeseEvanAReese Member, Mentor Posts: 2,077 1337
    thomas_aa said:
    @Evan_Reese Thanks for giving it a try! I'm interested to see what you did, but it seems that the document is not public?

    (I didn't know that it's possible to sketch on a mate connector!)
    oops! it's public now.

    I love sketching on mate connectors. It's good for sketching on a face without "waking up" all of the edges if you don't want them. It's also handy for sketches at off angles since you can have a custom "horizontal" and "vertical". Sometimes if I have a known part stackup, I'll drive all of the thicknesses in a single sketch with just lines, and sketch on the implicit mate connectors at the ends of the lines instead of making a ton of planes. super handy in lots of ways.
    Evan Reese / Principal and Industrial Designer with Ovyl
    Website: ovyl.io
Sign In or Register to comment.