[Ansys 2025 R1]
First I have tried deactivating the section plane alone since it works via GUI. But it does not work via API. So I have recorded some commands regarding geometry but it still does not work.
Here is my code:
import toolbar
import time
my_figures = DataModel.GetObjectsByType(DataModelObjectCategory.Figure)
for my_figure in my_figures:
my_figure.Activate
# Confirm that figure is processed
print(my_figure.ObjectId)
# time.sleep(0.5) # Adding a delay did not help
Graphics.ViewOptions.ResultPreference.GeometryView = MechanicalEnums.Graphics.GeometryView.Exterior
toolbar.DoExteriorResultView(ExtAPI)
Graphics.SectionPlanes[0].Active = False