Book a Demo

Author Topic: Get/set bookmark (sql, API, or else)  (Read 5183 times)

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Get/set bookmark (sql, API, or else)
« on: December 28, 2015, 06:48:32 pm »
Hello,

is there a way to get or the list of bookmarks via script/Addin or SQL.

Thanks in advance,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13519
  • Karma: +573/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Get/set bookmark (sql, API, or else)
« Reply #1 on: December 28, 2015, 07:16:59 pm »
I'm not sure if you can access it from the API, but in the database it's t_object.Tagged (0 or 1) that controls this.

Geert

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Get/set bookmark (sql, API, or else)
« Reply #2 on: December 28, 2015, 08:07:17 pm »
Thanks Geert,

I haven't expected it there because it should be user specific (my opinion).

With that information it's possible to run Scripts and Addins on selected items of the Model Search:
  • Delete all Bookmarks by script
  • Run search and select the wanted items
  • Script / Addin to do something (has to use SQL)

Ok, Clipboard what also do. I think Clipboard is easier and has fewer side effects.

If I have some time I'll do this and send it to you for your script library (get all ea_guid/classtype of selected items from Clipboard). In my opinion a nice feature to run scripts on selected elements of the Search .


Thanks and regards,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13519
  • Karma: +573/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Get/set bookmark (sql, API, or else)
« Reply #3 on: December 28, 2015, 08:35:48 pm »
Cool, looking forward to your scripts

Geert