Does anyone know how to set the dimscale variable according to the scale of an active viewport. i.e. making a viewport active which has a scale of 1:50 sets dimscale to 50. If I then select a different viewport with a different scale factor it will again change the dimscale variable? (Or does anyone have any code to do it...grovel..grovel..)