Good day,
I have a question about communication between add-in and shape script.
I know that if I want to call the method defined in my add-in script, I have to call the method from the shape script as follows: "#ADDIN: EAAddinArchimate, GetValueForShape, Stereotype, Alias #". At the same time, I have read in the documentation that the shape script does not allow iterating over objects in a collection.
My question - how to implement the following situation: I want to have the definition of values "tab1; tab2; tab3; .... tabX" in the tag value "tabs". I know how to read this value by add-in script and send value as a list to the shape script (but it is a string). How can I iterate it (from tab1 to tabX) and create objects for example GuiElement1 - GuiElementX below each other with name "tab1 - tabX"
If it is not posible by shape script, it is posible to do it in add-in ? very similar component is "Wireframing::WireframeTabControl"
my example from shape script
shape main
{
layoutType="leftright";
rectangle(0, 0, 100, 100);
print("#ADDIN:EAAddinArchimate, GetValueForShape#");
addsubshape("red", 20, 10);
addsubshape("blue", 20, 10);
addsubshape("green", 20, 10);
addsubshape("red", 20, 10);
addsubshape("white", 20, 10);
shape white
{
setfillcolor(255, 255, 255);
rectangle(0, 0, 100, 100);
}
shape red
{
setfillcolor(200, 50, 100);
rectangle(0, 0, 100, 100);
}
shape blue
{
setfillcolor(100, 50, 200);
rectangle(0, 0, 100, 100);
}
shape green
{
setfillcolor(50, 200, 100);
rectangle(0, 0, 100, 100);
}
}
my example of method from add-in
public string WidthGreenLine(EA.Repository repository, string eaGuid, object theParams)
{
return "tab1;tab2;tab3";
}
Thank you very much.