Set ReleasedProperty via c# doesn't update in the runtime after compilation

Set ReleasedProperty via c# doesn't update in the runtime after compilation

Hello everyone,

I have created a C# Addin Wizard for the Engineering Studio to create a SmartObject via a json configuration file. The addin first creates the smart object and then updates all the released properties of each symbol to have updated symbols for drag and drop. Everything seems to work in the editor, the alarm zone, the group, the variables and the texts are modified according to the configuration file. However, after compiling the project and taking the runtime, the properties are not updated correctly. Therefore, I have to go to each property field released in the engineering studio and press Enter to save the change which then works.

Is this normal behavior or a known bug in the com library / translation layer? Here is a sample of the code I have made: 

internal void SetReleasedProperty<TValue>(string name, TValue value)
        {
            ISoReleasedProperty property = GetReleasedProperty(name);
            if (property != null)
            {
                property.SetValue(value);
                Debug.WriteLine($"--->Set:{property.Name}={property.Value}");
            }
            else
            {
                Debug.WriteLine($"ReleasedProperty: {name} doesn't exist");
            }
        }

protected ISoReleasedProperty GetReleasedProperty(string name)
        {
            return SmartObject.ReleasedPropertyCollection.Where(x => x.Name == name).FirstOrDefault();
        }