Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: ssands on November 05, 2014, 07:11:46 am

Title: Custom Stereotype image needed
Post by: ssands 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!
Title: Re: Custom Stereotype image needed
Post by: KP 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);
}
Title: Re: Custom Stereotype image needed
Post by: ssands on November 05, 2014, 11:25:37 am
Thank you! I'll try it out and repor back.
Title: Re: Custom Stereotype image needed
Post by: ssands on November 05, 2014, 12:00:35 pm
Perfect! Thanks again!