DataRange::GetPlots

Description

Get dataplot's uids as to access them, dataplots are generated by this datarange.

Syntax

int GetPlots( vector<uint> & vUID )

Parameters

vUID
[output] the dataplot's UIDs

Return

return the size of vUID if success, otherwise return 0.

Examples

EX1

//Get the selected data plot's UID.
void DataRange_GetPlots_Ex1()
{
   Tree trXYSelection;
   DWORD dwRules = DRR_GET_DEPENDENT | DRR_NO_FACTORS;
   init_input_data_branch_from_selection(trXYSelection, dwRules);
   //    out_tree(trXYSelection);

   DataRange dr;
   dr.Create(trXYSelection, false);

   vector<uint> vUID;
   dr.GetPlots(vUID);
}

Remark

See Also

header to Include

origin.h