2 Replies Latest reply on Dec 22, 2016 7:11 AM by Adam Mircea

    Macro/api to count the holes from a Cut-Extrude feature

    Adam Mircea

      Hi all,

           i need to retrive automaticly the number of hole on a solid part with a macro. For now I'm able to count all special holes done with "Hole wizard" with the vba command "Feature.GetSketchPointCount", so by counting the points on this sketch i can get the numbers of special holes.
           The problem is that if i have simply holes done with features "Cut-Extrude" i can't count points, because it conts also slots points,intersection point,etc.

       

           Do someone know how to get this indormation from solidworks ? Is there a command like GetSketchCIRCLESCount ?

           Thanks all in advance !!

           (sample)

      sample.bmp