Book a Demo

Author Topic: Is it posible to Rename a Tag-value  (Read 4860 times)

steen.jensen

  • EA User
  • **
  • Posts: 181
  • Karma: +8/-1
    • View Profile
Is it posible to Rename a Tag-value
« on: March 14, 2019, 08:38:52 am »
We have a bunch off Tagged-Value defined, but I cant Change the name by the menu (uml types etc)
The Name is changed, but all object with the old Tagged-Value is not changed, aka as there is not a referens beetwen Object tagged-value and definition i Uml-types. Just Name match.

Any one tested to rename a Tagged Value with scripting??
Is there a Renaming function or is it just to Read Tagged-Value data and then Write the new Tagged-valus with the old data?

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Is it posible to Rename a Tag-value
« Reply #1 on: March 14, 2019, 10:54:52 am »
Hi Steen,

Correct. It's not possible to rename a tagged value thru the GUI, but it looks like it's possible via automation / scripting. Just get a reference to the TaggedValue object that you want to modify, change it's Name attribute, then call Update().

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1353
  • Karma: +121/-10
  • Its the results that count
    • View Profile
Re: Is it posible to Rename a Tag-value
« Reply #2 on: March 14, 2019, 09:15:58 pm »
I once did this via MS Access on an EAP file. Did a search and replace on t_objectproperties table if I recall correctly.
Happy to help
:)