Evenly distribute drawing views using API

Hi all,

I'm trying to learn some SW VBA and could really use a boost.

for my first project I thought I would make macro that will evenly distribute the selected drawing views between the upper & lower most views.

Pretty simple Right? Well, so far I have been able to figure out how to determine a views position and then move it. however, I'm note sure where where to go from here.

Seems like I need to learn about arrays and using the selection manager...and a zillion other things..

Does anyone happen to have a macro laying around I could use to familiarize myself with these sorts of operations?

Assumptions:

1.) All drawing views are vertically aligned to the center of the lower most view

2.) All drawing views are of the same piece of pipe, just different configurations of it

Thank you kindly! this forum has already helped me learn a ton!

Thanks

Chris

SolidworksApi macros