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.
Is there any scripting method to identify all arcs in a sketch to replace them with a line?
In trying to reduce the number of polygons in exported models, for performance reasons, I thought of converting all arcs within sketches to simple straight lines but have no idea how to do it through script.
However, this might corrupt the sketch if there are other references to the targeted arc so a way to avoid that is by not processing arcs that are referenced elsewhere. I could probably do it manually but if that can be done through scripting as well then that would be an awesome time-saver!
Any ideas anyone?