How to ensure that contour displays are displayed correctly in figures acc. to assigned legend style

Matthias
Matthias Member Posts: 35
10 Comments Name Dropper First Anniversary
**

Ansys Version 2024 R2.02

This question is related to
https://discuss.ansys.com/discussion/4700/how-to-assign-a-legend-style-to-an-object-by-referencing-the-guid-in-ansys-2025r1

The procedure mentioned in the thread above works fine for figures displaying the results of the initial analysis.
But I am facing the problem that the contours displayed in the figure objects are not updated according to the legend style that had been applied after recalculation of the system. Although both, result and figure object, had been applied the same legend style by scripting, only the result objects display the correct contours . Rerunning the Python/JS command for assigning legend styles does not seem to enforce that the contours are drawn correctly for figures.

Result object displaying correct contours

Figure object (child) displaying wrong contours.

RMB on legend\Named legends shows a checkmark at the same legend style for both types of objects. But the legend contours in the figures are only updated if the style is manually assigned again by using the GUI.

How can I enforce an update for the figure plots using scripting?

Answers