Hi
Thanks for the fast feedback.
Here my script:
shape main
{
h_align = "center";
noshadow = "true";
if (HasTag("Version","1"))
{
image("s_green.emf",0,0,100,100);
return;
}
if (HasTag("Version","2"))
{
image("s_blue.emf",0,0,100,100);
return;
}
if (HasTag("Version","3"))
{
image("s_red.emf",0,0,100,100);
return;
}
}
I play a little more with my testmodel and found the following issues:
a) image in wfm format do not work with shape script (or I do something wrong)
b) if you set bgcolor in the profile (for a specific stereotype) you can't manipulate/override that with shape script method
c) same if you set metafile
I have general problem to load emf-files I use in my shape script (see above). How is the correct method to that. I try diffrent ways (put file in the same folder as the profile; Image Manger; Stereotype from Toolbox/Profile than save as Profile and copy the image part into my profile).
Currently I can only use my s_red.emf picture, but not the two other (s_blue and s_green).
And another question: can I also use a value from a tag in the print() method. I read in an old post that Sparx has this issue on the roadmap list. Any news ?
Rgds from Switzerland
Thomas