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.

Options

The best way to create the sketch with regular polygon via Onshape API

max_borshmax_borsh Member, Developers Posts: 14
edited January 2017 in App Store & Partners Apps
Hi everybody!
I want to create the regular polygon. I tried to do it like this: 
- get this sketch feature by "Get Feature List" api call
- send the mentioned feature in the context of "Add feature" api call.

And I can take polygon like this:
 

But the fact is that the regular polygon is just array of BTMSketchCurveSegments with specific constraints. Does it mean I have to create and to calculate the each side independently (if I want a regular 7-gon for example)?

Is there easier way to create the regular polygon (there are radius and number of angels)?

What is best practice to do it? 

Thank you in advance!
3.png 15.6K
Sign In or Register to comment.