Author Topic: Pattern not found in model's resources  (Read 6036 times)

wingedhorse

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Pattern not found in model's resources
« on: February 29, 2012, 12:59:23 pm »
Whenever I try to add a GoF pattern to a (new) class diagram, I get this error: "Pattern not found in model's resources"
Am I missing something? What could that be? Do I need to specifically install something for this to work?

davisr_uk

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Re: Pattern not found in model's resources
« Reply #1 on: April 18, 2012, 08:23:22 pm »
I had the same problem. It would seem that since v9.3 the patterns are not included in the model's resources. You need to import them manually before you can make use of them. You can find them at: http://www.sparxsystems.com/resources/developers/uml_patterns.html. Unzip the file to any location then go to your model in EA and open the resources view. Right click on UML Patterns and select Import UML Pattern. Find the directory where you unpacked the xml files and select the pattern you want. Once imported you will be able to use the GoF patterns from Toolbox.

rvega

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Pattern not found in model's resources
« Reply #2 on: May 09, 2012, 07:46:31 am »
you mention the "resources view".  I simply cannot find this view in ea9.3.  
The documentation is no help...

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Pattern not found in model's resources
« Reply #3 on: May 09, 2012, 09:19:39 am »
It's called the Resources window. Display it by pressing (Alt+6) or selecting View | More Project Tools | Project Resources.

For information on Patterns (Design Patterns) in the Help, see Standard UML Models | Design Patterns and its child topics.
« Last Edit: May 09, 2012, 10:16:01 am by RoyC »
Best Regards, Roy

rvega

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Pattern not found in model's resources
« Reply #4 on: May 09, 2012, 10:05:25 am »
I purchased Corporate Edition about a month ago.  The version is 9.3.931.

Strange things:
- Alt+6 does nothing...
- "View | More Project Tools | Project Resources" does not exist

I've been very frustrated because I've encountered several occurrences in which the documentation speaks to options that i just don't see.  I angered at what i believed to be a documentation lag.

Any Suggestions on how to remedy my situation?


RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Pattern not found in model's resources
« Reply #5 on: May 09, 2012, 10:29:30 am »
Yes, go to the Start Page and click on the Interface Customization Wizard option (top center of the page). Click on the Next button, and click on the Complete option. Then click Next, Next, and Finish.

For further information on this dialog, click on the Help button on the dialog.

The menu options and shortcut keys will be there and will work. What has happened is this: when you first opened EA after installation, the Complete option somehow got switched to the menu command set for a specific work area, so a lot of the menu options were hidden as being of no relevance to that work area.

When you have used EA for a while and you know what areas of functionality you use and don't use, you can come back to this dialog and select either one of the standard work area command sets or create your own, to tailor EA to better suit your work methods.

« Last Edit: May 09, 2012, 10:30:52 am by RoyC »
Best Regards, Roy

rvega

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Pattern not found in model's resources
« Reply #6 on: May 09, 2012, 10:39:41 am »
Thank you very much...I appreciate your knowledge!

Stephane B

  • EA User
  • **
  • Posts: 31
  • Karma: +0/-0
    • View Profile
Re: Pattern not found in model's resources
« Reply #7 on: July 19, 2013, 12:14:08 am »
I have the same problem except that I created an MDG Technology that includes patterns and a toolbox.

Still when I drag my patterns from my toolbox : "Pattern not found in model's resources".

I wonder why is that so. Does that mean the patterns should be installed in the model/project and their presence in the MDG technology not be sufficient? In that case what the use of including a pattern in an MDG tech ?

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Pattern not found in model's resources
« Reply #8 on: July 19, 2013, 09:15:35 am »
Check that you are searching for the correct name. Your toolbox profile will include an attribute with a name like "TechID::PatternName(UMLPattern)". Open your technology in a text editor. On the second line you should see something like:
Code: [Select]
<Documentation id="TechID" ...Then search the technology file for the text "UMLPattern name=" and you should see something like:
Code: [Select]
<UMLPattern name="PatternName" ...Check that your toolbox profile attribute matches the names. It is case-sensitive.
The Sparx Team
[email protected]

Stephane B

  • EA User
  • **
  • Posts: 31
  • Karma: +0/-0
    • View Profile
Re: Pattern not found in model's resources
« Reply #9 on: July 19, 2013, 06:12:31 pm »
Great, it works! Many thanks.

In my toolbox definition I had PatternGroup::PatternName(UMLPattern), which is the right way when I import patterns and toolboxes model wide. But in order to have my patterns available up to the MDG Tech scope, it's indeed TechID::PatternName(UMLPattern).
The id, not even the name of the MDG Tech. I wouldn't have imagined that.

Some of my patterns included images that I lost in the process though...
« Last Edit: July 19, 2013, 06:13:10 pm by StephaneB »