Hi couturier,
There are a few of functions may help:
https://www.originlab.com/doc/OriginC/ref/OriginObject-GetIncomingOperation
https://www.originlab.com/doc/OriginC/ref/OriginObject-FindIncomingOperations
https://www.originlab.com/doc/OriginC/ref/DataObject-IsFormulaAutoUpdate
I also thought of a tricky method:
void IsLocked()
{
Worksheet wks = Project.ActiveLayer();
Column col(wks, 1);
if(!col)
return;
vector& vec = col.GetDataObject();
double dCur = vec[0];
double dNew = -999;
try{
vec[0] = dNew;
}
catch(int nErr)
{
out_str("Locked");
return;
}
vec[0] = dCur;
return;
}
Hope it can be some help.
Regards,
Yuki
OriginLab