Well that is what I did and it does not work.
I have Generalized an ArchiMate_Device and I moved the device logo created by the decoration a bit to the left (from -26 to -40) and then I have the little device twice in my element;
When I remove the drawing of a shape from the main procedure indeed the main shape is not drawn so that is indeed overruled however I still have the decoration twice.
decoration device
{
orientation="ne";
if(hasproperty("rectanglenotation","1"))
{
setorigin("ne",-40,10);
moveto(15,75);
lineto(0,100);
lineto(100,100);
lineto(85,75);
startpath();
roundrect(0,0,100,75,30,30);
endpath();
strokepath();
}
}