AnsweredAssumed Answered

Find the number of holes in a part with diameter

Question asked by Divyanshu Bhardwaj on Dec 15, 2015
Latest reply on Mar 10, 2020 by Deepak Gupta

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.