Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Arnoud_B

Pages: 1 [2]
16
Is there a standard capability in SparxEA to show the values of tagged values in a view. The only way I know to retrieve there values I know of is to go to properties and select tags there however in a diagram this information is not visible (so also not visible in WebEA).
I was thinking on writing a script to create a note on the diagram with the names and values of the tags to make them visible in the diagram. This is certainly possible (not even that hard) but it will mean that when you update the tagged value you have to run the script again.
I have noticed that I create scripts sometimes for things that are out of the box SparxEA but i lack concise documentation (or time to read all) of all buttons and features in SparxEA, so till now I did not find such a feature but maybe somebody can enlighten me before i start writing another script.

17
I have an Element which appears in my search and I even have other elements that have a relationship with it but it is no longer i my project browser and it is also not shown in the view the relationship sort of ends in a void  :-[.
So I cannot delete it using the GUI.
So I thought of writing a very small script to delete it anyway. I find the Element but you cannot delete an object in SparxEA you should delete it from the Collection that holds it, but which collection holds the elements?

I have found the element like this:
   var elementToDelete as EA.Element;
   elementToDelete = Repository.GetElementByGuid("{D913995C-5E5D-48da-B91D-C9E03356B389}");
   Session.Output("found object: " + elementToDelete.Name);

However I fail to find how to get rid of it.

18
In the wizard to create a Basic class diagram with multiplicities an association is shown and the text explains:
"The association is named and an indicator shows how to read the relationship between the two classes."
I think that is VERY useful but I cannot find how to activate this indicator. If I create a new association the indicator is not shown and I do not see any option to activate. It is probably very simple but I have been looking for ages and cannot find it  :'(

19
Hi,
I am slowly learning to use Archimate in SparxEA but there are some 'features' that I do not very much like.
One of the things that bothers me is that EA automatically embeds an element in a 'parent' element when you place it on top of that other element in a drawing. I would like to disable that. I wrote scripts to embed the elements in the project browser based on their relationships so mostly I embed an element into another when it has a composition relationship with that.
So we create a re-useable repository of entities with which people can create drawings. However if they make a 'mistake' in their drawing this actually changes the repository and although it will be corrected by running the repository organisation scripts again the element will for a while be in a wrong place creating potential confusion and errors with other users.
So my question is; is there a setting to tell SparxEA it should NOT embed items based on actions in the diagram, and all embedding should be done by dragging an element to its correct position in the project browser.

20
I feel like this is a very stupid question but I searched and I searched and I do not find a correct answer.
I write scripts in JavaScript but I do not know which dialect Sparx i(v14) is using in the documentation it refers to Mozilla Spidermonkey however if I use objects described in the reference guide of Spidermonkey I get only errors.
Very concretely I wanted to create a Map to store diagram objects with a key to be able to process them correctly but although
var myArray = new Array();
works fine creating a map with
var myMap = new Map();
throws an exception.
I am trying to guess the syntax that I can use but I would very much be helped if I know which dialect I should use and have a reference for that.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference
Does contain all kinds of constructs that will not interpret at all.

21
Is it possible to add or remove (diagram)objects to a diagram using (java)script? You can change a large number of attributes of an diagram and you can also retrieve the objects already on a diagram but I fail to find how you can remove items from a diagram or add new items to a diagram.

22
Hi, I am very new to scripting in EA so it is most probably an obvious thing. I already found a lot of answers to things that I did not get working initially but this one I (till now) did not succeed to solve on my own.

I am creating some POC scripts to see what is possible in EA scripting and I started to create a diagram script. However it contains an error (and will contain more in the future) and I wanted to debug it. However if I start the debugger from the script window there is no diagram selected and my script fails. But if I start the script from the diagram window then I cannot start it in debugging mode.
O yes I am using JavaScript but that won't change anything I think.

Pages: 1 [2]