Recent posts

#11
jArchi / Re: element specialization exp...
Last post by wiebow - February 04, 2023, 13:44:00 PM
Of course, it was a version issue with the jArchi plugin! I had the most recent installed but of course in the beta, and not on the 4.xx version of Archi. Tip: never code late in the evening. Thanks for the assistance, Phil!
#12
jArchi / Re: element specialization exp...
Last post by wiebow - February 03, 2023, 21:48:43 PM
What I did in a new model is add an element (in this case a location) and added a specialization for it (datacenter) and then set the specialization requester in the element properties to it.

Then I ran the script. Should work, right?
#13
jArchi / Re: element specialization exp...
Last post by wiebow - February 03, 2023, 21:36:50 PM
Could there be an issue with Archi versions? I made a diagram in Archi 5 beta 3, and moved this to Archi 4?

I'll start something from scratch and retry it!

result: does not fix it for me. I'm stumped
#14
jArchi / Re: element specialization exp...
Last post by Phil Beauvoir - February 03, 2023, 21:34:59 PM
I tested it and it's working here. I set a Specialization in the Properties tab and changed the same line as you did.
#15
jArchi / Re: element specialization exp...
Last post by wiebow - February 03, 2023, 21:24:31 PM
Not really what I was looking for.  I can filter out the undefined later on.

My issue is that elements that DO HAVE a specialization set, do not get the specialization name added in the column #3, but "undefined". As specialization is an optional thing in the element properties window, it's like it is not recognized as being set... I don't get it, the docs state that this SHOULD work.
#17
jArchi / element specialization export
Last post by wiebow - February 03, 2023, 21:00:54 PM
Hi there,

I am trying to export to an excel sheet my elements and also their specialization (by modifying the sample export script):

// Loop through all elements and set cells to elememt info
$("element").each(function(e) {
    excel.set(0, 0, current_row, e.name);
    excel.set(0, 1, current_row, e.documentation);
    excel.set(0, 2, current_row, e.type);
    excel.set(0, 3, current_row, e.specialization);

I added that last line to the script, but it does not what I expect: I keep getting "undefined" in my excel sheet. Now, according to the jArchi docs, specialization should work on all objects in a model. Am I missing something?

[edit: I should note that the elements DO HAVE a specialisation set]

Any ideas?
#18
jArchi / Re: How to known the kind of o...
Last post by Jean-Baptiste Sarrodie - February 03, 2023, 20:34:02 PM
Hi,

The straightforward answer is, check its type and see if it contains the string "relationship".

But another option is to filter the selection (which is a collection of only one object in this case) with either 'element' or 'relationship' and see if its lenght is zero or not:

if(selection.filter('element').size()) {
   console.log('Selection contains at least one element')
}
if(selection.filter('relationship').size()) {
   console.log('Selection contains at least one relationship')
}

Regards,

JB
#19
jArchi / How to known the kind of objec...
Last post by rchevallier - February 03, 2023, 19:42:08 PM
how to recognize in jArchi if a selected object is an element? a relationship?
Thx
#20
Hi
I am benchmarking EA 16.1 Vs Archi and I have achieved importing a huge (20000+ concepts, 700 views+) archi model in EA.

It crashed on the first attempt though, I am not sure why, I had two objects with the same ID (don't ask) in my archi model and once I corrected this problem, everything was OK on import

EA Ui is a bit messy to say the least, are you sure you're importing from "Specialize > Technologies > ArchiMate > Import Model Exchange File" ?