RobotStudio event

Help with Addin

I could use some help with creating an AddIn that would go through all Robtargets in a station and add the first external axis value to the X transform of each Robtarget.  The reason for this is I have a customer that has a robot on a track.  But the robot was not set up properly and when he loads the robot program into RobotStudio the track and robot moves but the targets are all referenced to the world coordinates not the robot base.  This causes errors because now the robot can not reach the targets.