DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Programatically set flags in a DIAdem View

Is there a command to set flags for a 2D axis system in a view? I would like to automate the process of setting flags for a curve, copying the points, and creating a report with a graph of the copied data and a table of that data. I can do the report I just need to be able to set the flags prgramatically once the users sets the band cursors where he/she wants.

Thanks,

AJL
0 Kudos
Message 1 of 3
(3,573 Views)
Hi AJL,

Currently it is not possible to set VIEW flags via script. But, if your customer has selected the band width you know all necessary parameters.

View.ActiveSheet.Cursor.X1
View.ActiveSheet.Cursor.X2

With pno you can determine the row in a data channel with contents closest to a given value. Example:

iRowStart = pno(NameOfXChannel, View.ActiveSheet.Cursor.X1)
iRowStop = pno(NameOfXChannel, View.ActiveSheet.Cursor.X2)

Then you can use DataBlCopy to copy the selected area.

Greetings

Walter
0 Kudos
Message 2 of 3
(3,570 Views)
Thanks, that does just what I need.
0 Kudos
Message 3 of 3
(3,567 Views)