Recent posts

#91
jArchi / Re: jArchi 1.6
Last post by Phil Beauvoir - February 20, 2024, 16:31:49 PM
Thanks JB, I added your comments to the wiki.
#92
jArchi / Re: jArchi 1.6
Last post by Jean-Baptiste Sarrodie - February 20, 2024, 16:26:57 PM
Hi All,

Some comments on importing Node.js modules into jArchi scripts:
- By "Node.js" modules we mean CommonJS modules. So a modules doesn't have to be specifically written for Node.js: as soon as it respects CommonJS specification, it should be usable.
- Not all modules will work within Archi because Archi doesn't implement core/native/builtin (call them whatever you want) modules. A rule of thumb: the less dependencies a module have, the higher the chance it will be usable.
- Archi doesn't come with npm, so if you want to reuse real Node.js modules, you will have either to install Node.js and npm on your workstation and make sure it downloads modules at the right place. You can also download modules manually (only doable for modules with no, or really few, dependencies)
- The wiki contains an example of a very simple module, I would encourage people to do so for scripts that serve as common libraries.

Regards,

JB
#93
General Archi Discussion / Re: Double quotes in import fi...
Last post by Yost67 - February 20, 2024, 12:04:12 PM
Thanks for the reply. So the lack of quotes is not the reason for the error I'm getting, interesting. I will have to "debug" some more...
#94
jArchi / Re: jArchi 1.6
Last post by Alexis_H - February 20, 2024, 06:57:09 AM
Many Thanks Phil !

Very good enhancements : Node.js support should help a lot to integrate third party JS libs (eg : a unit-testing fwk for QA checks on the model, I was digging in Jasmine code to make it run outside of a browser or Node.js context.. no more headache now).
+ the line-width/color I was missing to port a 'Heatmap' jArchi script.

Alexis.

#95
jArchi / jArchi 1.6
Last post by Phil Beauvoir - February 19, 2024, 11:43:37 AM
Hello jArchi scripters!

jArchi 1.6 is available at the usual outlets.

This version includes support for Node.js modules (thanks to @Jean-Baptiste Sarrodie for that), some fixes and a few new features.

Please note that this version requires Archi 5.2 or later.

Change log - https://github.com/archimatetool/archi-scripting-plugin/wiki/Change-Log

Cheers,

Phil
#96
General Archi Discussion / Re: Double quotes in import fi...
Last post by Phil Beauvoir - February 19, 2024, 11:15:21 AM
Actually, you don't need double quotes for a field except where you use a comma in the text field. The use of double quotes is recommended in the User Guide to be on the safe side.

For example:

ID,Type,Name,Documentation,Specialization
100,ArchimateModel,Archisurance,An example of a fictional Insurance company.,
101,BusinessActor,"Archisurance, Inc.",,
102,BusinessActor,Back Office,,

This is how Excel on Mac will export to CSV.
#97
jArchi / Re: Single View 2 Single HTML ...
Last post by Jean-Baptiste Sarrodie - February 19, 2024, 11:08:52 AM
Hi,

Thank you for sharing. I'm sure I will reuse a big part of your code to enhanced my "Single Page HTML Export" script (which uses PNG and not SVG).

Regards,

JB
#98
General Archi Discussion / Double quotes in import files,...
Last post by Yost67 - February 19, 2024, 08:04:25 AM
I'm wondering why there are double quotes needed in import files. Especially because every field needs to have them, while they are already comma separated. And I learned this weekend that seems very hard to make such an import file on a Mac (both Excel and Numbers export to csv without adding the quotes).

Maybe I'm overlooking something simple, so please correct me if I do. And otherwise this is just a suggestion for future innovation. 
#99
General Archi Discussion / Re: Reference Models - best pr...
Last post by m4ttmcg - February 19, 2024, 03:46:35 AM
Thanks JB, Any advice would be greatly appreciated!
#100
jArchi / Re: Single View 2 Single HTML ...
Last post by Phil Beauvoir - February 19, 2024, 00:00:24 AM
Many thanks for sharing!

I edited your post so that the image displays.

Phil