Author Topic: Losing aternate image in MDG  (Read 1734 times)

kepNCI

  • EA User
  • **
  • Posts: 127
  • Karma: +1/-0
    • View Profile
Losing aternate image in MDG
« on: February 23, 2012, 06:09:31 am »
Having a problem with images in a diagram from a user defined MDG technology.

When I create a new project via the user defined MDG technology, any elements with alternate images are not displaying the images, even though the images are in the new project's image manager.

We are running EA 9.2. I searched forum topics within the last year and there is one thread that was similar, but apparently is slightly different.

Here is my scenario:
The user MDG Tech file is generated from 3 saved xml profiles whose source are 3 packages within an EAP profile project. The 3 packages are:
- profile (defines 2 stereotypes for requirements with tagged values and an alternate image)
- toolbox (creates a toolbox which includes the new requirement stereotypes)
- diagram (defines a requirements diagram that uses the new toolbox)
This profile EAP file also includes custom images in its image manager that are selected to be included when generating the MDG file as well as RTF document template. I use an MTS control file.

I also have another EAP project that provides the company's model template for its project management process (PMP). The model defines the PMP's 6 phases as packages under a parent package. Each phase includes a documentation diagram which includes a company logo image inserted as an alternate image to a boundary element. The parent package is then exported as an XML file and is then referenced in the generated MTS file as a model template.

The MDG generation appears to be working OK. For example when a new project is created with the user MDG technology plus it has the entire PMP package and associated model diagrams. I can also see the MDG images in the image manager and the RTF templates under Resources.

Problem is that any elements in the diagrams which were defined with alternate images are no longer associated to the image, that is, the corporate logo in the boundary element is now blank and the requirements stereotype is back to the default image. In the case of the boundary element, I am able to re-establish an alternate image, but for the requirements stereotype, it is not an option.

What am I doing wrong that is causing the MDG technology to lose the alternate image linkage?

Karl

qwerty

  • EA Guru
  • *****
  • Posts: 11471
  • Karma: +304/-263
  • I'm no guru at all
    • View Profile
Re: Losing aternate image in MDG
« Reply #1 on: February 23, 2012, 07:12:51 am »
3rd result for search "alternate image mdg" in last year:
http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1270722559/21#21

q.
« Last Edit: February 23, 2012, 07:13:48 am by qwerty »

kepNCI

  • EA User
  • **
  • Posts: 127
  • Karma: +1/-0
    • View Profile
Re: Losing aternate image in MDG
« Reply #2 on: February 24, 2012, 03:42:52 am »
QWERTY: I am assuming your post is making an observation and not saying that my answer is already in another post thread.

I have been looking at the generated xml files created when saving as profile. While the stereotype attribute has tags for the color, there is no tag created that would associate it to an image, even though when Save as Profile, the checkbox for alternate image is on. This leads me to the assumptation that the at least the current Save as Profile generator does not support alternate images for stereotypes.

I have not studied the XML created when I exported my model template package (which is referenced in my .MTS file), but I am also assuming that I will find something similar for elements with alternate images (in this case attached to a boundary to provide a company logo on diagrams.).

Hopefully someone can show me otherwise.

Karl

kepNCI

  • EA User
  • **
  • Posts: 127
  • Karma: +1/-0
    • View Profile
Re: Losing aternate image in MDG
« Reply #3 on: March 01, 2012, 04:01:14 am »
I basically have 2 issues regarding use of alternate images within MDG generation.
 1) In my model template I have boundary elements with an alternate image (company logo).
 2) In my profile, I have altern images for some user-defined stereotypes.
When creating a new project with the generated MDG, the alternate images were not displayed in either case.

It looks like I might have a solution for issue #1 (alternate images in model template diagrams):
1) when selecting an alternate image, do NOT select one that was imported via MDG technology.  Use one that was added or imported via reference import.
2) When exporting the model template package to XML, select UML 2.3 (XMI 2.1) and check the option to include alternate images.

Support is looking at both issues.