Book a Demo

Author Topic: Manual Activity Shape  (Read 2879 times)

Eisen

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Manual Activity Shape
« on: July 09, 2008, 11:37:54 pm »
In order to get some of the Visio hold-outs on board I created a manual activity shape. The script also displays the symbol for composite activities. Hope this helps someone, somewhere!

Code: [Select]
shape main
{
            //setfillcolor(0,0,0);
            startpath();  // Start to trace out a path
            moveto(0,0);
            lineto(100,0);
            lineto(85,100);
            lineto(15,100);
            endpath();  //  End tracing out a path
            // Fill the traced path with the fill color
            fillandstrokepath();

            addsubshape("namecompartment", 100, 60);

       if (HasProperty("iscomposite", true))
       {
                  addsubshape("compositecompartment", 80, 50);
       }            


       shape namecompartment
       {
               h_align = "center";
               v_align = "center";
               editablefield = "name";

               //rectangle(0,0,100,100);
               println("#name#");
       }
      
       shape compositecompartment
       {
               h_align = "right";
               v_align = "bottom";
               println("O_O");
       }
      
}

- Eisen
« Last Edit: July 09, 2008, 11:38:33 pm by Eisen »

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: Manual Activity Shape
« Reply #1 on: July 10, 2008, 04:00:24 am »
Thank you for sharing this.