New version with "Measure" menu will be published in few minutes :-)
But you can also use Warp in existing version. All you need are warp points which you can get using g-code below.
Code:
(name,Measure Surface, 1)
(dlg,Position X, 3, 0, -10000, 10000)
(dlg,Position Y, 3, 0, -10000, 10000)
(dlg,Size X, 3, 40, 0, 10000)
(dlg,Size Y, 3, 30, 0, 10000)
(dlg,Step, 3, 5, 0, 10000)
G90 (absolute mode)
G94 (units per minute mode)
F#<_speed_probe>
G00 X#<_measure_surface-position_x> Y#<_measure_surface-position_y>
M998
#1 = #<_x>
#2 = #<_y>
#3 = #<_z>
#11 = [#1 + #<_measure_surface-size_x>]
#12 = [#2 + #<_measure_surface-size_y>]
#21 = #1
#22 = #2
(logopen,MeasureSurface.txt)
o200 while[#22 LE #12]
o100 while[#21 LE #11]
G00 X#21 Y#22
G38.2 Z-10000
G91
G00 Z#<_sensor_zdist>
G90
#31 = [TOABSX[#21]]
#32 = [TOABSY[#22]]
#33 = [#<_probe_z> - #<_coord_system_z> - #<_g92_z> - #<_tool_offset_z>]
(log,X#31 Y#32 Z#33)
#21 = [#21 + #<_measure_surface-step>]
o100 endwhile
#22 = [#22 + #<_measure_surface-step>]
o150 if[#22 LE #12]
o100 while[#21 GT #1]
#21 = [#21 - #<_measure_surface-step>]
G00 X#21 Y#22
G38.2 Z-10000
G91
G00 Z#<_sensor_zdist>
G90
#31 = [TOABSX[#21]]
#32 = [TOABSY[#22]]
#33 = [#<_probe_z> - #<_coord_system_z> - #<_g92_z> - #<_tool_offset_z>]
(log,X#31 Y#32 Z#33)
o100 endwhile
#22 = [#22 + #<_measure_surface-step>]
o150 endif
o200 endwhile
(logclose)
G00 Z#<_sensor_zdist>