Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: stevesavage on June 02, 2017, 11:48:35 pm

Title: update image assets using the API
Post by: stevesavage on June 02, 2017, 11:48:35 pm
I've started making heavy use of the new Image Asset element to bring in mock-ups created by our development team so I can link them to BPMN activities.
E.g. while doing the activity the actor is interacting with the IT solution using the interface.

Because they are NOT using Sparx EA for the mockups (using Balsamiq), I'd like to:


Does the API have a feature for this, or one planned for this?
I was hoping for something similar to the Element.LoadLinkedDocument(string Filename) function.
E.g. LoadLinkedImage(string Filename)

Steve.
Title: Re: update image assets using the API
Post by: qwerty on June 03, 2017, 01:43:49 am
You could directly update the table t_image. Just replace t_image.image with the binary data of the image and reload your diagrams. I haven't tested this, so try in a sandbox first.

q.