Cannot Change Marker Limit using .NET API and ViewX Automation
I am working with ViewX automation to program the creation and update of thousands of trend objects. Templates won't work here, the customer has many different internal opinions about which trends look good.
I can seem to edit almost all the properties but I cannot seem to edit the Marker limit or other marker properties.
private void AddTrace(dynamic traces, string relativePath, string label,
TraceDataMode mode, TraceColors color, string yaxis, DrwDashStyle style = DrwDashStyle.DashSolid)
// added for CS 2017 R2 August
dynamic newTrace = traces.Add(mode, _systemName, relativePath);
newTrace.Label = label;
newTrace.TraceStyle = TraceStyle.TraceLine;
newTrace.Interval = "5M";
newTrace.LineColour = (int)color;
newTrace.LineStyle = style;
newTrace.LineWidth = 1.0;
newTrace.MarkerLimit = "0"; // This line and the next two fail
newTrace.MarkerSize = 2; // What is the correct field name?
newTrace.MarkerStyle = MarkerStyle.Diamond; // Fails too (this enums to zero)
newTrace.ShowMarkers = 0;
newTrace.ShowAnnotations = 0;
newTrace.ShowAlarmLimits = 0;
newTrace.YAxis = yaxis;