Book a Demo

Author Topic: Convert object to class  (Read 3436 times)

mperry

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Convert object to class
« on: March 06, 2008, 05:48:52 am »
Does anyone know if there is a way to convert an object into a class?

thanks!
-mperry

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Convert object to class
« Reply #1 on: March 06, 2008, 06:13:13 am »
I'm assuming you mean an instance on a diagram.

What you can do is select the object, then from the EA main menu choose Element | Change Type. Set the type to Class.

You can also change which class an object is an instance of. [Strange phrasing there, but you get the idea.] Right-click the object and from the context menu choose Advanced | Instance Classifier (or use the control-L shortcut).
No, you can't have it!

mperry

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Convert object to class
« Reply #2 on: March 06, 2008, 08:17:12 am »
That's great! thanks!

Your first suggestion worked. In my version of EA, you have to select Advanced | Change Type from the Element menu.

This will be a great timesaver for colleagues who have setup diagrams requiring Classes instead of Objects.

Regards,
-mperry