Hi, I am having trouble using the SetPropertyValue() method via python scripting, the code executes correctly and I am able to see the changes via the output terminal, but the value is not being updated in the object in the GUI and the property table, has anyone faced this problem too? Thanks in advance, here is part of my code.
Hi, I am having trouble using the SetPropertyValue() method via python scripting, the code executes correctly and I am able to see the changes via the output terminal, but the value is not being updated in the object in the GUI and the property table, has anyone faced this problem too? Thanks in advance, here is part of my code.
oil_object = flowsheet.GetObject("Oil")
oil_object = oil_object.GetAsObject()
properties = oil_object.SetPropertyValue("PROP_MS_0",200)
print(properties)
time.sleep(1)
oil_object.Solve()
temperature = oil_object.GetPropertyValue("PROP_MS_0")
print(temperature)