FindLinkObjects
Finds UIDs of all objects that are linked to the worksheet
int FindLinkObjects( vector<uint> & uids )
the number of linked object found, 0 if none.
EX1
//Need to have a graph adding some tables. //Output linked Table object in the specified graph. void Datasheet_FindLinkObjects_Ex1(string strGraph) { GraphLayer gl(strGraph); if(!gl) return; vector<uint> vUid; Worksheet wks; foreach(GraphObject go in gl.GraphObjects) { if(go.GetLinkTable(wks)) { int nLinks = wks.FindLinkObjects(vUid); int nVecSize = vUid.GetSize(); printf(" Found Table %s with wks %s that is linked to %d objects\n", go.GetName(), wks.GetName(), nLinks); } } }
origin.h