Author Topic: Custom Stereotype image needed  (Read 3414 times)

ssands

  • EA User
  • **
  • Posts: 91
  • Karma: +0/-0
    • View Profile
Custom Stereotype image needed
« on: November 05, 2014, 07:11:46 am »
Hi all,

We would like to create a custom stereotype for part so that it looks like a  component (that is, a sub-component). We want the little component symbol to show in the upper right like it does for components (but this would be a Part).
Does anyone know where I can find an image file to that symbol? I had hoped it would be in Sparx somewhere, but searching the directory structure did not turn it up.

Thanks in advance!

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Custom Stereotype image needed
« Reply #1 on: November 05, 2014, 09:24:04 am »
Try creating a shape script for the stereotype like this:

Code: [Select]
decoration component
{
    orientation="NE";
      
    rectangle(0,0,60,100);
    rectangle(-10,10,10,30);
    rectangle(-10,50,10,70);
}
The Sparx Team
[email protected]

ssands

  • EA User
  • **
  • Posts: 91
  • Karma: +0/-0
    • View Profile
Re: Custom Stereotype image needed
« Reply #2 on: November 05, 2014, 11:25:37 am »
Thank you! I'll try it out and repor back.

ssands

  • EA User
  • **
  • Posts: 91
  • Karma: +0/-0
    • View Profile
Re: Custom Stereotype image needed
« Reply #3 on: November 05, 2014, 12:00:35 pm »
Perfect! Thanks again!
« Last Edit: November 05, 2014, 12:00:48 pm by ssands »