Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: ramhog69 on October 30, 2008, 07:58:00 am

Title: Bookmark through API interface
Post by: ramhog69 on October 30, 2008, 07:58:00 am
Is there a way to Bookmark a package through the API automation interface.  I can bookmark an item through the UI.  In the API I haven't seen anything that even remotely looks like it will bookmark an item.

Thank you.
Kalvin
Title: Re: Bookmark through API interface
Post by: jkorman on November 01, 2008, 12:54:46 am
Appears that the bookmark is stored in the t_object table "tagged" attribute. Can't find anything in the api that manipulates this value. A value of 0 is no bookmark, 1 is bookmarked. You should be able to use the repository SQLQuery to get/set the value.

Jim
Title: Re: Bookmark through API interface
Post by: RealAlex on November 19, 2008, 09:07:36 pm
When using repository SQLQuery you can only use SELECT. No update or delete will have effect, so you will need to see if you can change the tagged value of the package or the element associated to the package.

Otherwise you could simply open a direct database connection and use your own queries...