Given DataPlot data index and get corresponding data point values.
BOOL GetDataPoint( int nIndex, double * pX, double * pY, double * pZ = NULL, double * pErr = NULL, DWORD dwCntrl = 0 )
FALSE if nIndex is < 0 or outside the Data Plot range, TRUE if nIndex is inside the Data
Plot range.
//Get the first datapoint value. void DataPlot_GetDataPoint_Ex1() { GraphLayer gl = Project.ActiveLayer(); if ( gl ) { DataPlot dp = gl.DataPlots(0); //get the first dataplot on graphlayer if ( dp ) { double dX, dY; dp.GetDataPoint(0, &dX, &dY); printf("The first point in active dataplot is (%lf, %lf):", dX, dY); } } }
origin.h