0 Replies Latest reply on Dec 15, 2015 1:19 AM by Divyanshu Bhardwaj

    Find the number of holes in a part with diameter

    Divyanshu Bhardwaj

      I am new to solidworks customization using vba, and i got stuck in a problem. How we can write a macro to get all the holes (either created by hole wizard or by revolving the sketch) present in an assembly or part! We need to display like a message. I tried collecting features, and using the GetFirstDisplayDimension() method to proceed further. I am successfully getting feature count and feature type by name till now. Can someone please help me with the code, i need it urgent.