collision analysis

Hello everybody..

I need to write a code using the API so as to conduct a collision test between one part in the assembly with the others.

how do i check if the component if moved to infinte distance in a particular axis say postive y-axis will not collide with the other components, and if there is a collision, aganist which component.

kind do answer..

regards

tom

SolidworksApi macros