It is supposed to do that automatically. The script keeps a variable that remembers for which Diagram on the page the values have been calculated. Which starts at the invalid value -1. When you then do something that requires piece values, and the current ones are not for the active Diagram, it calculates them. When you press a button it also sets that variable to -1.
It is supposed to do that automatically. The script keeps a variable that remembers for which Diagram on the page the values have been calculated. Which starts at the invalid value -1. When you then do something that requires piece values, and the current ones are not for the active Diagram, it calculates them. When you press a button it also sets that variable to -1.