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.

Split using plane size?

Lee_HeskethLee_Hesketh Member, Developers Posts: 148 ✭✭
I am trying to make a script that creates mitred corners. I thought of creating a plane and then calling opSplit. But then I realised that the plane is infinite and will not just split the desired corner, but the whole part. Is there a way of setting an "effect radius"? Such that it will only split a part in a certain radius.
If not, what will be the best way of making mitred corners using featurescript?
There are 10 types of people in the world. Those who know binary, those who don't and those who didn't expect base 3!
Tagged:

Comments

  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 2,198
    Add a chamfer?
    Neil Cooke, Director of Technical Marketing, Onshape Inc.
  • Lee_HeskethLee_Hesketh Member, Developers Posts: 148 ✭✭
    A chamfer won't work in this scenario. I am creating a rectangle and then a smaller rectangle inside it then extruding the profile, so the result is a hollow box. Then I want to create the mitred corners but this is my result
    So you can see it has split the corner, but it has extended past and split the back face. I would like to prevent this. I know that this is because the plane is infinite, but it would be nice if the split stopped at the boundary of the plane object.
    There are 10 types of people in the world. Those who know binary, those who don't and those who didn't expect base 3!
  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 2,198
    Connect the corners of the rectangles with sketch lines, extrude surfaces, then split the solid?
    Neil Cooke, Director of Technical Marketing, Onshape Inc.
  • Lee_HeskethLee_Hesketh Member, Developers Posts: 148 ✭✭
    Same problem, not just the corners are split. Anything the surface intersects will be split.
    There are 10 types of people in the world. Those who know binary, those who don't and those who didn't expect base 3!
  • Lee_HeskethLee_Hesketh Member, Developers Posts: 148 ✭✭
    That method only works if the box is not rectangular.
    There are 10 types of people in the world. Those who know binary, those who don't and those who didn't expect base 3!
  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 2,198
    OK you are right. If you connect the corners of the rectangle sketches, you have 4 regions to extrude independently with the miters already added - would that work?
    Neil Cooke, Director of Technical Marketing, Onshape Inc.
  • Lee_HeskethLee_Hesketh Member, Developers Posts: 148 ✭✭
    That would work, but I don't know how to select specific sketch regions using featurescript
    There are 10 types of people in the world. Those who know binary, those who don't and those who didn't expect base 3!
  • Jake_RosenfeldJake_Rosenfeld Moderator, Onshape Employees, Developers Posts: 1,285
    Lee,

    qSketchRegion (https://cad.onshape.com/FsDoc/library.html#qSketchRegion-Id-boolean) can be used to select the sketch regions created by a certain sketch.
    Jake Rosenfeld - Modeling Team
Sign In or Register to comment.