Author Topic: Save model as Template from jArchi  (Read 273 times)

Maaku2000

  • Newbie
  • *
  • Posts: 2
Save model as Template from jArchi
« on: June 01, 2021, 18:24:55 PM »
I'd like to automate saving a model as a template so that I could keep a template up to date with changes from a reference list of apps.

I haven't been able to find how to programmatically save a model file as a template.  Is that possible with jArchi or some other CLI command?

Thanks!

Mark

Phil Beauvoir

  • Administrator
  • Hero Member
  • *****
  • Posts: 1639
  • Code Punk
    • Archi
Re: Save model as Template from jArchi
« Reply #1 on: June 01, 2021, 18:30:46 PM »
Hi Mark,

there's no way to do this either with the CLI or with jArchi, I'm afraid. The code would have to be greatly refactored to support this, so won't be implemented right now.

Phil
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate

Maaku2000

  • Newbie
  • *
  • Posts: 2
Re: Save model as Template from jArchi
« Reply #2 on: June 01, 2021, 22:00:13 PM »
Well, that's disappointing. :-X

Thanks for the prompt reply, though.

Mark

Jean-Baptiste Sarrodie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • Archi Evangelist and Contributor. Visionary.
    • About me...
Re: Save model as Template from jArchi
« Reply #3 on: June 02, 2021, 08:02:56 AM »
Hi,

Depending on your exact need, you might also decide not to use templates but instead have a model that you import in empty models. That's one more step but this might have the advantage (depending on your use-case) to make it possible to later merge all models and have your reference list of app to be unique and not duplicated (creating a model from a template change ids of each concepts while importing a model keeps ids intact).

Another option is to create the template yourself in jArchi. If you create one an look at it, you'll see that its a zip file containing the model, (optional) thumbnails, and a manifest file.

Regards,

JB
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate