Archi Forum

Archi Plug-ins => jArchi => Topic started by: Iver on November 28, 2020, 07:29:09 AM

Title: Executing Archi Scripts that Work with Multiple Models from a Central Folder
Post by: Iver on November 28, 2020, 07:29:09 AM
Hi,

I am wondering if it is possible to execute jArchi scripts within the Archi interactive UI from a central folder that is, for example, adjacent to the folder that holds the .archimate file of the current model.  I would like to develop and use scripts that work with multiple models, but I find that it is only possible to create or reference folders that are in the same location as the .archimate file of the current model.  In fact, when I open and make current a second model after using scripts with the first model (without closing the first model), I find that the scripts panel still points to the directory of the first model. 

What I really want is to store all my scripts in one folder hierarchy, so it is easy to version them in Github and apply then to multiple models in different directories. 

Does anyone know how to do this?

Thanks,

Iver
Title: Re: Executing Archi Scripts that Work with Multiple Models from a Central Folder
Post by: Jean-Baptiste Sarrodie on November 28, 2020, 07:40:39 AM
Hi,

In fact it already works like that: the script folder is unique and has no link with the model being edited. Any script can be launched on any model.

Regards,

JB
Title: Re: Executing Archi Scripts that Work with Multiple Models from a Central Folder
Post by: Iver on November 28, 2020, 21:38:19 PM
JB,

Thanks for your quick and useful reply.  What I was really looking for is the ability to change the Scripts folder path, which I now remember that I can do via Edit-->Preferences-->Scripting.

Regards,

Iver