Hi,
Suppose you have color index in column Comments, you can run the following code to color data plots in active layer to use the increment list in column comments:
// Suppose worksheet name is Book1, sheet name is Sheet1
layer -c; // Count how many data plots in active layer
//and put value in Count variable
for (nn = 1; nn <= count; nn++)
{
layer.plot = nn; // Active nnth data plot
set %c -c %([Book1]Sheet1!wcol($(nn))[C]$);
}
Try and see whether this is what you want.
Regards!
Sean
OriginLab Tech. Service