I have used within a shapescript something like this to control Rectangular Notation
// Define the intial size for element
defsize(160,80);
// Check whether rectangle notation is enabled
if (hasproperty("rectanglenotation", "0"))
{
// Not enabled, so just display as a rectangle (name centred vertically and horizontally)
// horizontally
rectangle(0,0,100,100);
addsubshape("namecentre", "CENTER");
}
else
{
// Enabled so display heading containing the stereotype
// Name compartment underneath (name centred vertically and at the top)
rectangle(0,0,100,100);
addsubshape("type", "N");
addsubshape("nametop", "CENTER");
}
I have also used the _UCRect attribute to set the default appearance
_UCRect Seems to work on all elements, except Actor (my own stereotype has no Shapescript), has NOeffect,. Maybe a bug in EA?
Phil