Support Board
Date/Time: Wed, 27 Nov 2024 00:35:23 +0000
Post From: Subgraph is not updating after a custom menu event
[2023-10-13 19:12:24] |
Mark Lewis - Posts: 25 |
Ahhh, calling sc.RecalculateChart() after the drawing values are retrieved solves the issue. Relevant code below. s_UseTool ChartDrawing; if (sc.MenuEventID != 0 && sc.MenuEventID == r_MenuID) { int selectedLineNumber = sc.GetLineNumberOfSelectedUserDrawnDrawing(); sc.GetUserDrawnDrawingByLineNumber(0, selectedLineNumber, ChartDrawing); BalanceHigh.SetFloat(ChartDrawing.BeginValue); BalanceLow.SetFloat(ChartDrawing.EndValue); sc.RecalculateChart(0); } float BalanceHighVal = BalanceHigh.GetFloat(); float BalanceLowVal = BalanceLow.GetFloat(); Subgraph_BalanceZoneTop[sc.Index] = BalanceHighVal; Subgraph_BalanceZoneBottom[sc.Index] = BalanceLowVal; |