Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- 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.
Is there a polygon function?
dave_cowden
Member, Developers Posts: 475 ✭✭✭
Searching around, I cannot find a function anywhere that does it. looks like it should be in sketch.fs, but its not there.
I found this:
function createJogPolygon(points is array, boundingBox is Box3d, sketchPlane is Plane) returns array
but it doesn't do what i want.
Unfortunately viewing the output of a polygon in part studio, it appears the tool directly generates the line segments and constraints directly, rather than generating a feature call that can be re-used...
0
Best Answers
-
ilya_baran Onshape Employees, Developers, HDM Posts: 1,211We don't have a function, but we do have a snippet (Line segment chain) in the sketch snippet menu. A function is not hard to write...Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc5
-
ilya_baran Onshape Employees, Developers, HDM Posts: 1,211I added skPolyline and skRegularPolygon that you should see in the next update.Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc5
Answers