Were you the person that stopped by the PI ProcessBook booth at the UC asking this question? If so, I thought your question had referred to how to accomplish this with VBA (If it wasn't you, that's a weird coincidence). I'll show you the normal approach from the BatchGroup configuration menu here:
The simplest answer to this question is that you click the anchor symbol next to the batch in the results table, and then that batch changes to the color reserved for the anchored batches.
An alternative approach is to manually change the color settings for the Batch Group.
If you add your batch group (or double click on it in build mode), then go to the third tab in the definition screen, you'll see the settings menu. Here, you can change the colors of all the traces. All the trends will share the same batch contexts as each other, so it's important that all the trends have the color legends (ie, batch 1 is the same color on all trends). With this in mind, you can select from a few different options for color schemes, and they will be applied to all trends in the batch group automatically.
The default is "Categorized". You select one color for all anchored batches, one for the recently completed batch, one for the rest of the completed batches, and one for the currently running batches. You would select one of them in the "Batch" menu, and then select the color from the drop down to change it.
The other two styles give you the freedom to change the color of each batch individually, which might be more what you're looking for. The difference between "Anchored Classic" and "Classic" is that Anchored classic has a specific color dedicated to all anchored batches. To change any of these specific color settings, you would again select the batch from the "Batch" list and then select a different color from the drop down.
Let me know if this was sufficient for what you're looking to do, or if you were in fact interested in a VBA solution for this.
Retrieving data ...