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 an offset path

graham_lockgraham_lock Member Posts: 160 PRO

Hi,

How should I go about creating a path offset by a given distance from another path?

Thank you.

Best Answers

  • Jacob_CorderJacob_Corder Member Posts: 137 PRO
    Answer ✓

    @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.

  • _anton_anton Member, Onshape Employees Posts: 413
    Answer ✓

    You can extrude a sheet body, opOffsetFace the face, get the resulting edge, and delete the sheet body.

Answers

  • graham_lockgraham_lock Member Posts: 160 PRO

    Thank you but I’m trying to do this in Featurescript.

  • Jacob_CorderJacob_Corder Member Posts: 137 PRO
    Answer ✓

    @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.

  • _anton_anton Member, Onshape Employees Posts: 413
    Answer ✓

    You can extrude a sheet body, opOffsetFace the face, get the resulting edge, and delete the sheet body.

  • graham_lockgraham_lock Member Posts: 160 PRO

    Thank you for your replies.

    Extrude and offset should work well for what I’m trying to achieve.

Sign In or Register to comment.