Book a Demo

Author Topic: Shape scripts via the "Profile"-Toolbox  (Read 4351 times)

Hermann_Pallasch

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Shape scripts via the "Profile"-Toolbox
« on: November 25, 2005, 02:38:49 am »
Hi,

I wonder if i can use shape scripts also in profiles defined  with the "Profile" toolbox? There is the "Stereotype" element for definition of the new profile's stereotypes, but i can't see a way to attach shape scripts to these stereotypes. Can somebody suggest a way?

Regards (and thanks in advance)
Hermann Pallasch
Kind regards
Hermann

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Shape scripts via the "Profile"-Tool
« Reply #1 on: November 27, 2005, 03:13:53 pm »
Quote
Hi,

I wonder if i can use shape scripts also in profiles defined  with the "Profile" toolbox? There is the "Stereotype" element for definition of the new profile's stereotypes, but i can't see a way to attach shape scripts to these stereotypes. Can somebody suggest a way?

Regards (and thanks in advance)
Hermann Pallasch


Hermann,

Give your <<stereotype>> class an attribute named _image and next to the "Initial" value click on the ellipsis (...) button to enter the shape script.

If you want your shape to have a set default size, add attributes named _sizeX and _sizeY and give them initial values (units are pixels) and set the Element Size option on the Save dialog.

HTH

Neil
The Sparx Team
[email protected]

Hermann_Pallasch

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: Shape scripts via the "Profile"-Tool
« Reply #2 on: November 28, 2005, 12:55:03 am »
Thanks, Neil, I'll give it a try!

Hermann

Kind regards
Hermann