DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

How to see if a curve in VIEW is selected or not using script?

Solved!
Go to solution

Hi,

 

I want to determine (using script) if a curve in VIEW has been selected.  I use this:-

 

msgbox View.ActiveSheet.ActiveArea.DisplayObj.Curves2D(1).Selected

 

but the result is FALSE.  I understand 'selected' to mean the curve has been selected by placing a dot as shown here:-

 

mrme_0-1600939617679.png

but obviously I am missing something...could someone explain why my line of script does not work as I expected?

 

Thank you!

 

0 Kudos
Message 1 of 5
(1,667 Views)

Hello mrme,

 

The curve with the blck dot is the so called Leading Curve.

 

msgbox View.ActiveSheet.ActiveArea.DisplayObj.Curves2D.LeadingCurve.YChannelName

 

Greetings

Walter

0 Kudos
Message 2 of 5
(1,639 Views)

Hi Walter,

 

Thanks for the fast response....but I am confused as to what '.Selected' does. 

 

What does Selected' mean ?

What would one use it for?

How do I select a curve in a plot?

 

kind regards,

Thomas

0 Kudos
Message 3 of 5
(1,635 Views)
Solution
Accepted by topic author mrme

Hi Thomas,

 

If you click on left or right grey area in the legend you can select (mark) one or more curves and delete or drag & drop them.

The leading curve marks the curve for the focus of the cursor.

 

Greetings

Walter

0 Kudos
Message 4 of 5
(1,628 Views)

Hi Walter,

 

Thanks! It is clear now.

 

Thomas

0 Kudos
Message 5 of 5
(1,620 Views)