5 Replies Latest reply on Nov 19, 2015 2:43 PM by Matthew Cempa

    How do I select the opposite face on a sheet metal part via SolidWorks API?

    Steven Barry

      What is the most straightforward way to select the opposite face on a sheet metal part, given a pre-selected face normal to the material thickness using SolidWorks API?


      My best idea so far is to cycle through the faces using the GetNextFace method of the selected Face2 object, check that the face is planar, then use the IMeasure interface to compare the distance to the material thickness.  This seems a bit tedious and possibly unreliable though, especially for parts with more complex geometry. 


      Can anyone think of a better way to do this?