Index: work/scripts/ruler.awk =================================================================== --- work/scripts/ruler.awk (revision 19317) +++ work/scripts/ruler.awk (revision 19318) @@ -1,14 +1,17 @@ # An action to draw a ruler function ruler(user_input) { + setunits("mm") + setvalue("grid, 0.5, mm") + #grid ("grid, 0.5, mm") for (x=0; x < user_input+0 + 1 ; x++){ if (x != 0 && x % 10 == 0 ){ - ddraft("line from " x "mm,1 to " x "mm,3.5mm") + ddraft("line from " x "mm,1mm to " x "mm,3.5mm") message("x is " x ); createtext( "#8" , 0, x - 0.6 "mm", "4.0mm", 0 , 100, x "") } else{ - ddraft("line from " x "mm,1 to " x "mm,2mm") + ddraft("line from " x "mm,1mm to " x "mm,2mm") } } return 0