Using SW API move components in an assembly!

Hi all !

My question is how to make a program using SW API to move components in an assembly, like my simple following form ( like we use Move Components in an Assembly).

Thank you so much.

SolidworksApi macros