Book a Demo

Author Topic: MDG with Script in a ScriptGroup  (Read 6520 times)

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
MDG with Script in a ScriptGroup
« 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
  • Project Browser Group
  • Diagram Group
  • Model Search Group

Thanks for your help,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: MDG with Script in a ScriptGroup
« Reply #1 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.

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: MDG with Script in a ScriptGroup
« Reply #2 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
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: MDG with Script in a ScriptGroup
« Reply #3 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.

Paulus

  • EA User
  • **
  • Posts: 152
  • Karma: +0/-0
    • View Profile
Re: MDG with Script in a ScriptGroup
« Reply #4 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...


Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: MDG with Script in a ScriptGroup
« Reply #5 on: February 17, 2013, 12:26:44 am »
Hi,

thanks a lot for your valuable advice,

Kind regards,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: MDG with Script in a ScriptGroup
« Reply #6 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.
« Last Edit: February 17, 2013, 01:46:58 am by qwerty »