Reading and writing the snap_grid_size.