Book a Demo

Author Topic: Scripts within an MDG  (Read 7006 times)

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Scripts within an MDG
« on: December 12, 2020, 02:10:47 am »
Hi All

I believe this may have been posted before, but when generating an MDG using an MTS file it is possible to include scripts which is fine. However when the MDG is imported into a repository, all scripts are lumped together in one group, meaning that if the scripts were written as Browser or Diagram scripts they have now lost this category and cannot be invoked via the Browser / Diagram.

I am using the latest build of EA version 15.2

Is there a after import fix or work around?

Phil
Models are great!
Correct models are even greater!

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Scripts within an MDG
« Reply #1 on: December 12, 2020, 02:27:30 am »
Not that I know of.

I stopped putting them in the MDG and use only refdata import/export.

I even build myself a tool to select the scripts I need from a refdata file: https://github.com/GeertBellekens/EARefDataSplitter/releases/tag/v1.0.1.0
(automatically including included scripts)

Geert

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Re: Scripts within an MDG
« Reply #2 on: December 12, 2020, 02:33:06 am »
Thanks Geert

I too have used the Reference Data Export / Import ... but wanted to only export / import a selection of scripts ... your script looks to suit my requirements and I am going to check it out.

All the best

Phil

Models are great!
Correct models are even greater!

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Re: Scripts within an MDG
« Reply #3 on: December 12, 2020, 02:52:54 am »
Hi Geert

I have had a look at the script in Visual Studio and there is a reference to BrightIdeasSoftware for the TreeListView.

I have done a Google Search but all I can find is some references on how to use the TreeListView and a Maths Calculus Software from www.brightideasooftware.com

Where did you get this control from or is it available on your github so I can resolve the reference?

Thanks

Phil
Models are great!
Correct models are even greater!

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Scripts within an MDG
« Reply #4 on: December 12, 2020, 03:12:15 am »
Phil,

You can download the executable from here https://github.com/GeertBellekens/EARefDataSplitter/releases/tag/v1.0.1.0

But if you want to play with the code, you need the ObjectListview.Offical nuget package
(http://objectlistview.sourceforge.net/cs/index.html)

Geert

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Re: Scripts within an MDG
« Reply #5 on: December 12, 2020, 03:24:50 am »
Perfect! Thanks again Geert
Models are great!
Correct models are even greater!

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1353
  • Karma: +121/-10
  • Its the results that count
    • View Profile
Re: Scripts within an MDG
« Reply #6 on: December 17, 2020, 09:15:11 am »
Thanks guys that's really useful to know
Happy to help
:)