Author Topic: Cannot change a class icon  (Read 2535 times)

janet.edwards

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Cannot change a class icon
« on: March 13, 2021, 10:21:33 pm »
Hello,

I use EA Professional 15.2.1557.

I have a class in my model which exists in one diagram using the default rectangle icon with the default compartment of attributes.

However, on another diagram, I would like to have this same class display using a different icon, without any compartments at all. By "the same" I mean that I would like for it to be a link to the original class. Basically, one model, multiple visual representations on different diagrams.

This sounds like a job for options from right-click -> Appearance but no matter what I click under Appearance, the most that I can do is what the standard F4 dialog has, which is colour, line thickness etc.

There are no other images/assets to pick anything from when I click other appearance options, like Change Default Image, Select an Alternate Image etc. It looks that they should be populated with something and I should be able to choose from these lists but they are simply empty.

Am I doing anything incorrectly? Is that not the way to change an icon of a link to an element?

Thanks.
« Last Edit: March 13, 2021, 11:25:36 pm by janet.edwards »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Cannot change a class icon
« Reply #1 on: March 14, 2021, 07:00:58 pm »
What do you mean by "using a different icon"?

q.

janet.edwards

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Cannot change a class icon
« Reply #2 on: March 15, 2021, 12:37:01 am »
Hello @qwerty,

it means representing the same element using a different graphical icon.

For instance, here we have some classes:

https://sparxsystems.com/enterprise_architect_user_guide/15.0/images/exampleofaclassdiagram.png

For the sake of this example, I would like to have the same classes display using a different icon / image / I am not sure what your preferred terminology is, for instance, like here:

https://sparxsystems.com/enterprise_architect_user_guide/15.0/images/exampleofadeploymentdiagram.png

It would be still the same elements, just having a different icon.

In my case, I have classes with several compartments in one place and on another diagram I would like to use the same class element using a different icon without any compartments, just its name and the symbol / icon / image.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Cannot change a class icon
« Reply #3 on: March 15, 2021, 07:06:58 am »
Oh no. Don't! The first are classes and the other ones are nodes. If you wan't to confuse the Russians then do that. But if you want to talk to your stakeholders then keep the norm.

You can use stereotyped elements and change their appearance (either by shape script or by using rectangle or iconic presentation where the rectangle notation shows the stereotype icon top right). This is what you can do. But please, try learning UML terminology before starting to model "something".

q.

janet.edwards

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Cannot change a class icon
« Reply #4 on: March 15, 2021, 07:52:14 am »
There is no need to be snarky. I was hoping that it was clear that it was just an example.

I am the only stakeholder and I am not going to confuse myself. I am also not going to use nodes instead of classes. Honestly, I have no idea how else to relay the information that I am asking about it all in general, how to change an icon, not about this specific case.

If this is not possible, that is fine, I hope the next person in N months or years will save some time by stumbling upon this message thread.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Cannot change a class icon
« Reply #5 on: March 15, 2021, 08:17:36 am »
If you want alternate icons, you will need to provide them and load the into the image manager (ribbon > Configure > Images). Then you can use right-click > Appearance > Select an Alternate Image
The Sparx Team
[email protected]

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Cannot change a class icon
« Reply #6 on: March 15, 2021, 08:18:22 pm »
Of course you are free to confuse yourself. I just wanted to scare you right ahead that this is not a good idea. Good luck then.

q.