2 Replies Latest reply on Jul 19, 2017 1:19 PM by M. Doga Dogan

    Getting line information in sketches

    M. Doga Dogan

      Hello,

       

      I was looking at the sample code "Get Lines in Sketch Example" online: 2017 SOLIDWORKS API Help - Get Lines in Sketch Example (VBA).

       

      The output is given by: Debug.Print " Start = (" & vLines(12 * i + 6) * 1000# & "," & vLines(12 * i + 7) * 1000# & "," & vLines(12 * i + 8) * 1000# & ") mm"

      Here, what does vLines(12 * i + 6), vLines(12 * i + 7) etc. mean? Why do we multiply i by a certain number and how does that become the x/y coordinate?

       

      Just trying to figure out how they did it

       

      Thank you,

      Doga