Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: shimon on November 28, 2024, 12:09:31 am

Title: Delete tagged values, en-masse
Post by: shimon on November 28, 2024, 12:09:31 am
Hi,
Using existing Excel export and import profiles, I dirtied my model with tagged values that weren't appropriate or necessary.

For example, we had tagged values for Compliance on requirements, and during the re-import process, these were added to the Packages, too. We also had tagged values added erroneously to elements by some MDG classifications.

I had our programmer write a VB script to delete tagged values, based on Tag value name and value. If anybody has a need for this, I'll try to post it here.
Sincerely,
Shimon

Title: Re: Delete tagged values, en-masse
Post by: ea0522 on November 28, 2024, 05:42:03 pm
Hai Shimon,
Nice solution.
Just wondering, how do you determine which Tagged Values to remove?
Is it hardcoded in the script or do you have some other mechanism?
Title: Re: Delete tagged values, en-masse
Post by: shimon on November 28, 2024, 09:17:23 pm
Hi,
It is hardcoded in the script, but I put the code that defines the Tag names and Tag values in the first few lines of the script, so whoever uses it can edit it to their use.
Sincerely,
Shimon
Title: Re: Delete tagged values, en-masse
Post by: ea0522 on November 29, 2024, 01:33:32 am
Thanks for the quick reply!