Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: wingedhorse 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?
-
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.
-
you mention the "resources view". I simply cannot find this view in ea9.3.
The documentation is no help...
-
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.
-
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?
-
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.
-
Thank you very much...I appreciate your knowledge!
-
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 ?
-
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:
<Documentation id="TechID" ...
Then search the technology file for the text "UMLPattern name=" and you should see something like:
<UMLPattern name="PatternName" ...
Check that your toolbox profile attribute matches the names. It is case-sensitive.
-
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...