archi-scripting-plugin icon indicating copy to clipboard operation
archi-scripting-plugin copied to clipboard

Allow Jarchi scripts to trigger menu actions

Open rfamans opened this issue 6 years ago • 6 comments

It would be great to have a possibility to start Archi UI menu actions via a Jarchi script without having indepth knowledge of the underlying Archi java software architecture. Maybe it is possible to extend the current Jarchi DOM with Archi UI menu functions.

rfamans avatar Oct 29 '18 18:10 rfamans

Can you provide more details regarding which menu actions and what the use case is? We also have to be careful not to go too far with the jArchi API, otherwise there is a danger of duplicating much of the underlying Java code with JS wrapper code.

Phillipus avatar Oct 29 '18 18:10 Phillipus

I am particularly interested in triggering the Collaboration menu actions (refresh model, commit changes and publish changes).

rfamans avatar Oct 29 '18 18:10 rfamans

I am particularly interested in triggering the Collaboration menu actions (refresh model, commit changes and publish changes).

That's interesting because I thought about it some time ago. I think the best solution would be that plugins "expose" some actions/api to jArchi, instead of the opposite. This could be similar to what have been done with Archi run from commande line.

Caveat: I don't know how to do it.

jbsarrodie avatar Oct 29 '18 20:10 jbsarrodie

I would have a publication use case for this feature. I have a model with 19 views. I commonly publish the models to pdf for distribution. I use the File/Export/View as Image function to produce the PDFs. Executing this 19 times for each publication cycle takes a bit of time that I'd like to automate.

I'm told that jarchi can already programmatically manipulate and save views as PNGs. But I am left with the manual task of printing to PDF - so no real time savings or accuracy improvements there.

Just a thought for you. Thanks

timhale7 avatar Jan 31 '19 21:01 timhale7

But I am left with the manual task of printing to PDF

Please open a new feature request - export views to more than PNG format in jArchi,

Phillipus avatar Jan 31 '19 21:01 Phillipus

I would like to be able to trigger the Magic Connector, this way maybe I could create a keyboard shortcut for this.

eduardobbs avatar Nov 12 '19 17:11 eduardobbs