[1] In the above shape, if the name of an element is longer than the size of the icon in the diagram, the letters are cut off to the left and to the right. I tried PrintWrapped("#NAME#") instead, but then the #NAME# is somewhere outside the shape (... has something to do with v_align).
Hi Steve, I had raised this same issue with Sparks support and the following was their response.
Your problems has prompted us to reconsider the use of clipped text, we'll be disabling the clipping for a future release (most likely to be 6.5). We'll also be addressing a problem when v_align = "center" is used with PrintWrapped. Unfortunately, can't suggest anything to help with the current build except for decreasing the preferredwidth of the padding shape to 0.I notice your text block is defined using static values 80,06. Not sure how it works but the text block & padding in my shapescript is like this:
//Add padding & Text placeholder
addsubshape("padding","N");
addsubshape("padding","W");
addsubshape("padding","E");
addsubshape("name","CENTER");
//Define Text place holder
text name
{
h_align = "center";
PrintWrapped("#NAME#");
}
//Define padding attributes
shape padding
{
preferredHeight=5;
preferredWidth=5;
}
}
[2] Is there a method to protect shapes and stereotypes against changes of my colleages?
If you want to be the only one to edit/modify shapes etc then you can do this by turning on the security option in EA and enabling these meta data rights only for yourself.
If on the other hand you do not want you collegues to edit your shapes then you will need to maintain seperate shapes/stereotypes.
As long as these are seperate projects that is probably fine, but I would question the need for this 2nd approach if all of you are working on the same project/product. It is best then to brainstorm together and get concurrance on shapes/stereotypes and who will own them so there is one central point making all the meta data changes while the rest use the shapes.
HTH.
Cheers
Nara