Book a Demo

Author Topic: database "drum" symbol  (Read 4682 times)

gamiddleton

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
database "drum" symbol
« on: September 16, 2009, 11:31:57 pm »
Is there any way to use the traditional database "drum" symbol on a UML diagram instead of the EA provided symbols?  This would be on deployment diagrams.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: database "drum" symbol
« Reply #1 on: September 17, 2009, 02:35:10 am »
You can replace the image of an element on a diagram with a image file, or you could create a whole new shape using the shape scripts.
I don't think the "drum" shape is included in EA.

Geert

TomO

  • EA Administrator
  • EA User
  • *****
  • Posts: 80
  • Karma: +7/-0
  • EA - Bridging the gap between Business and IT
    • View Profile
    • Sparx Systems
Re: database "drum" symbol
« Reply #2 on: September 18, 2009, 02:42:39 pm »
Hey Gamiddleton,

If you point your browser to: http://www.sparxsystems.com/resources/image_library.html you will find a down-loadable image library for EA.

Follow the instructions on page and you will have a whole host of alternate images for your diagrams, including the traditional "drum" sybmol.

I hope this helps

Regards,
TomO


gamiddleton

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: database "drum" symbol
« Reply #3 on: September 18, 2009, 09:45:23 pm »
Thanks for both answers.

I tried shape scripts, and was able to draw the shape.  Will look at the downloadable library next.

 -Guy

gamiddleton

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: database "drum" symbol
« Reply #4 on: September 18, 2009, 10:03:49 pm »
 I tried both approaches, and I like the shape script better.  The image library is all 3D, and does not match the rest of my diagram.

So far my script is as follows.  Any idea how to reposition the text? I tried putting a moveto() before the println() but it stays at the top.  And I would like to get boldface but the docs says it can't be done.

Thanks again.


shape main {
      h_align = "center";
      editablefield = "name";
      startpath();
      moveto(0,10);
      arcto(0,80,100,100,0,90,100,90);
      lineto(100,10);
      endpath();
      fillandstrokepath();
      ellipse(0,0,100,20);
      
      println("#name#");
}

Luis J. Lobo

  • EA User
  • **
  • Posts: 252
  • Karma: +0/-0
  • IT Consultant
    • View Profile
Re: database "drum" symbol
« Reply #5 on: September 18, 2009, 10:47:51 pm »
Simple, add a "v_align" next to "h_alig" and done:


shape main {
     h_align = "center";
     v_align = "center";
     editablefield = "name";
     startpath();
     moveto(0,10);
     arcto(0,80,100,100,0,90,100,90);
     lineto(100,10);
     endpath();
     fillandstrokepath();
     ellipse(0,0,100,20);
     println("#name#");
}

Good work, thanks!!

gamiddleton

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: database "drum" symbol
« Reply #6 on: September 18, 2009, 11:03:40 pm »
Excellent, thanks.

One last thing:  is there a way to get the special "<<" characters?

 -Guy

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: database "drum" symbol
« Reply #7 on: September 19, 2009, 11:52:43 pm »
Just enter them as text. I use ALT+0171 for « and ALT+0187 for ». Some systems (mine included) require that num lock key be on when doing this.
No, you can't have it!