Book a Demo

Author Topic: How can I use a relative path for the icon field of a profile stereotype  (Read 5310 times)

RusDavies

  • EA Novice
  • *
  • Posts: 16
  • Karma: +1/-0
    • View Profile
I need some help with icons for profile stereotypes.

I'm creating a new UML profile.  The project consists of an EAP file, together with an assets folder containing various bitmaps.  For each new stereotype, I assign a bitmap to icon attribute.  However, Enterprise Architect seems to require an absolute path in the icon field.  (In fact, the related profile helper states as much).

Using absolute paths is generally not good practice. In my case, doing so creates headaches when sharing the project and associated assets with other developers (e.g. via git).

I see that a mechanisms exists, via "Tools -> Local Directories and Paths", to associate root paths with IDs, for certain object types.  That mechanism doesn't seem to apply to the Icon field of profile stereotypes. 

The use of relative paths seems like such a basic requirement, I fear I must be missing some obvious trick. 

So, does anyone know how to have EA successfully use a relative path for the icon field of profile stereotypes?
« Last Edit: January 23, 2016, 08:00:01 am by RusDavies »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How can I use a relative path for the icon field of a profile stereotype
« Reply #1 on: January 23, 2016, 09:03:34 am »
tldr;
Absolute paths in MDG generation are just for the creation process. The MDG will just hold the content and is easily distributable.

q.

RusDavies

  • EA Novice
  • *
  • Posts: 16
  • Karma: +1/-0
    • View Profile
Re: How can I use a relative path for the icon field of a profile stereotype
« Reply #2 on: January 23, 2016, 11:50:27 pm »
Thanks for the reply.

Indeed, the path is not an issue for distributing the MDG. 

However, my concern is instead about sharing the development activity for the MDG amongst multiple developers.  In that case, the absolute path does cause problems.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How can I use a relative path for the icon field of a profile stereotype
« Reply #3 on: January 24, 2016, 12:24:10 am »
True. There are a couple of places where EA does not allow relative paths. You might ask for a new feature.

q.

RusDavies

  • EA Novice
  • *
  • Posts: 16
  • Karma: +1/-0
    • View Profile
Re: How can I use a relative path for the icon field of a profile stereotype
« Reply #4 on: January 26, 2016, 12:46:13 am »
Thanks for the reply. 

If no one else provides an answer here, then I'll look into filing a feature request.