Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Helmut Ortmann on February 14, 2013, 01:20:13 am

Title: MDG with Script in a ScriptGroup
Post by: Helmut Ortmann on February 14, 2013, 01:20:13 am
Hello,

is it possible to define a MDG with a script in óne or more groups like

Thanks for your help,

Helmut
Title: Re: MDG with Script in a ScriptGroup
Post by: qwerty on February 14, 2013, 02:09:57 am
I haven't done that, but the MDG creation wizard offers Scripts as option. So I guess it should be somehow possible.

q.
Title: Re: MDG with Script in a ScriptGroup
Post by: Helmut Ortmann on February 14, 2013, 02:25:14 am
Hello,

the MDG creation wizards creates a group with the name of the MDG and the selected scripts inside the group.

Because I want to have the script in the context menue I have to copy them manually in the desired groups.

Maybe it's only possible by hand or SQL.

Kind regards,

Helmut
Title: Re: MDG with Script in a ScriptGroup
Post by: Aaron B on February 14, 2013, 12:28:14 pm
Hi Helmut,

Not currently supported.  Scripts included in an MDG Technology currently always show in a "Normal" script group type only.
Title: Re: MDG with Script in a ScriptGroup
Post by: Paulus on February 16, 2013, 11:47:40 pm
I ran into this some time ago ->

I ended up exporting the scripts from the menu: Project - Model import/export - Export reference data, and subsequently importing these as a second manual step when installing the MDG.

This will put the scipts in the correct location, the obvious drawback being the additional manual step and also, this will export/import -all- scripts from your MDG project...

Title: Re: MDG with Script in a ScriptGroup
Post by: Helmut Ortmann on February 17, 2013, 12:26:44 am
Hi,

thanks a lot for your valuable advice,

Kind regards,

Helmut
Title: Re: MDG with Script in a ScriptGroup
Post by: qwerty on February 17, 2013, 01:46:27 am
You can probably also use EA_OnPreActivateTechnology in order to check/load the scripts from a dedicated resource automatically.

q.