DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Select/Deselect a curve in a 2D plot in VIEW

Solved!
Go to solution

Hi,

 

Just wondering if you know a way that could select/deselect a curve to be displayed in 2D plot in VIEW from a script?  Many thanks.

 

Regards,

 

Kane

0 Kudos
Message 1 of 3
(978 Views)
Solution
Accepted by topic author Kane_Lok

Hello Kane,

 

in VIEW you can access a curve via the Curves2D collection. You can show and hide the curve using the Enable property. Use the name or index for your curve you want to hide.

 

View.ActiveSheet.Areas("Area : 1").DisplayObj.Curves2D.Item(1).Enable = False

 

Regards,

AnJalpaka

0 Kudos
Message 2 of 3
(944 Views)

Hi AnJalpaka,

 

Your suggestion works perfectly.  Thanks a lot.

 

Regards,

 

Kane

0 Kudos
Message 3 of 3
(926 Views)