I'm not opposed to the change, but doesn't this break the Results object? You cannot just rename a property like that because you won't be able to load the "StressValues" property from older files. Is that not a problem?
Yes, old result objects get broken.
Code: Select all
def onDocumentRestored(self, obj): if hasattr(obj, "StressValues") == True: obj.addProperty( "App::PropertyFloatList", "vonMises", "NodeData", "", True ) obj.vonMises = obj.StressValues obj.removeProperty("StressValues")
I think in FEM it's not very critical to break the result object because if the problem is well defined, the user can just re-run the solver to obtain the results again. Still, it's just a small thing to consider.