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.

Configuration to Chose a Shape in a Sketch

neobobkrauseneobobkrause Member Posts: 75 EDU
I have a shape that includes a surface with a pattern of holes. Sometimes I want the holes to be round, but other times I want them to be hex shaped, and so on. Prior to OnShape configurations showing up on our doorsteps, I've managed this set of variations using a sketch that included all the various hole patterns I might be interested in, but set all but the "current" pattern as Construction lines. Something like this...

In all that clutter, you'll notice that the only non-Construction element in the sketch is the hexagonal shape. Changing the hexagon to a Construction, then converting the circle, diamond, or smaller hexagon to be non-Construction will result in the shape having cutouts of those shapes.

My question is how/whether OnShape's new Configuration capabilities can be used to cleanly select the cutout shape of this object. 

- Bob


  • mahirmahir Member, Developers Posts: 834 ✭✭✭✭
    edited February 2018
    @neobobkrause, construction lines are just that - for construction. Someone correct me if I'm wrong, but they don't contribute to the creation of usable contours. You can't currently use configs to switch between construction/solid sketch lines, and I doubt you ever will. You can definitely configure different contour selections, but they need to actually be selectable. To do this, you either need different sketches for the different outlines, or you need to make all the construction lines into solid lines. I'd use the first option. It adds lines to the feature tree, but it makes selecting contours much simpler.
  • mahirmahir Member, Developers Posts: 834 ✭✭✭✭
    edited February 2018
    Here's an example. The config option called "Base Shape" selects between either the square or pentagon contour from the same sketch. As mentioned above, this can more easily be done with separate sketches.

  • owen_sparksowen_sparks Member, Developers Posts: 1,988 PRO
    Personally (and it's just a preference) I'd have either:-

    Simple method
    (i)  An initial sketch with just hole location vertices.
    (ii) Individual sketches for each hole type, and select these using configs.

    Nicer Method
    Make a simple featurescript with a "Hole Shape" drop down list, and then configure that input.

    This has the option that you can then use "created by" with an edge filter to add a chamfer to the hole.


    Owen S.
    Production Engineer
    HWM-Water Ltd
  • andy_morrisandy_morris Moderator, Onshape Employees Posts: 87
    The way I would suggest achieving this result is to configure the selections used for the extrude feature.

    All you need to do is to add the selection list for the extrude to the configuration input, which will then display the selection count in the table. When you double click on this cell in the table you can change the selections to a different sketch, or you can add or remove regions from the selection list.

    See this simple example of configured selections:

    Andy Morris / Head of Product Design / Onshape, Inc.
  • owen_sparksowen_sparks Member, Developers Posts: 1,988 PRO
    Nice :-) :-) :+1:

    Production Engineer
    HWM-Water Ltd
  • neobobkrauseneobobkrause Member Posts: 75 EDU
    The way I would suggest achieving this result is to configure the selections used for the extrude feature.

    Yeah, that’ll work. Thanks.
Sign In or Register to comment.