One frustration that I often have with ArchestrA is wanting to do bulk updates to attributes on one or more objects. Things such as,

To use it, first select the objects you want to include in the search. You can either pick objects out of the derivation tree or search for them using the advanced search function (recommended). You can search by area, template, and object name. All object search options are regex pattern matched, so if you want to match a template remember to escape the $ character (i.e. \$).
Once you have found your objects, set the attribute name pattern (also regex aware). Then select the action you want to perform, the options are:
The find and replace value text fields are not regex aware (except in Find mode), although they do support the token '~%obj', which will be replaced with the object name.
Multiple operations can be done at once to save time on checkout and checkin operations, use the Add/Delete buttons to add or remove extra operations. The Load/Save buttons can load or save the parameters to a file. This is useful when reusing complex expressions.
If you only want to preview the operations that would be performed, check the whatif box. This will log all the operations that would occur if not for the box being checked. Note that the GRAccess SDK is not fast, so if you are performing operations on many objects, expect it to take some time (checkout time via GRAccess is about as slow as through the IDE).
Additional info:
The Wrangler can bulk update IO references via csv file. This is primarily designed to be used in conjunction with the aaIOChecker tool, which can automatically produce these files, but any valid csv file can be used. The csv file should contain at least the following columns,
The Attribute Wrangler can be downloaded from github.
May 13th, 2020 at 1:12 am
Hi raggles.wiki congratulations for the tools made. Is there a possibility to extract the alarms / area / priorities with this tool? Or do you have any idea how it can be done? There is a view in the galaxy database but without priority. Thanks.
May 14th, 2020 at 8:36 pm
Yes you can get anything that is available in the object viewer, including alarm and area configuration. (open image in new tab to see full size)
May 15th, 2020 at 1:07 am
Hello Raggles,
really very kind in answering me so quickly. My question is related to being able to export all the alarms and the priority, without having any idea what they are. Should I add all the instances and then do the search? In the end export the csv file? Thanks so much.Regards.
May 15th, 2020 at 6:27 am
I get the impression you are looking for the runtime alarms? If so you can't do that with this tool you want to be using the alarm toolkit, there are plenty of code samples around the web that can help you with that.
If you do want the configured alarms then yes you could add all the object instances and search for "\.Priority$". This tool can't export the log to csv but that functionality would be easy to add yourself.
May 15th, 2020 at 6:58 pm
Morning i looking for a toolkit which allows me to export all galaxy alarms with priorities. If you say there are toolkits on the net I will try to search.
Thanks.
Regards.
May 18th, 2020 at 11:52 pm
If you have any suggestions on where to look it would be appreciated.
Thanks.
Regards.
May 19th, 2020 at 8:55 pm
There used to be plenty of examples online but I can't find them either - I have a c# example at https://gist.github.com/Raggles/ff2c4e218f896044fdf9410f4c14c213 and you can basically translate that into quickscript to use in an object
May 20th, 2020 at 6:43 pm
Thanks.
Regards.
December 7th, 2020 at 12:10 pm
One frustration I often have with ArchestrA, is everything about ArchestrA, and it's very soul and essence.....
That said this looks like a great tool. Any Idea on what would be involved to support the Datatype MXInternationalizedString for Find-Replace operations?
December 7th, 2020 at 12:34 pm
haha I hear you - I don't really use it any more so I get to be frustrated with other software instead...
And because I don't often work with ArchestrA any more I haven't used this tool in ages and haven't tested on the latest version so mileage may vary. It probably isn't too hard to add support for the MXInternationalizedString type - would have to add a locale filter to the ui and the corresponding logic in GalaxyFunctions.cs but I'm guessing that would only take a couple of hours. I might find some time at the end of this week to set up a test environment for ArchestrA and take a look - but feel free to have a crack at it yourself
December 11th, 2020 at 2:38 pm
Thank you! - I did a quick hack to get it to do what I need, for now....You dont have a tool for petrol-bombing all Schneider/Aveva software do you?
I copied you MXString functions to be MXInternationalizedString, and then called .PutInternationalizedString(LCID, String).
My Windows Language (English GB) was different to the Archestra Default Language (English US). I dont know an easy qay to query the ArchestrA default language, so I had coded it.....
December 14th, 2020 at 9:10 am
I don't have anything to remove all the AVEVA software - usually I just spin up a new VM if I stuff something up (I have a generic windows server image and just clone it). I did try deleting all the relevant files and registry keys once though and that seemed to work ok.