Author Topic: Store profile file in package Filename property  (Read 1320 times)

Uffe

  • EA Practitioner
  • ***
  • Posts: 1669
  • Karma: +112/-11
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Store profile file in package Filename property
« on: June 02, 2020, 03:52:14 am »
Hi all,


When constructing MDG Technologies, you generate profile XML files for UML profiles, toolboxes and diagram sets.
Each profile is represented by a package, and you generate the XML file for each profile using Specialize -- Publish-Tech -- Publish Package as UML Profile.

EA keeps track (somehow) of which file to write each profile to, so the last used file name for a particular package is auto-filled into the Save UML Profile dialog. Well up to a point, it gets confused if you're working with a ridiculous number of profiles, like four or five.

At the same time, each element has a Filename property intended for just this situation: it stores the source file associated with the element.

So why not store the selected file name in the profile package's Filename property, and then read it from there instead of the current behind-the-scenes magic?

Having the XML file in the Filename property is useful anyway because it allows you to hit F12 and view the raw XML. Which is more fun that I'm making it sound.

So -- sound good?


/Uffe
My theories are always correct, just apply them to the right reality.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 10172
  • Karma: +329/-30
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Store profile file in package Filename property
« Reply #1 on: June 02, 2020, 03:16:37 pm »
I have not encountered any issues with the filenames of UML profiles recently.
And I do have a few MDG's with more than a trivial amount of UML profiles.

Have I been lucky so far?

Geert

Uffe

  • EA Practitioner
  • ***
  • Posts: 1669
  • Karma: +112/-11
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Store profile file in package Filename property
« Reply #2 on: June 02, 2020, 10:06:08 pm »
I have not encountered any issues with the filenames of UML profiles recently.
And I do have a few MDG's with more than a trivial amount of UML profiles.

Have I been lucky so far?

Well, possibly it's got better but I can't find anything in the release notes to say so.
Either way, the F12 thing would be pretty useful.

/U
My theories are always correct, just apply them to the right reality.