How to change num of Circular Pattern wiht API

Number of Instances . Sets the number of instances of the seed feature.

SolidworksApi macros