Archi Forum

Archi Plug-ins => jArchi => Topic started by: macknardy on November 07, 2019, 13:34:54 PM

Title: jArchi set flow-relationship in ArchiView
Post by: macknardy on November 07, 2019, 13:34:54 PM
Hi, everyone.

I'm using jArchi to build an Archi View. I have already all elements and positions.

Therefore, when I add an element like application-component I can set it in Archi View with the code below.


var element = {"concept": "application-component", "name":  "Name", "bounds": {x:18, width:439, y:12, height:337}};
var model = model.createElement(element.concept, element.name);
archimateView.add(model, element.bounds.x, element.bounds.y, element.bounds.width, element.bounds.height);


Is it possible to set the flow-relationship in Archi View with jArachi? Is there any way to catch the bounds from the line of flow-relationship?

Thank you.
Title: Re: jArchi set flow-relationship in ArchiView
Post by: Phil Beauvoir on November 10, 2019, 11:51:07 AM
You can add connections with relationships easily given that you have two concepts already. Take a look at the "Create Views and Visual Objects" example script that ships with jArchi.

> Is there any way to catch the bounds from the line of flow-relationship?

Not sure what you are trying to achieve with this?
Title: Re: jArchi set flow-relationship in ArchiView
Post by: macknardy on November 11, 2019, 14:15:50 PM
Hi Phil,

Thank you for your reply.

I would like to put flow relationship in Archi View as an image attached.

Thank you.