Thanks for the tips...I wasn't using the entire drawing area...correcting the numbers resulted in the image taking up the entire drawing area. However, when the stereotyped Event is dropped on the diagram, it appears for an instant at the preferred height and width set in the script, but then expands to the same fixed height and width (much too tall) regardless of the script settings. The same thing happens, by the way, to an unadorned "Event" image (redefined in the profile without an alternative image) when dropped...it blows up to twice the height (more or less) of the standard "Receive" or "Send" images.
Here's the script:
shape main
{
preferredHeight = 50;
preferredWidth = 150;
layouttype = "border";
ellipse(0,0,20,30);
moveto(10,30);
lineto(10,70);
moveto(10,70);
lineto(0,100);
moveto(10,70);
lineto(20,100);
moveto(10,44);
lineto(20,44);
moveto(10,44);
lineto(0,44);
startpath();
moveto(25,0);
lineto(80,0);
lineto(100,50);
lineto(80,100);
lineto(25,100);
lineto(25,0);
endpath();
fillandstrokepath();
addsubshape("padding","N");
addsubshape("name","CENTER");
shape name
{
h_align = "CENTER";
printwrapped("#NAME#");
}
shape padding
{
preferredHeight=25;
preferredWidth=50;
}
}
Cheers,