[IGN-15470]Is it possible to reset a tag property to default in scripting?

It’s still showing overridden when you set it to 2 because it’s still a value that exists in the instance of it. You need to remove the value prop altogether from the UDT instance json. In this case, it’s a lot more difficult a task programmatically, since you need to get the local json definition and not the full definition. The local definition being exactly what you would get from right clicking on the UDT instance and copying the JSON. This is the exact reason I requested the getLocalConfiguration in Paul’s extensions module

Do you actually want to do this programmatically, or are you just trying to get it done using any way?

To do it manually, you can right click on the UDT instance, copy json. Paste into notepad, find your tag and remove the value prop. Save the file as a json file, and then reimport it back into the designer using overwrite

1 Like