Book a Demo

Author Topic: Profile struggles  (Read 3172 times)

GrahamL

  • EA User
  • **
  • Posts: 111
  • Karma: +2/-0
    • View Profile
Profile struggles
« on: June 06, 2020, 01:19:08 am »
Hi again
Firstly, sorry for all the questions

I have a simple profile containing one sterotype called Goal
It has 2 attributes
_metatype=Goal
_image - defined as shape script
shape main
{
   rectangle(0,0,50,69);
}

Now if I import this profile to a model and drag the Goal type onto a diagram  I see the rectangle defined by the shape script but I dont see text for the element name, I had expected Goal1.

Without the shape script I do see the element name.

Am I missing anything?

Thanks

GrahamL

  • EA User
  • **
  • Posts: 111
  • Karma: +2/-0
    • View Profile
Re: Profile struggles
« Reply #1 on: June 06, 2020, 01:51:20 am »
I was missing the the fact that you have to print the element name in the shape script This does display the name but not in bold.
If anyone knows how to show it in bold ....

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Profile struggles
« Reply #2 on: June 06, 2020, 01:53:14 am »
Not possible.

q.

GrahamL

  • EA User
  • **
  • Posts: 111
  • Karma: +2/-0
    • View Profile
Re: Profile struggles
« Reply #3 on: June 06, 2020, 01:56:42 am »
Hi
Well I found a way! ;D

In the shape script
bold=true

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Profile struggles
« Reply #4 on: June 06, 2020, 02:00:29 am »
Ah yes. That's a new one...

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Profile struggles
« Reply #5 on: June 09, 2020, 09:56:14 am »
shape main
{
   rectangle(0,0,50,69);
}
If you haven't already found it, the code above does not draw a rectangle of 50 x 69 pixels/logical units. It draws a rect with 50% of the element width and 69% of the element height. You almost always want to draw to the full 100x100 space.