Making parametric geosphere

I have problems with making parametric geodesic dome. Also Ineed holes in centre of each face. Is it possible to do with macro?
SolidworksApi macros