find all the graphing layers where the named dataset is used to construct a plot
int GetDatasetPlotList( LPCSTR lpcszDatasetName, vector<string> & vsGraphNames = NULL, vector<int> & vnLayers = NULL, vector<int> & vnPlotDesignations = NULL, BOOL bExcluldeModifiers = false )
number of graph layers this dataset is used
EX1
//Output the specified Dataset's GraphName, Layer, and designation. //You can Call this function using synax: "Project_GetDatasetPlotList_ex1("Book2_b")" void Project_GetDatasetPlotList_ex1(string str) { vector<string> vsGraphNames; vector<int> vnLayers; vector<int> vnPlotDesignations; int nn= Project.GetDatasetPlotList(str, vsGraphNames, vnLayers, vnPlotDesignations); if(nn < 0) { printf("%s not a valid dataset\n", str); return; } if(nn == 0) { printf("%s not in any plot\n", str); return; } for(int ii = 0; ii < nn; ii++) { char szTemp[NAME_SIZE]; if(!get_plot_designation_str(vnPlotDesignations[ii], szTemp, NAME_SIZE)) lstrcpy(szTemp, "Unknown"); printf("%s : layer = %d, designation=%s\n", vsGraphNames[ii], vnLayers[ii], szTemp); } }
Project::GetDatasetInfo, Project::GetDatasetMasks
origin.h