I can also get the value to be displayed in the GUI adding the following text to the shape <%UserData area%>.
However my problem is that when I change my shape and re-run the AppleScript to calculate the new area, the data value is not updated until some kind of refresh event such as moving the screen, changing the zoom, etc.
How can I trigger a refresh (like slightly changing the zoom of my current window) through AppleScript so that I can get the current value to display on my GUI automatically?
Probably worth a direct question through the Help > Contact Omni
Slight mismatches/lags between GUI view and script-adjusted model state come up in a number of places – connecting lines between script-moved shapes, display of script-adjusted text, etc etc.
I’m not sure that there is a simple solution in current builds – my impression is of a race condition which the script thread sometimes loses, but do share any solution that you learn of …