Book a Demo

Author Topic: Custom shape not appearing  (Read 2861 times)

cmpk

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Custom shape not appearing
« on: March 02, 2013, 02:15:46 am »
I've created a custom shape script and attached it to a stereotype but the new shape is not appearing in my diagrams.  I defined a new stereotype and applied the same shape script and still no luck.  Anyone got some clues for me?

Here's the script.  It appears OK in the preview.

shape Database {
      
      noshadow="true";
      h_align="center";
      v_align="center";
      rotatable="false";
      
      moveto(29,15);
      lineto(29,85);
      
      moveto(171,14);
      lineto(171,86);
      
      arc(0,0,200,100,171,14,29,14);
      arc(0,0,200,100,29,86,171,86);
      arc(0,-72,200,28,29,14,171,14);
      arc(0,-62,200,38,29,24,171,24);
      
      println("#stereotype#");
      println("#name#");
      
}

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Custom shape not appearing
« Reply #1 on: March 02, 2013, 03:23:43 am »
You need to name it
Code: [Select]
shape main
q.