hello:
i define a stereotype(myStereotype) applies to class and override Appearance by Shape Script,the script is the below,
if i create a myStereotype element in a diagram and add some attribute for myStereotype,the mystereotype is not display the attribute,but the class do it.
how can i display the attribute in diagram?
thanks
shape main
{
setpencolor(153,102,0);
rectangle(0,0,100,100);
addsubshape("namecompartment", 100, 40);
addsubshape("serviceClassicon", 13,20, 83,-30);
shape namecompartment
{
h_align = "center";
v_align = "center";
editablefield = "name";
setpencolor(153,102,0);
rectangle(0,00,100,100);
println(" ");
println("#name #");
}
shape serviceClassicon
{
setpen(200,150,0,1);
rectangle(0,0,100,100);
setpen(200,150,0,1);
moveto(0,0);
lineto(0,100);
moveto(100,0);
lineto(0,0);
setpen(200,150,0,1);
moveto(0,100);
lineto(100,100);
moveto(100,100);
lineto(100,0);
rectangle(25,25,75,75);
setpen(150,100,0,2);
moveto(15,40);
lineto(35,40);
moveto(15,60);
lineto(35,60);
}
}