Page 1 of 1

Is there a way to batch-update tag names for controls?

Posted: Tue Jun 04, 2019 12:35 am
by stm-tjt
Hi,

The tags in our iX projects are prefixed with the PLC name, e.g. "S1". We recycle a lot of our iX programs, but often the tags will have to be renamed or re-imported.

Is it possible to batch-replace e.g. "S1_" with "S2_" in the tag names used in panel controls, like numerical fields, buttons etc., instead of doing so manually?
Tag and alarm lists can easily be updated in Excel with search and replace, but there is a lot of manual work in updating the tag of every control object.

Re: Is there a way to batch-update tag names for controls?

Posted: Tue Jun 04, 2019 12:33 pm
by Russ C.
If you're just updating a tag name from Tags.S1_<tagname> to Tags.S2_<tagname> on each screen, you can do a search and replace in the XAML page on each screen.

Its not as ideal as an import, but it a bit easier than clicking each object on each screen. (See below for the example of an XAML page)
xaml_tags.png
xaml_tags.png (188.52 KiB) Viewed 5188 times

Re: Is there a way to batch-update tag names for controls?

Posted: Thu Sep 05, 2019 5:52 am
by stm-tjt
Russ C. wrote:If you're just updating a tag name from Tags.S1_<tagname> to Tags.S2_<tagname> on each screen, you can do a search and replace in the XAML page on each screen.

Its not as ideal as an import, but it a bit easier than clicking each object on each screen. (See below for the example of an XAML page)
xaml_tags.png
Thank you Russ, that is very helpful.

Needless to say, I am now long past that particular task, but I will keep it in mind for next time.