06-10-2011 04:39 PM
Hi,
Is it possible to get name of plot where the cursor currently is? If yes - how?
Regards
Mike
Solved! Go to Solution.
06-12-2011 09:29 PM
You only need use property node: Plot>Plot name
Best regards
06-13-2011 08:30 AM
Hello Mike and Mahu!
To get name for the plot with cursor is associated with migt be little more complicated than mentioned here, but not much.
1) First find out which cursor you are working with, and set it active. (might be irrelevant for you)
2) Get index of plot associated with active cursor
3) Set active plot to be the one you found out
4) Use property node mentioned by Mahu to get active plot name
I have also attached simple example for you here.
Regards,
Stefo
06-13-2011 02:36 PM
Hi Stefo,
thanks for your solution:)
Can you explain how can I make it proof for errors I mean when I have 2 plots, and I switch off that one where cursor is, there is an error:(
06-14-2011 03:09 AM
you need to manually check what plot you are setting to be active - its index can't exceed the maximum number of plots - 1.
The best error checking is to manually check if the index of plot you try to work with is smaller then number of plots displayed.
regards,
stefo