Author Topic: Custom UML Sterotypes (Shapes)  (Read 10700 times)

nara_c

  • EA User
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Re: Custom UML Sterotypes (Shapes)
« Reply #15 on: May 10, 2006, 02:56:37 pm »
Quote
[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;
       }
}



Quote
[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

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Custom UML Sterotypes (Shapes)
« Reply #16 on: May 10, 2006, 03:21:28 pm »
I think you should be able to change your collegues all you want without affecting the shapes...  ;D

Seriously though, can we protect this particular metadata without changing the settings elsewhere? [Nara_c, I simply have not tried and am not working in a shared environment right now; perhaps you have the answer at hand.]

The second option has all kinds of issues. You my find that the overhead of managing separate projects for this quickly outweighs the benefits (if any). However, my experience is that it is easy to get reference data in different projects out of synch with each other, and this area is particularly prone to problems. It might save you some hair pulling to have a private 'reference' project for your shape scripts, from which you can reload from time to time. This would allow you to 'refresh' your scripts and stereotypes (which you will also want to keep in synch) as needed.

David
No, you can't have it!