Book a Demo

Author Topic: Howto render operations in EAShapeScript?  (Read 3191 times)

Robert Kowalchuk

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Howto render operations in EAShapeScript?
« on: March 10, 2008, 07:09:53 am »
From reading the documentation I can't determine how to render the operations and attributes using EAShapeScript.   Firstly, is it possible? and how?

Here is my shapescript:

shape main{
      setfillcolor(255,255,255);
      setpenwidth(0);
      setpencolor(255,255,255);
      
    addsubshape("namecompartment", 100, 40);
    addsubshape("methodcompartment", 100, 60);

    startpath();
    //bezierto(110,85,105,90,90,90);
    moveto(100,100);
    lineto(20,100);
    bezierto(5,100,0,85,0,60);
    lineto(0,20);
      bezierto(0,5,5,0,20,0);
      lineto(80,0);
      bezierto(95,0,100,5,100,20);
      lineto(100,75);
    endpath();
    fillandstrokepath();

      setfillcolor(255,255,255);
      setpenwidth(5);
      setpencolor(200,0,0);
    startpath();
    //bezierto(110,85,105,90,90,90);
    moveto(90,100);
    lineto(20,100);
    bezierto(5,100,0,85,0,60);
    lineto(0,20);
      bezierto(0,5,5,0,20,0);
      lineto(80,0);
      bezierto(95,0,100,5,100,20);
      lineto(100,75);
    endpath();
    strokepath();

      return;
      
      shape namecompartment
      {
          h_align  =  "center";
            print("#name# ");
            println("#TAG:Owner#");
             startpath();
             moveto(0,40);
            lineto(100,40);
            endpath();
            strokepath();
      }
      
      shape methodcompartment
      {
             // WHAT GOES HERE?
      }
}