Changing Element Type

Started by sianvanes, August 18, 2020, 16:26:43 PM

Previous topic - Next topic

sianvanes

Can anyone help me? I've been asked to change element types as I constructed architecture building blocks using Application Components while I on reflection at a high level of abstraction these should be Application Functions.

So I did an export into csv, copied the correct type "ApplicationFunction" from one I created earlier and changed the ApplicationComponent elements. Tried to reimport into the Model and received an error "Error Importing: Found concept with same id but different class: EAID_277A549A_CD87_4955_93D3_96A659FC751A

I can export into Open Exchange File, import into Sparx EA, export elements to csv from the containing folder, make changes, reimport to Sparx then via Open Exchange I export from Sparx, import into Archi and bingo! done! However, this is a bit of a faff.

Is there another way?

best regards
Sian
Sian van Es | CGI | Enterprise Architect | [#149]
M: +44 7827902770  |  s.van.es@cgi.com | www.cgi.com | www.cgi-group.co.uk

Eric Vendeville

#1
Hello, "why make things simple when we can make them complicated?" ?  :D

Maybe you should have a look and try this Archi script, shared by JB :
https://gist.github.com/jbsarrodie/45a312cff559d23cf55ed102422e8af7

It will make your life much easier !  ;D

PS: installation and usage of the script are explained at the end of the page, in the comments ;)

Phil Beauvoir

Hi Sian,

at the moment this is not implemented natively and the only way to do this is with a jArchi script.

An example of this is found here - https://gist.github.com/smileham/a989e42e8db2d811f5f1427147b39e2e

Basically you would need to install jArchi, create a new script, copy and paste the the script above, save it and then select the objects and run the script.

See this issue - https://github.com/archimatetool/archi/issues/663 - it also applies to changing element type.
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.