Hello everyone,
I want to modify a chart using Mechanical Scripting, and I managed to get the settings I wanted with this function:
def postprocessing():
charts = ExtAPI.DataModel.GetObjectsByName("Chart")
chart = charts[0] # Assuming there's only one chart
chart.VisibleProperties[1].InternalValue = 5
chart.VisibleProperties[5].InternalValue = 'Deflection'
chart.VisibleProperties[6].InternalValue = 'Force'
chart.VisibleProperties[9].InternalValue = 'Omit'
chart.VisibleProperties[10].InternalValue = 'Omit'
chart.VisibleProperties[11].InternalValue = 'Display'
chart.VisibleProperties[12].InternalValue = 'Omit'
postprocessing()

While this script works, I'm looking for a way to modify the chart properties more clearly without having to rely on Visible Properties
. I think it'd be easier for someone else to follow the script if it didn't rely so much on indexing.
Any ideas?
Thank you!
Olia