Book a Demo

Author Topic: Problem creating customized diagram in MDG  (Read 5499 times)

kepNCI

  • EA User
  • **
  • Posts: 127
  • Karma: +1/-0
    • View Profile
Problem creating customized diagram in MDG
« on: February 11, 2012, 08:17:28 am »
I have created an MDG technology guided for our requirements collections/tracking. I am having difficulty in creating a custom diagram. I think I am following the directions as documented in "Create Custom Diagram Profiles", but I must be missing something.

WHAT DOES WORK:
In the MDG profile I have defined two stereotypes that extends a Requirements <<metaclass>> element. One is for user requirements and the other for functional requiremetns. Each have defined company-specific attributes.

In the Toolbox profile, I have one metaclass for a toolbox, named "ToolBoxPage" and then one stereotype extended that includes attribute that link to the two custom requirement stereotypes in the MDG profile.

When I generate the MDG Technology file, using an MTS control file. The technology and toolbox are being created sucessfully.

WHAT IS NOT WORKING:
I am now trying to create an associated Custom Diagram for requirements which would use my customized toolset. The "customized" diagram is being generated in the MDG Technology and is selectable in the "Add Diagram" dialog under my technology. Problem is that when added as a new diagram, it is a normal class diagram with the "Profile" toolbox.  

So far, I cannot figure out what I am doing wrong. Here are the steps I did:
Step 1) Created a diagram profile name. Profile name, Package and diagram all have the same name as the MDG profile name, package and diagram, which is the value used as ID when creating the MDG technology.
Step 2) the <<stereotype>> class element, has no attributes. Not sure if this is required, but the Name of the elelment = the same value as used in the <<meteclass>> attribute, DiagramID (see step 3)
Step 3) the <<metaclass>> class element has a name of "Diagram_Custom" with attributes:
  Alias :string="Company User Requirements"
  DiagramID :string="CompUserReqmtDiagram"
  Toolbox :string=the value of the MDG Techmology ID
       (same as diagram profile name, package and diagram name).
Step 7: Saved the diagram as a profile and generated the MDG XML.

Not sure, I think I am getting something wrong when making the association to the built-in diagram type.

During step 3, I used a name = "Diagram_Custom" for requirements (based upon "Built-In Diagram Types" help. Since that did not seem to work, I tried using a name based upon the built-in types as documented in "Defining Child Diagram Types, that is, "Extended::Requirements". That did not appear to work either, so I tried to add an attribute:
_defaultDiagramType :string=Extended::Requirements
that did no work either.  
So I am out of ideas.

Any suggestions?

THANKS

P.S.
Are there two different sets of built-in diagram types? or is the documentation wrong in either "Built-in Diagram Types" or "Defining Child Diagram Types"?

kepNCI

  • EA User
  • **
  • Posts: 127
  • Karma: +1/-0
    • View Profile
Re: Problem creating customized diagram in MDG
« Reply #1 on: February 11, 2012, 08:53:32 am »
I corrected one mistake...
The >>Toolbox>>attribute for in the <<metaclass>> element was set to the MDG Technology Profile Package. It now is set to Toolbox Profile Package.  
Unfortunately I still have the original problem.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Problem creating customized diagram in MDG
« Reply #2 on: February 11, 2012, 10:46:49 pm »

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Problem creating customized diagram in MDG
« Reply #3 on: February 13, 2012, 10:45:42 am »
Quote
Problem is that when added as a new diagram, it is a normal class diagram with the "Profile" toolbox.
The "Profile" toolbox is displayed for any diagram created under a package with the «profile» stereotype. Try creating your diagram under a different package.

I don't think that's your whole problem though, because you are creating a class diagram when you want to create a custom diagram. It's difficult to troubleshoot without seeing your technology file. Could you e-mail it to Sparx Support please, and someone will be able to let you know what your problem is.
The Sparx Team
[email protected]