0 Replies Latest reply on Aug 25, 2014 1:11 AM by roberto gennari

    Wrong result side in SketchOffsetEntities2

    roberto gennari


      I wanted to know if it is possible to create the offset of an edge always from the inside.





      I used the command:

      boolstatus = swModDoc.SketchOffsetEntities2(-0.01, False, False)



      Depending on the board (see attached image), the offset is internal or external.

      I thought to depend on the normal of the face, but it is not.

      The only solution that comes to my mind is, once you create the offset, measure the line with respect to the opposite edge, if it is lower than the long edge then it is correct otherwise I have to redo the offset,

      but I do not know how to find corretamente the opposite edge, although I think it is not the right solution.


      Obviously only works with a rectangular face.



      Do you have any suggestions for me?