Book a Demo

Author Topic: Help with profile / element names  (Read 3148 times)

EAuser1

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Help with profile / element names
« on: May 24, 2011, 03:27:58 am »
Hi all, first of all let me premise that I'm quite a beginner with EA, so I hope some more advanced users can help me with this problem.

I'm creating a profile, in order to establish some rules for the creation of process flows. Following EA instructions, I created a new profile, added a stereotype for each element I wanted to customize and linket it (extend) to the related metaclass.
Then I added to each stereotype the attribute _image and created a custom shape script designing the shape I desired.
Finally I saved the profile and imported it into the project I was going to use.

Now here is the problem: when I drag one the stereotype elements I created from the resource panel, the shape of the element I see in my diagram is the one I actually designed, but I can't find a way to have the element's name displayed on top of the shape. It seems that the element's name remains underneath the custom shape.
Is there a way I can have the element's name displayed over the shape?

Thank you in advance for your help! ;)

jumbie

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: Help with profile / element names
« Reply #1 on: June 10, 2011, 06:50:55 am »
I have the same problem...  :-/

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Help with profile / element names
« Reply #2 on: June 10, 2011, 09:08:49 am »
somewhere in your shape script you will want the command

Code: [Select]
print("#name#");
The Sparx Team
[email protected]

jumbie

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: Help with profile / element names
« Reply #3 on: June 10, 2011, 04:46:44 pm »
Quote
somewhere in your shape script you will want the command

Code: [Select]
print("#name#");

Thanks, it works, now I have found it also in EA HELP, site Example Scripts with a lot of code.  :)