Script for "Temperature at Flow Front" for Weld Line Plot

Script for "Temperature at Flow Front" for Weld Line Plot

RK1097
Enthusiast Enthusiast
515 Views
1 Reply
Message 1 of 2

Script for "Temperature at Flow Front" for Weld Line Plot

RK1097
Enthusiast
Enthusiast

How to define "Highlight/Color Dataset" to pick the "Temperature at Flow Front" dataset in the plot properties using API? I'm guessing there's a "Plot.Set___" function I can use here but looking through the Synergy API, there's no examples showing anything similar.

 

Weld-Lines-Properties.jpg

0 Likes
516 Views
1 Reply
Reply (1)
Message 2 of 2

RK1097
Enthusiast
Enthusiast

After further investigation, I've found more info to edit the "highlight dataset" (see code below) but it does not work and I'm unsure what's the reason for it.

GetPlot(72) is supposed to fetch the "Temperature at Flow Front" results but the script seems to completely ignore the function. 

Set PlotManager = Synergy.PlotManager()
Set Plot = PlotManager.FindPlotByName2("Weld lines", "Weld lines")
Set Viewer = Synergy.Viewer()
Viewer.ShowPlot Plot
Set Viewer = Synergy.Viewer()
Set Plot = Viewer.GetPlot(72)
Plot.Regenerate 

 

0 Likes