How to modify Z height of pallet plane?

I have a pallet routine set up in a plane and want to apply this same routine to a number of different rows of similar X Y coordinates but different Z height. For example, Corner 1 on row 2 would be the same X Y but about 50mm higher in the Z.

This would save time creating a program for each row height by hopefully taking the corners or coordinates in my first pallet and changing the Z height in the remaining rows. For reference, we are using the UR5 robot arm and have the Polyscope running on Ver 3.15.8

Read up on Features and how to use them. If all of your moves are taught to a Feature (other than Base) you can simply perform a Pose_add() function on the Feature to bump the whole Feature plane up in Z. Any points referencing that Feature will also get raised by the same amount automatically.

I had a similar issue and I solved it by making one row at the bottom and making the cobot go down until contact.

That way it either goes to the bottom layer, or stops at the layers above it.