I have the following shape script linked to a class element:
shape main
{
startpath();
moveto(20,10);
lineto(20,90);
arcto(0,0,100,100,20,100,85,100);
lineto(78.5,10);
arcto(0,0,100,100,80,0,20,0);
lineto(20,10);
endpath();
fillandstrokepath();
arcto(0,-80,100,20,20,20,85,20);
moveto(20,20);
arcto(0,-70,100,30,20,30,85,30);
addsubshape("namecompartment", 100, 50, 0, 17);
shape namecompartment
{
h_align = "center";
editablefield = "name";
println("#name#");
}
addsubshape("namecompartment2", 100, 50, 0, 5);
shape namecompartment2
{
h_align = "center";
editablefield = "attribute";
println("#att#");
}
}
My problem is that the #name# works but the #att# or #attribute# I tried, does not work.
Does anybody know, which label I need between the hashtags to make it show the attributes defined in the class?
Thank you very much.
Ferran.