Recent posts

#91
jArchi / Re: Sticky-note Getting the te...
Last post by Phil Beauvoir - March 08, 2025, 11:46:59 AM
Assuming you mean a note on an ArchiMate View then note.text will get the text content.

https://github.com/archimatetool/archi-scripting-plugin/wiki/Visual-Objects#text

But I think you are not getting the children of the visual object on the View. You are probably getting the concept. You need to find the "Structure" object on the view.

text = $("view").children(".Structure").children("diagram-model-note").first().text;
#92
jArchi / Sticky-note Getting the text
Last post by FredFlintstone - March 08, 2025, 11:27:14 AM
I'm looking for a solution to extract the text content from a Sticky-note. Do not seem to be a simple way or otherwise I'm just not able to figure it out :o.

blueprint=$(".Structure").first();
elements=$(blueprint).children();

elements.each(e => {
    console.log("> "+ e + "("+e.text+")");
    console.log("> "+ e + "("+e.content+")");
    console.log("> "+ e + "("+e.documentation+")");
});

All of the above beside documentation returns undefined, the later returns nothing, guess that is an empty string.

Is is so that there are no means to interface the sticky-note object within the current JArchi implementation?
#93
General Archi Discussion / Re: Best Practices for buildin...
Last post by Alexis_H - March 06, 2025, 06:22:49 AM
Hi,

Having a few years of practice of Archi in a collaborative use-case, I'd be more than happy to share (and learn !) with others the best-practices we can derive from our experiences.

@FredFlintstone list of topics are all relevant ones.

I would have added a few others where I can share some thoughts:
- Meta-model (restricting or not)
- coArchi : branch strategies
- Model sanity check / cleanup process
- View templating
- EA + SA model(s)

Regards,
Alexis

#94
jArchi / Re: Generating images for thum...
Last post by Phil Beauvoir - March 05, 2025, 12:50:50 PM
Quote from: FredFlintstone on March 05, 2025, 12:46:00 PMIs there a way to do this without having to roundtrip the png file to an external file and then back into the Image property of the visual element of a View reference.

Hi, no there isn't. You'll have to export the view as an image to file then back in to the element.
#95
jArchi / Generating images for thumbnai...
Last post by FredFlintstone - March 05, 2025, 12:46:00 PM
For ease of navigation I'd like to be able to generate a png of a view that can be pasted back into the Image part of a element. A bit like the lightbox plugin but just the image creation part.

Is there a way to do this without having to roundtrip the png file to an external file and then back into the Image property of the visual element of a View reference.

This all done using JArchi :-)
#96
General Archi Discussion / Re: Best Practices for buildin...
Last post by FredFlintstone - March 04, 2025, 21:07:00 PM
Hi,

being a regular reader and a frequent user of Archi I have for long been looking for where I could help this great work. Guess that I just found it :-)

Suggestions for topics in arbitrary order:
- Model vs models
- Model structure
- Publishing / sharing
- Utilizing properties
- Model navigation
- Drilling views (relating elements from one view to a second view)
- Prying view metadata to view
- Keeping metadata updated
- Integrating model data with external sources
- Single user - multiple users (coArchi)
- JArchi scripting - many sources

Sorry if the level of detail is varying, some might well be subsections.

Let me know if you find that a extra set of hands an a keyboard is needed.
#97
jArchi / Re: Problems with my script to...
Last post by Jean-Baptiste Sarrodie - March 04, 2025, 16:46:59 PM
Hi,

Quote from: risc12 on March 04, 2025, 10:05:24 AMBtw, should I mark the thread as solved or something?

Not here on the forum, but you can close the issue you opened on GitHub.

Btw, I did update the script a bit to better find the bottommost position (taking visual notes into account), and also to remove the legend if it exist, before re-creating it. I'll post the newer version here soon.

Regards,

JB
#98
jArchi / Re: Problems with my script to...
Last post by risc12 - March 04, 2025, 10:05:24 AM
Thanks for the script and the explanation!

I did spent some time before trying to find the folder so thanks for pointing me to the img-folder (on MacOS I had to "Open Package Contents" and then browse to `Eclipse/plugins/com.archimatetool.editor_x.y.z.timestamp/img/archimate`).

Accessing the images directly also gets rid of most of the hacky stuff and most of the string transformations so that is very nice.

The main function was there to be able to use returns, but as I saw in your example I can use exit() instead.

Thanks once more not only for the script, but really for the insights!

Btw, should I mark the thread as solved or something?
#99
Hi,

Quote from: Alberto on March 03, 2025, 21:26:55 PMI'd like to keep the conversation here for now as I think this is an open and broad topic

My main issue is that such topic can't be covered by a single post as it will quickly become a multi-pages documents. Thus a wiki-like approach seems the best to co-edit it.

Quote from: Alberto on March 03, 2025, 21:26:55 PMAlso, I find this forum has a lot more history than the ArchiMate Community forum

By "creating a GitHub repository" I was not referring to the ArchiMate Community but Archi Contribs (where non official plugins and scripts are shared).

Maybe we can start defining what the table of content would look like, find some already existing discussions on these topics, and then switch to a wiki.

Regards,

JB
#100
General Archi Discussion / Re: Best Practices for buildin...
Last post by Alberto - March 03, 2025, 21:26:55 PM
We could, but as a personal preference, I'd like to keep the conversation here for now as I think this is an open and broad topic. Also, I find this forum has a lot more history than the ArchiMate Community forum (probably because this is where it all started for me), so we can always refer to past conversations.  For example, this topic about "AS-IS, Transition, TO-BE" has some good nuggets of wisdom that are great. I just don't know how to best structure the the topic, so perhaps we can start with that?