Book a Demo

Author Topic: Can I suppress the Object Classifier in Name Compartment?  (Read 4597 times)

James Bayley

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Can I suppress the Object Classifier in Name Compartment?
« on: June 02, 2021, 07:54:15 pm »
This question was first raised in 2009 but I cannot find an answer.

Is there a way to suppress the Object Classifier in the Name Compartment so that I can simplify my diagrams when showing them to non-technical users? At the moment I have to reproduce them in PowerPoint.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Can I suppress the Object Classifier in Name Compartment?
« Reply #1 on: June 02, 2021, 08:29:43 pm »
I don't think there's a native setting. You can resort to stereotyping these objects and assign a shape script.

q.

James Bayley

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Can I suppress the Object Classifier in Name Compartment?
« Reply #2 on: June 03, 2021, 07:14:53 pm »
"stereotyping these objects and assign a shape script"

I don't know what these words mean but I will look them up!

Most things in EA seem absurdly difficult the first time you do them and obvious later so if it just takes few seconds to put a script in this thread I would be eternally grateful otherwise I will have a go at doing it myself.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Can I suppress the Object Classifier in Name Compartment?
« Reply #3 on: June 03, 2021, 09:57:11 pm »
Basically stereotyping is assigning a stereotype to an element. Usually that requires defining a profile where they are defined. And it should be done this way for many reasons. However, you can (for testing/temporary purpose) create a stereotype via Configure/REference Date/UML Types create a stereotype on the fly. Name it as you wish and make the base Object. Assign a shape scipt and put in something like:
Code: [Select]
shape main{
h_align = "center";
Println("#name#");
Rectangle(0, 0, 100, 100);
}
Now you can assign this stereotype to an Object and it will render just the name.

q.

James Bayley

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Can I suppress the Object Classifier in Name Compartment?
« Reply #4 on: June 03, 2021, 10:21:02 pm »
 :) Thank you for help!