Hello,
I was wondering if there was any built in function or macro in ARIS that will automatically check to see if an object occures in multiple models, and if so, warn the modeller before they change the name of the object. This way, it'll prevent them from having to go through the properties and also help prevent accidental name changes.
I've dug around the macros and there is an event on "object name change (persistant)" but this only checks it after it's been saved. Similarly, on the object attributes change (vetoable), it checks prior to the name being changed.
What I am looking to do is have the following occur:
1) User clicks to do a name change
2) User changes name
3) User clicks out so name applies
4) Macro runs to validate if this object occures in multiple locations
a) if it does, then give pop up warning asking if they are sure they want to change it because it will impact other models. If they hit okay, it keeps change. If they hit cancel, it reverts back to origional name
b) If it doesn't, just change name
Thanks,
David
David Tse Author on
I wasn't able to get what I was looking since I don't believe there is any way to validate after an object's name is changed but before it is saved (only on the click or on save). I created the macro to check "on save" and I created a new attribute called "previousName" that stores the most recent name in case people decide not to revert the changes.
This is how to code works:
Here is a sample of the warning:
Here is the MACRO code (NOTE: Because previousName is a custom made attribute, you need to change the previousName GUID to what yours is)
You will probably need to run a script to auto update all your objects with the previousName attribute set to the current name. Here is a REPORT that will do it. Once again, you need to change the GUID of the previousName attribute!