Author Topic: Creation of new elements and relationships  (Read 174 times)

Andreāngelo

  • Newbie
  • *
  • Posts: 3
Creation of new elements and relationships
« on: December 26, 2018, 03:24:37 AM »
Hi, I'm participating in a research project and I'm learning to work with Archi. In this project I need to create new elements and new relationships.
I followed an older tutorial and did not succeed, as it is very likely that the tutorial was done for old versions of eclipse and the archimate language.
Could someone point me reference material to create new elements and new relationships?

Phil Beauvoir

  • Archi Master
  • Hero Member
  • *****
  • Posts: 938
    • Archi
Re: Creation of new elements and relationships
« Reply #1 on: December 26, 2018, 10:10:17 AM »
I assume you mean new concepts that are not part of ArchiMate with associated model concepts, icons, behaviour rules, graphics and palette entries. There was indeed an older guide showing how to do this for an older version of Archi. Since then the code has changed considerably and there is no longer a guide to show how to do this.

There are many places in the code that would require changing - the ecore model, the icons, palette, helper code, figures, and so on. You could take an example concept in code, for example, IBusinessActor.java, search on that and look at where it is referenced and try to follow that pattern.
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate

Andreāngelo

  • Newbie
  • *
  • Posts: 3
Re: Creation of new elements and relationships
« Reply #2 on: December 27, 2018, 19:13:28 PM »
Thanks Phil.

Andreāngelo

  • Newbie
  • *
  • Posts: 3
Re: Creation of new elements and relationships
« Reply #3 on: January 10, 2019, 14:50:50 PM »
Hey Phil,
I was able to create a new concept based on the Driver concept.

My question now is ...
There are two images related to the same concept, one that is inside the "box" when we created it and another for the icon in the Palette, they are the same but the image of the icon is a png file.

Then comes the question:
Does Archi transform the image that is in the "box" into a png file or do I have to create that png externally and put it in the correct folder to be used?

Phil Beauvoir

  • Archi Master
  • Hero Member
  • *****
  • Posts: 938
    • Archi
Re: Creation of new elements and relationships
« Reply #4 on: January 10, 2019, 14:52:41 PM »
The PNG file needs to be created separately. The icon iin the "box" is drawn in code. This is so that it scales when zooming in and exporting to SVG.
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate