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.

Create sketch in middle of part

Lee_HeskethLee_Hesketh Member, Developers Posts: 148 ✭✭✭
Hi all. I have a script where the user selects a face, then using qConvexConnectedFaces twice to select the ends. I have then found the midpoint of each of those faces and used them to find the midpoint of the part. What I need to do is create a plane at that point parallel to the end faces and then create a sketch. How could I do this?
Also, how could I implement the midplane feature from the plane command?
Thanks
Lee Hesketh
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!

Best Answer

Answers

  • ilya_baranilya_baran Onshape Employees, Developers, HDM Posts: 1,210
    Also, keep in mind that in FS you don't need to actually create a construction plane to sketch on -- you can pass a plane directly to newSketchOnPlane (that will, in fact, likely make things easier because then the coordinate system of the sketch is the coordinate system of the plane).  See https://cad.onshape.com/FsDoc/library.html#newSketchOnPlane-Context-Id-map
    Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc
Sign In or Register to comment.