I set type for highway signage, and the typefaces get very close to being perfectly at 1/1000th, but are always a few 10,000ths up or down from what I need when outlined. Each word has a specific exact width spec'ed in 1000ths. Currently I have to manually click in the measurements palette, select the last two numbers and change each width manually. A script to change the width up or down to the next 1000th would save me work every day.
Draw and design, Print and publish, Scripting, Tools
This should round up/down the height and width of a selected path to 3 decimal places.var h = ( app.selection.height ) / 72; var w = ( app.selection.width ) / 72; app.selection.height = ( h.toFixed(3) ) * 72; app.selection.width = ( w.toFixed(3) ) * 72;