Return nearest grid lines for equipment to export with schedule?

Hello Stephen,

Maybe you can use this script: