Applies To:
  • CitectSCADA 6.xx, 7.xx
  • CitectHMI 6.xx, 7.xx

How do I add pens to the Process Analyst display or delete them programmatically?

This can be done by loading a view (PAV file) with predefined pens. For more information, see Q4165. Or, the attached Cicode functions PaAddPen() and PaDeletePen() can be used to add/delete individual pens from the current view.

Note: When pens are added to Process Analyst through the Add Pen dialog, they automatically use a cycling palette of 15 colors. However, pens added programmatically all display as a red line. It is necessary to set the desired color with the pens.LineColor method. The attached Cicode has been updated to automatically use the same palette of colors or to allow the color to be specified.