Example of how to use a python code object with the On Object Changed callback to trigger the auto-evaluation of results of other contours.
When you change the value of the time or results set in a specified object, the contours will auto update instead of needing to RMB>Evaluate Results.
Mechanical Standalone project (.mechdb) attached as .zip.

Python Code Script:
DebugMode = False #use this to toggle on/off messages written to the ACT log
TargetProprtyNames = set(['DisplayTime', 'SetNumber'])
def WriteMsg(Msg):
"""Write a message to the ACT log and check for degub mode"""
if DebugMode:
ExtAPI.Log.WriteMessage(str(Msg))
def after_object_changed(this, object_changed, property_name):# Do not edit this line
"""
Called after an object is changed.
Keyword Arguments :
this -- the datamodel object instance of the python code object you are currently editing in the tree
object_changed -- The object that was changed
property_name -- The property that was changed
"""
global DebugMode
Solution = this.Parent
GroupName = "Object Target(s)"
TargetObj = this.GetCustomPropertyByPath(GroupName+"/Object Selection").Value
AllObjs = bool(this.GetCustomPropertyByPath(GroupName+"/All Objects").Value)
DebugMode = bool(this.GetCustomPropertyByPath("Developer"+"/Debug Mode").Value)
SuppressAction = bool(this.GetCustomPropertyByPath("Developer"+"/Suppress Action").Value)
WriteMsg("Suppress Actions: " + str(SuppressAction))
WriteMsg("All Objects: " + str(AllObjs))
if SuppressAction:
return
WriteMsg(AllObjs)
if AllObjs:
#Object triggers if it is also under the same solution object
Ids = set([Obj.ObjectId for Obj in Solution.Children])
IsTriggerObj = (object_changed.ObjectId in Ids)
else:
IsTriggerObj = (TargetObj==object_changed)
WriteMsg(object_changed.Name)
WriteMsg("Trigger: "+str(IsTriggerObj))
if IsTriggerObj:
WriteMsg("Right Object")
if property_name in TargetProprtyNames:
if Solution.Status==SolutionStatusType.PostProcessingRequired:
object_changed.Parent.EvaluateAllResults()
else:
WriteMsg(property_name)
else:
WriteMsg("Wrong Object")