Moving bodies in a part api

I'm trying to move an extrusion(see picture) from its origin to a 3D sketch point. While the 3D sketch point is known I'm having issues defining the Selectbyray method as I don't know the initial position of the extrusion. Is there anyway to automate the selection?

Thanks in advance.

SolidworksApi/macros