Book a Demo

Author Topic: Deleting Tagged Value Types  (Read 3916 times)

Martin Průša CCA

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Deleting Tagged Value Types
« on: July 02, 2013, 06:18:29 pm »
Hi Sparx,
we use Tagged Value Types (TVT), which we create for MDG Technology, then export and import them to some EA Project. But when we want to delete some TVT from EA Project, we just delete it one by one. Is there some possibility to delete them all? Some clear function? Or some function, which replace all TVTs by new TVTs from import.

Thanks
Martin
« Last Edit: July 02, 2013, 06:20:33 pm by PRU.CCA »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Deleting Tagged Value Types
« Reply #1 on: July 02, 2013, 09:56:22 pm »
You might write a script that performs something like
Code: [Select]
Repository.Execute ("DELETE FROM t_objectproperties WHERE Property = "your property");
q.

Martin Průša CCA

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Deleting Tagged Value Types
« Reply #2 on: July 04, 2013, 05:12:39 pm »
Hi and thanks for your tip. It is not in t_objectproperties but in t_propertytypes, but you sent me to right way.

Here is code, which delete all Tagged Value Types:

Code: [Select]
option explicit
!INC Local Scripts.EAConstants-VBScript
sub main

      Repository.Execute ("DELETE FROM t_propertytypes")

end sub
main
« Last Edit: July 04, 2013, 05:14:10 pm by PRU.CCA »