Book a Demo

Author Topic: How to get custom .wmf to appear on diag?  (Read 5991 times)

zack

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
How to get custom .wmf to appear on diag?
« on: March 01, 2002, 03:33:00 pm »
I've created a new stereotype associated with a class, and I added a custom .wmf to it. Now when I create a new class on a logical diagram with that stereotype, the class appears with the default tan box with the stereotype <<name>> above the class name.

How do I get the .wmf image to appear instead of the tan box?

Also, the help page shows the addition of a printer stereotype to an item called <all>.  Is <all> a special keyword? It does not cause the stereotype to appear in the pulldown list of the new class....

sparks

  • EA Administrator
  • EA User
  • *****
  • Posts: 691
  • Karma: +4/-2
    • View Profile
Re: How to get custom .wmf to appear on diag?
« Reply #1 on: March 02, 2002, 02:19:38 am »
Hello,

The only thing that comes to mind is if the defined stereotype and the one assigned to the object are not the same.   The stereotypes are case sensitive.  Let us know if this doesn't solved the problem.

Paul Mathers

zack

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: How to get custom .wmf to appear on diag?
« Reply #2 on: March 02, 2002, 09:36:28 am »
Here is what I did:
1) Searched thru my disk for a wmf file. found one named something like "Bd18181_.wmf". (I forgot the actual name)
2) Copied the file to "C:\discdrive.wmf"
3) Started EA with a copy of EABase.EAP, and clicked on Reference\Stereotypes... and entered:
  Stereotype   discdrive
  Applies to:    class (from pulldown)
  Metafile:      C:\discdrive.wmf (browsed to file)
clicked on save and close
4) I opened the Data Model diagram in EA (this behavior is the same with the Logical Model.
5) I clicked on a Class from the logical toolbar, and entered the following into the form:
  Name: DiscDrive
  Stereotype: discdrive (from the pulldown)
  Then clicked on OK.

The icon remained as a tan box with <<discdrive>> above the name.

If I were to name the class as being a controller, the icon will become an icon controller.

What am I doing wrong?


gsparks

  • EA User
  • **
  • Posts: 325
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: How to get custom .wmf to appear on diag?
« Reply #3 on: March 02, 2002, 02:01:34 pm »
Hi Zack,

I cant immediately spot anything unusual in what you did. I've retested everything in the latest version and it all seems ok.

Can you zip up the project you tested this in, and the WMF file you used and send them to...

[email protected]

Ill check it out as soon as I receive them,

Geoff Sparks



zack

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: How to get custom .wmf to appear on diag?
« Reply #4 on: March 04, 2002, 07:45:32 am »
Moving up to build 468 solved the problem. The revised icons work great!

Thanks