Origin Ver. and Service Release (Select Help-->About Origin):2020
Operating System:win10
I have a graph embedded into a cell, and I want to access this graph to add a plot
Right now, I'm doing something like this:
Worksheet wks = Project.ActiveLayer();
string strCell;
wks.GetCell(nrow, ncol, strCell);
strCell = strCell.GetToken(1,':'); // graph name
GraphLayer gl(strCell, nlay);
But sometimes, I get an invalid GraphLayer
In code builder, strCell will return Graph3 while embedded graph is Graph17 and I can't understand what's going wrong
Is there any better method for accessing an embedded graph ?