We have a single visio drawing that we wish to be used by four similar systems, depending on a variable we will be either showing or hiding parts of the visio.
From an Adult visio we are obviously able to set the variable from a button click which will then load the child visio correctly - this works well.
However, the variable is not changed when clicking one of the four systems in the treeview, it remains set to the last value set from the Adult visio - So the question is ( IF system 1 is clicked in treeview set var to 1 ELSE IF system 2 is clicked in treeview set var to 2 etc )
By Clicking any of the outlined objects below we set a variable to the relevant system 1 2 3 or 4 - which then displays a child visio with a particular configuration, as mentioned earlier this works well.
We would also like to set the same variable to the relevant system when clicking the system in the treeview as shown below.