hi > Plan B: make the doc with some arbitrary units, then either let the > user switch units after the script runs, or give them a dialog to > choose and switch for them.
personally, i agree that there should be a way to create a document in the users units. i would say more: each document created should be in the users preferred unit. if the script wants to have a control on the current unit it has to change it and set it back when it's finished. imo, it's a bug if the unit set the in the preferences is not used when creating a new document by the scripter. > In the end, you may wish that this item of the preferences was > accessible, but it's not. If that is some sort of show-stopper or > upsets you a great deal, we're sorry. i'm not sure whether the values set in the preferences should be read by the scripter. but the scripter should use those values by default when creating new elements, be able to get the current value, change it and set it back to the value preferred by the user. ciao a.l.e
