Book a Demo

Author Topic: Shape Script Variable Text  (Read 3926 times)

jeshaw2

  • EA User
  • **
  • Posts: 701
  • Karma: +0/-0
  • I'm a Singleton, what pattern are you?
    • View Profile
Shape Script Variable Text
« on: February 06, 2009, 12:12:18 pm »
I understand that I may use a shape script to add a compartment to an element in rectangle view, but how do I provide compartment text that varies from element to element?  For example, I add a compartment to a class element and add the class several times to my diagram.  The text in each instance of the class element the text needs to be different.  Sample code would be nice.

Thanks
Jim
Verbal Use Cases aren't worth the paper they are written upon.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Shape Script Variable Text
« Reply #1 on: February 09, 2009, 09:32:58 am »
Hi Jim,

I posted this a while ago, it may help:

http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1198458939/0#0
The Sparx Team
[email protected]