Blog Post

Import Model Patterns through Add-in

In this article we will brief how to share a model pattern to a large group. In general model pattern can be included along with MDG definition file and can be used. There are certain limitations in this approach while importing MDG to a shared model and many people use it. To overcome we decided to create an external program and to refer Pattern and share the installer to users.

Assumption:

The reader has a fairly good understanding of creating an Enterprise Architect Addin or writing an application that can use Enterprise Architect. Refer to below references if you need more information on these

  • To create an Addin from scratch refer this link 
  • Download Skeleton for creating an Add-In using the C# Language from this link

Steps to follow:

  • Create & Save custom pattern as XML (Export as XMI)
  • Create MDG file
  • Create an external project
  • Reuse Patterns from Model Wizard Window

Create MDG File:

Create MDG file for patterns by copying the below syntax

<?xml version=”1.0″ encoding=”windows-1252″?>

<MDG.Technology version=”1.0″><Documentation id=”SSIN” name=”Sparx Technology” version=”1.0.0″ notes=”Sparx Systems India Patterns Sample”/><Logo><Image type=”bitmap” xmlns:dt=”urn:schemas-microsoft-com:datatypes” dt:dt=”bin.base64″>

<MDG.Technology>

<ModelTemplates>

<Model name=”Motivation Layer” description=”Create Motivation Layer.” location=”Motivation Layer.xml” default=”” icon=”34″ filter=””/>

<Model name=”Business Layer” description=”Create Business Layer.” location=”Business Layer.xml” default=”” icon=”34″ filter=””/>

</ModelTemplates>

</MDG.Technology>

Create an external project

Create an external program. Add the XMI and MDG Definition as resources. Use EA_OnInitializeTechnologies to pass an MDG Technology to Enterprise Architect for loading. This event occurs on Enterprise Architect startup. Return your technology XML to this function and Enterprise Architect loads and enables it. Refer the below code

#region MDG Load

//Load MDG Files
public object EA_OnInitializeTechnologies(EA.Repository Repository)
{

string sTechnologyXML = Properties.Resources.Sparx_Technology;
return sTechnologyXML;

}

#endregion

Use EA_OnRetrieveModelTemplate event occurs when a user executes the Add a New Model Using Wizard command. Below code refers to Motivation Layer & Business Layer XMl referred in resources of the external project.

public virtual string EA_OnRetrieveModelTemplate(EA.Repository Repository,string sLocation)
{

string sTemplate = “”;
try
{

switch (sLocation)
{

case “Motivation Layer.xml”:
sTemplate = global::SparxAddin.Properties.Resources.Motivation_Layer;
break;
case “Business Layer.xml”:
sTemplate = global::SparxAddin.Properties.Resources.Business_Layer;
break;

}

}
catch (Exception ex)
{
}
return sTemplate;

}

Reuse Patterns from Model Wizard Window

Install the Add-In. After installation, Click the Specialize (Extend in Enterprise Architect 13.5) | Add-In | Manage to verify whether the Add-In installed properly. Create a model try to add the Model Wizard.

Note: To display custom patterns add technology to custom perspective or click show all perspectives

67 Comments

  1. When you’re trying to spy on someone’s phone, you need to make sure the software isn’t found by them once it’s installed.

    Reply
  2. Wow, amazing weblog structure! How lengthy have you ever
    been running a blog for? you made blogging look easy.
    The overall look of your web site is great,
    as well as the content material! You can see similar here
    najlepszy sklep

    Reply
  3. Wow, fantastic blog format! How long have you ever been running a blog for?
    you made running a blog look easy. The whole look of your website is fantastic, as neatly as the content
    material! You can see similar here e-commerce

    Reply
  4. I used to be able to find good advice from your blog
    posts. I saw similar here: Sklep internetowy

    Reply
  5. Wow, fantastic blog structure! How lengthy have
    you been blogging for? you made running a blog look easy.

    The full look of your site is wonderful, let alone
    the content! You can see similar here e-commerce

    Reply
  6. Wow, marvelous weblog format! How lengthy have you
    ever been blogging for? you made blogging look easy.

    The total glance of your website is fantastic, as well as
    the content! You can see similar here e-commerce

    Reply
  7. It’s very interesting! If you need help, look here: ARA Agency

    Reply
  8. Thanks for sharing. I read many of your blog posts, cool, your blog is very good.

    Reply
  9. Hi! Do you know if they make any plugins to help with SEO?
    I’m trying to get my site to rank for some targeted keywords but
    I’m not seeing very good results. If you know of any
    please share. Thanks! You can read similar article here: AA List

    Reply
  10. Hello! Do you know if they make any plugins to
    help with Search Engine Optimization? I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very good
    results. If you know of any please share. Appreciate it!

    I saw similar article here: Backlink Building

    Reply
  11. Hey! Do you know if they make any plugins to help
    with SEO? I’m trying to get my blog to rank for
    some targeted keywords but I’m not seeing very
    good success. If you know of any please share. Appreciate it!
    You can read similar text here: GSA Verified List

    Reply
  12. Wow, awesome blog structure! How long have you ever been running a blog for?
    you made running a blog look easy. The overall look
    of your website is wonderful, let alone the content!
    You can see similar here najlepszy sklep

    Reply
  13. Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.

    Reply
  14. It’s very interesting! If you need help, look here: link building

    Reply
  15. Howdy! Do you know if they make any plugins to assist with
    SEO? I’m trying to get my website to rank for some targeted keywords but
    I’m not seeing very good success. If you know of any please share.
    Many thanks! You can read similar article here: Choose escape room

    Reply
  16. I’ll right away grab your rss feed as I can not in finding your email subscription link or e-newsletter service. Do you have any? Please permit me understand in order that I may just subscribe. Thanks!

    Reply
  17. Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?

    Reply
  18. I absolutely love your website.. Pleasant colors & theme. Did you create this website yourself? Please reply back as I’m attempting to create my very own blog and would like to know where you got this from or just what the theme is called. Thanks.

    Reply
  19. Wonderful, what a blog it is! Thhis webpage gives helpful information to us, keep it up.

    Reply
  20. Hello, i read your blog frrom time to time and i own a similar one and
    i was jut curious if you get a lot of spam remarks? If so how do you prevent it, any
    plugin or anything youu can suggest? I get so much ltely
    it’s driving me crazy sso any supportt is very much appreciated.

    Reply
  21. First ooff I would like to ssay excellent blog! I had
    a quick quesstion in which I’d like to ask if yoou do not mind.
    I was curious to know how you center yourself and clear your mind prior to
    writing. I’ve had difficulty clearing my mind in getting my ideas out.
    I do take pleasure in writing however it just seems like the first 10
    to 15 minutes are usually wasted just trying to figure out how to begin. Any suggestions
    or hints? Thanks!

    Reply
  22. Hey there! Do you know if they make any plugins to help with SEO?

    I’m trying to get my site to rank for some targeted keywords but
    I’m not seeing very good results. If you know of any please share.
    Cheers! I saw similar blog here

    Reply
  23. whoah this blog is great i really like reading your articles.
    Keep up the good work! You recognize, many individuals are
    searching round for this info, you can help them
    greatly.

    Reply
  24. I have been surfing on-line more than 3 hours these
    days, yet I never found any fascinating article like yours.
    It’s lovely worth enough for me. Personally, if all site owsners and bloggers mase just right content material
    as you probably did, the web will likely be a lot more useful
    than eever before.

    Reply
  25. Heya this is kinda of off topic but I was wondering if blogs use WYSIWYG editors or if you have to manually code with HTML.
    I’m starting a blog soon but have no coding experience so I wanted to get guidance from someone with experience.
    Any help would be greatly appreciated!

    My web page visit this site right here

    Reply
  26. Hello there, just became alert to your blog through Google, and found that it is really informative.
    I’m gonna watch out for brussels. I’ll appreciate if you
    continue this in future. Many people will be
    benefited from your writing. Cheers! Lista escape roomów

    Reply
  27. Very interesting points you have mentioned, regards for posting.?

    Reply
  28. Excellent blog post. I certainly love this website. Keep writing!

    Reply
  29. Your style is very unique compared to other people I’ve read stuff from.
    I appreciate you for posting when you’ve got the opportunity, Guess I will just book mark this web site.

    Reply
  30. Can I simply say what a comfort to find someone who actually knows what they’re talking about online. You definitely understand how to bring an issue to light and make it important. A lot more people have to read this and understand this side of your story. I can’t believe you aren’t more popular since you surely possess the gift.

    Reply
  31. Aw, this was a really nice post. Taking a few minutes and actual effort to create a top notch article… but what can I say… I hesitate a lot and don’t seem to get nearly anything done.

    Reply
  32. I blog often and I truly thank you for your information. This article has truly peaked my interest. I will take a note of your blog and keep checking for new details about once per week. I opted in for your RSS feed as well.

    Reply
  33. You should be a part of a contest for one of the most useful blogs on the net. I most certainly will highly recommend this web site!

    Reply
  34. Link exchange is nothing else however it is simply
    placing the other person’s weblog link on your page at suitable place and
    other person will also do same in favor of you.

    My web page; why not check here

    Reply
  35. Everyone loves what you guys are usually up too.

    This sort of clever work and reporting! Keep up the superb works
    guys I’ve you guys to my own blogroll.

    my webpage; these details

    Reply
  36. Thanks for sharing. I read many of your blog posts, cool, your blog is very good.

    Reply
  37. Woah! I’m really enjoying the template/theme of this blog.
    It’s simple, yet effective. A lot of times it’s hard to get that “perfect balance” between superb usability and
    appearance. I must say you have done a awesome job with this.
    Additionally, the blog loads super fast for me on Chrome.
    Excellent Blog!

    Take a look at my site see this page

    Reply
  38. Normally I don’t learn article on blogs, but I wish to say that this write-up very forced me
    to try and do it! Your writing taste has been amazed me.
    Thank you, very nice post.

    my web site check out here

    Reply
  39. Thanks for sharing. I read many of your blog posts, cool, your blog is very good. https://www.binance.com/de-CH/register?ref=UM6SMJM3

    Reply
  40. Your point of view caught my eye and was very interesting. Thanks. I have a question for you.

    Reply
  41. You are so cool! I do not believe I’ve truly read through something like this before. So great to discover somebody with unique thoughts on this subject. Really.. many thanks for starting this up. This site is something that’s needed on the internet, someone with some originality.

    Reply
  42. You are so awesome! I do not think I’ve truly read through something like this before. So nice to find another person with some genuine thoughts on this issue. Seriously.. thanks for starting this up. This web site is something that is needed on the web, someone with a bit of originality.

    Reply
  43. I’m now not sure where you’re getting your information, however great topic.
    I must spend some time finding out much more or understanding more.
    Thank you for fantastic info I was looking for this info for my mission.

    Feel free to visit my web site … check here

    Reply
  44. with thanks with regard to the particular article i have been on the lookout with regard to this kind of advice on the net for sum time these days and so with thanks

    Reply
  45. Incorporating Sugar Protector into my everyday program has actually
    been a game-changer for my total wellness. As a person that already
    focuses on healthy eating, this supplement has actually supplied an included increase
    of protection. in my energy degrees, and my desire for undesirable snacks so effortless can have such a profound influence on my day-to-day live.

    Reply
  46. Incorporating Sugar Defender right into my day-to-day
    regimen overall wellness. As someone who prioritizes healthy and balanced
    consuming, I value the extra protection this supplement offers.

    Given that beginning to take it, I’ve noticed a significant improvement in my
    power degrees and a considerable decrease in my
    need for unhealthy snacks such a such a profound influence
    on my day-to-day live.

    Reply
  47. For years, I’ve fought uncertain blood sugar swings that left me really feeling drained and sluggish.
    However given that including Sugar my power levels are
    currently secure and regular, and I no more hit a wall in the mid-days.
    I appreciate that it’s a gentle, all-natural approach that doesn’t come with any kind of undesirable adverse effects.

    It’s truly changed my day-to-day live.

    Reply
  48. For several years, I’ve fought uncertain blood glucose swings that
    left me feeling drained pipes and lethargic.
    But because integrating Sugar Protector right into my routine, I have actually
    observed a substantial renovation in my overall
    energy and security. The dreaded mid-day thing of
    the past, and I appreciate that this natural
    remedy attains these outcomes with no undesirable
    or adverse responses. honestly been a transformative discovery for me.

    Reply
  49. Good day! Do you know if they make any plugins to assist with SEO?
    I’m trying to get my blog to rank for some targeted keywords but I’m not
    seeing very good gains. If you know of any please
    share. Thank you! You can read similar blog here: Wool product

    Reply
  50. Hi, I do think this is an excellent website. I stumbledupon it 😉 I will return once again since i have saved as a favorite it. Money and freedom is the best way to change, may you be rich and continue to guide others.

    Reply
  51. Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.

    Reply
  52. Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.

    Reply
  53. Starting Very Own Web Page Using WordPress 주소주라

    Reply
  54. sugar defender ingredients For several years, I’ve fought uncertain blood sugar level swings that left me
    feeling drained and sluggish. But since including Sugar my energy degrees are currently secure and constant, and I no more strike a wall in the
    mid-days. I appreciate that it’s a gentle, all-natural technique
    that does not come with any undesirable adverse effects.
    It’s truly transformed my daily life.

    Reply
  55. Web Advertising For Clothes Airer Business 주소주라

    Reply
  56. Right here is the perfect website for anyone who really wants to find out about this topic. You understand a whole lot its almost tough to argue with you (not that I personally will need to…HaHa). You definitely put a fresh spin on a subject which has been discussed for years. Wonderful stuff, just great.

    Reply
  57. I could not refrain from commenting. Well written!

    Reply
  58. Your point of view caught my eye and was very interesting. Thanks. I have a question for you.

    Reply
  59. Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.

    Reply
  60. Thanks for sharing. I read many of your blog posts, cool, your blog is very good.

    Reply
  61. I’m impressed, I must say. Seldom do I encounter a blog that’s both educative and entertaining, and let me tell you, you have hit the nail on the head. The issue is something not enough people are speaking intelligently about. Now i’m very happy I stumbled across this during my search for something regarding this.

    Reply
  62. I’m amazed, I must say. Seldom do I encounter a blog that’s both educative and entertaining, and without a doubt, you’ve hit the nail on the head. The issue is an issue that not enough people are speaking intelligently about. I’m very happy I came across this during my search for something concerning this.

    Reply

Leave a Comment

*