Can you reset the Linear Offset during a batch run?

Can you reset the Linear Offset during a batch run?

Hello,

I have a setup with a fixture that has 5 positions for parts in a row on the X axis.

I want to measure 30 parts in one go and use the GetBatchRunIndex() to name the files in order.

I have set up a vb script that after every five parts are measured the program will stop with a message to swap the five parts with the next five, and then I want the linear offset to start at the first location again.

I tried to use the recall fixture frame and the fixture moves to the first position again in the CAD view but as soon as the next run starts again the view moves to the next offset from the previous nr five position.

Is there any way to reset the linear offset so that program will start at the first position after every five parts or can it solved another way with the same result?

Regards Christian