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.
Create an offset path
Hi,
How should I go about creating a path offset by a given distance from another path?
Thank you.
Best Answers
-
Jacob_Corder Member Posts: 137 PRO
@graham_lock . you have asked about every question that I had asked either on the forums, or directly to onshape. You cannot do a sketch offset.
I have been at this for 5 years in onshape (8 years automating solidworks for reference).
If you need to use sketch tools at all in featurescript, abandon what you are doing. You need to handle that stuff yourself. Sketch Relations in featurescript are dangerous as the results could be what ever the initialGuess is which is just a guess. To offset a curve, extrude it by 1mm then offset that face then extract the edge. I understand it is not a sketch but again, sketch tools in featurescript are basically impossible to use with any level of certainty. If you find a way, then that is great but not worth the time.
0 -
_anton Member, Onshape Employees Posts: 413
You can extrude a sheet body,
opOffsetFace
the face, get the resulting edge, and delete the sheet body.0
Answers
https://cad.onshape.com/help/Content/sketch-tools-offset.htm
Thank you but I’m trying to do this in Featurescript.
@graham_lock . you have asked about every question that I had asked either on the forums, or directly to onshape. You cannot do a sketch offset.
I have been at this for 5 years in onshape (8 years automating solidworks for reference).
If you need to use sketch tools at all in featurescript, abandon what you are doing. You need to handle that stuff yourself. Sketch Relations in featurescript are dangerous as the results could be what ever the initialGuess is which is just a guess. To offset a curve, extrude it by 1mm then offset that face then extract the edge. I understand it is not a sketch but again, sketch tools in featurescript are basically impossible to use with any level of certainty. If you find a way, then that is great but not worth the time.
You can extrude a sheet body,
opOffsetFace
the face, get the resulting edge, and delete the sheet body.Thank you for your replies.
Extrude and offset should work well for what I’m trying to achieve.