Legend text disappears when using "CurrentGraphicsDisplay = False"

jwkim
jwkim Member Posts: 7
Name Dropper First Comment First Anniversary
**
edited July 10 in Structures

Hi Team

After modifying some graphics settings to capture the screen, I used the ExportImage code and the legend text disappeared as shown in the image below. I looked for the cause and found that the text in the legend disappears when 'setting2d.CurrentGraphicsDisplay' is set to False in the code below.
Is there any solution?

solu=DataModel.GetObjectsByName("Solution")[0] 'DataModel.Project.SpecifyMetricTemperatureInKelvin()' 'temp=solu.Children[2]' 'temp.Activate()' 'setting2d=Ansys.Mechanical.Graphics.GraphicsImageExportSettings(Width=471, Height=431)' 'cam = Graphics.Camera' 'cam.SetSpecificViewOrientation(ViewOrientationType.Front)' 'cam.SetFit()' 'setting2d.Resolution.HighResolution' 'setting2d.CurrentGraphicsDisplay = False' 'Graphics.ExportImage("D:/Temp.png", 'GraphicsImageExportFormat.PNG, setting2d)' 'DataModel.Project.SpecifyMetricTemperatureInCelsius()