Circular Pattern

I have an assembly with 3 different parts in it. I have patterned each one of these parts seperately around an axis. I am wanting to be able to change the number of instances in each pattern in my macro. I found something called TotalInstances Property in (ILocalCircularPatternFeatureDate), but i really do not know enough about programming to incorporate this into my macro. Any help with this, or any other ideas on how to accomplish what i am wanting to do is very appreciated.

Thanks in advance

SolidworksApi macros