Author Topic: MDG Technology - Stereotype - Linked Document  (Read 579 times)

rvi1cob

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
MDG Technology - Stereotype - Linked Document
« on: March 06, 2017, 05:06:32 am »
Hello Everyone,

I am looking for a possible option for the below scenario.

I have a set of stereotypes defined in my MDG technology. Each of it has to be associated with its own "Linked document" template. I created as set of linked documents along with the MDG Technology.

After the technology is imported:
Is there any way when I create an element of the defined stereotype, the linked document is associated by default to a linked document template?

The reason is I have multiple stereotypes and each should use its own linked template. It would be weary to go through a list of document template otherwise.

Regards
Vijay

Uffe

  • EA Practitioner
  • ***
  • Posts: 1072
  • Karma: +81/-5
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: MDG Technology - Stereotype - Linked Document
« Reply #1 on: March 06, 2017, 07:57:23 pm »
Hi Vijay,

First off, this question is better posted in the Automation Interface, Add-Ins and Tools forum.

In answer to your question, I don't think there's a way to achieve that using just MDG Technologies. You can do it by building an Add-In, which responds to the EA_OnPostNewElement event by checking the stereotype of the newly created element and creating the appropriate linked document.

Note that creating a linked document through the API requires loading the document from a file, so you'd need your template stored in the file system -- not in the MDG Technology or the EA project -- for this approach to work.

HTH,


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

Simon M

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 6200
  • Karma: +47/-5
    • View Profile
Re: MDG Technology - Stereotype - Linked Document
« Reply #2 on: March 07, 2017, 08:41:36 am »
You can do what you are wanting by adding a single element pattern to the toolbox instead of a stereotype.

http://sparxsystems.com/enterprise_architect_user_guide/13.0/modeling_tools/toolbox_profiles.html
Simon

support@sparxsystems.com