motion simulation using API

Hi every one

I am trying to make 6dof robot arm pathh planning using solidworks simulation and the path will be change according to measured impact force (Active Force Control Algorithm)

So can I use API to do that (Control in motor poisiton and read force sensor value ...........etc)

If I can I hope if there is some tutorial for that

and If not ,is there any other way to don that???

thank you all very much

SolidworksApi macros