Book a Demo

Author Topic: Scripting profile & MDG generation  (Read 7629 times)

Adam@Schneider

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Scripting profile & MDG generation
« on: October 10, 2014, 03:37:13 pm »
I'm working on an MDG, the number of profile packages are growing because I am restricting tools by creating multiple custom toolboxes to apply to different diagram types.

When generating the MDG you need to go through and manually save each packge as a UML profile. I cant see anything in the scripting API to automate this?

I'd love to be able to write a quick scrip that iterates through all profile packages and saves them to XML. Bonus points if I can generate an MDG from an MTS file using this too.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Scripting profile & MDG generation
« Reply #1 on: October 10, 2014, 08:09:25 pm »
There is nothing :( Saving must be done manually. However, you can create the MDG yourself. It's simply the different profiles stitched together. Have a look here: http://community.sparxsystems.com/community-resources/518-90improved-mdg-creation

q.

Adam@Schneider

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Re: Scripting profile & MDG generation
« Reply #2 on: October 10, 2014, 08:16:30 pm »
Cool, if is that simple I can at least skip the fast next clicking when making the MDG.

Still the most tedious part is exporting the profiles, I have put the export filename for each in the notes, which appears under the file entry so I copy and paste note to file, then click export. Doing that half a dozen times is very annoying.

What would actually be even better, is if the MTS specified packages rather than XML files, and the MDG creation process would then go through and do your package export for you (then give me an automation interface for the MDG creation).


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Scripting profile & MDG generation
« Reply #3 on: October 10, 2014, 09:04:06 pm »
You're absolutely right, but the time for responsive and useful feature additions in EA is gone since a long time. So I gave up asking for it (instead they implemented some wizard I never used). Feel free to send a feature request - but don't hold your breath :-/

q.