I have created a profile with a number of extensions to base classes. I have attached the shape script below to one of the stereotypes extending the base class. The script draws the right geometry but the connectors look odd. There are 2 problems:
1) one end of the connector, the bottom end, is a few pixels inside the rectangle
2) if I change the stereotype of an element in the diagram to the stereotype with the same scripts, a significant amount of white space appears between the bottom of the shape and the end of the connectors
Have I missed anything? (Sparx EA version is 13.0.1310 Build 1310).
shape main{
rectangle(0,0,100,100);
addSubshape("stereotypecompartment", 100, 20);
addSubshape("namecompartment", 100, 20);
shape stereotypecompartment
{
h_align = "right";
editablefield = "stereotype";
rectangle(60,0,100,60);
println("#stereotype#");
}
shape namecompartment
{
h_align = "center";
editablefield = "name";
println("#name#");
}
}