Book a Demo

Recent Posts

Pages: [1] 2 3 ... 10
1
OK... I then suppose that all these images should be added to the MDG at each generation..
and so I don't see the use to load theses collections (Azure, AWS,etc) through the Model manager... ???

As drawing a ShapeScript for each required elements would be a pretty big deal, I'll rather keep Arquesoft Azure lib directly in my models. Our cloud architect will just have to switch between toolboxes.

Thank's again Geert !

Eric




2

That actually does not works on my side  but does it means that Azure Image collection content (or at least the few dozens images I need..) should be loaded in IM one by one after being converted ?
 :o

Eric
Yes, I think so. It's been a while since I played with images in shapescripts.
In general I prefer to draw my igages with an actual shapescript and not use those images. They tend to slow down loading a diagram if you have a lot of them.

Geert
3
Thx Geerts !

If you refers to 'image' command in ShapeScript, the example from examples scripts array pointed by Eve clearly mentions that image must be loaded into Image Manager, first.

Code: [Select]
shape main{
// DRAW AN IMAGE FROM A FILE, AND AN EDITABLE NAME FIELD
addsubshape ("theimage", 100, 100);
addsubshape ("namecompartment", 100, 100);

shape theimage{
image ("App services", 0, 0, 100, 100);
// "App services" being the name of the image that is loaded into the Image Manager
}

shape namecompartment{
h_align = "center";
editablefield = "name";
println ("#name#");
}
}

That actually does not works on my side  but does it means that Azure Image collection content (or at least the few dozens images I need..) should be loaded in IM one by one after being converted ?
 :o

Eric



4
Eric, there are two types of "images".

The icon you assign your stereotype. That will be shown in the toolbox and project browser
And then the image you want to show on the diagram.

That is actually set in the shapescript.
Assinging an image to your stereotype element doesn't have any effect in your MDG.

Geert
5
Thx Eve. These links are useful for  a "classical"  image management.

In my case, I refers to Sparx Azure Images and Icons imported into my MDG model.

I created few class stereotypes and assigned each an Azure image directly from browser (no Image manager in this case) to "profile" diagram. I then could see images in diagram.

Once MDG is regenerated (no change in settings check boxes)  I import it to my sample model.

I then could find Azure elements in my dedicated toolbox but when I drop each of them into a new blank diagram, I do not see corresponding image, just default rectangular shape appears.

Did I missed something when I set up each Azure stereotypes attributes ?
Thx

Eric

6
General Board / Re: Javascript Model AddIn - Including Libraries
« Last post by EAButNotForGames on June 10, 2026, 03:31:36 pm »
Thanks for you answer.
The reference is to the class element and not the package.
And the Utiliies package is used in the EAExample model in the package "Model Based Add-Ins"
I am building a model addin using the same structure.

After testing, it seems that the example is also not functional.
The AddIn "MyDemoAddin" has the reference to 2 class elements, but the operations calling them (TestOtherObject, TestXML) is not implemented.
After adding them:



they throw the same error:

Code: [Select]
Invocation error in: addin.EA_MenuClick
------------------------------------------------
 344:    }
 345:    MyDemoAddin.prototype.TestXML = function() {
 346:    var doc = new JSxml();
 347:    doc.SetCurrentNode(doc.CreateRootElement("properties"));             [!!!! JSxml is not defined]
 348:    var group = doc.AppendChild("group","");
 349:    doc.SetAttribute(group, "name", "theGroup1");
 350:    this.MultiLineOutput(doc.GetXML());
 351:    }
 352:    MyDemoAddin.prototype.UpdateSelectionSummary = function(Repository) {

7
Here's how to specify an icon for the toolbox:

Assign Icons To Toolbox Items

To use an image for diagram rendering, add the image to your technology:

Add Images

Add a shape script to your stereotype.

Draw the image using the image function:

Drawing Methods

Example Scripts (Near the end)

8
General Board / Re: Javascript Model AddIn - Including Libraries
« Last post by Eve on June 10, 2026, 09:23:18 am »
For clarity, I'm not familiar with that EA Global Summit presentation or any framework that the presentation references. I can only comment on the Model Add-In functionality itself.

Yes, you can add a Dependency from your «JavascriptAddin» to another class that contains additional code to be able to reference that class. The reference to a utilities package makes me worry that you've added a dependency to a package instead, but I can't see your model. I suspect the utilities package is the way the presenter like to organize his model.
9
Hi all,

I set up and added a toolbox page to my MDG referring to some Azure elements (App Service, VM, SQL DB and so on...). That`s great but I cannot make corresponding icons to appear when I place one of these element to my diagram...Now I wonder if it's even possible...

It's weird that it's seems so hard to set this up.

As icons are bitmap, the Phil Chudley's trick (cut/paste  <Image></Image> blocks from Archimate.xml file to _image attribute) seems useless  :(

Thank's for your help.

Eric

10
General Board / Javascript Model AddIn - Including Libraries
« Last post by EAButNotForGames on June 09, 2026, 08:25:44 pm »
I am currently trying out the Javascript Model Addins and I got a problem with the inclusion of libraries.
So looking at the example a dependency connection and putting the class in the utilities package should have been enough.

But when I try to call them, I get:
  34:            var doc = new JSxml();             [!!!! JSxml is not defined]
  35:            doc.SetCurrentNode(doc.CreateRootElement("properties"));

In this video on the sparx youtube chanel: https://www.youtube.com/watch?v=n9tWUncuVGo
They claim this works.

Am I missing something or is this just a buggy feature?
Pages: [1] 2 3 ... 10