Book a Demo

Author Topic: problem with generate MDG file  (Read 4302 times)

PiotrS24

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
problem with generate MDG file
« on: January 27, 2020, 06:28:38 am »
HI

I have a problem with the correct generation of the MDG file.
I have to do something wrong because when I try to drag the class from the toolbar the message: No profile found with id 'PRCMDG'
Command: PRCMDG :: PRC_Cause (UML :: Class)
Both starting from the wizard or from the example from the page
https://community.sparxsystems.com/tutorials/1239-defining-quicklinkers-using-enterprise-architect-14
I'm going through the wizard by building the MDG file and when I import it and try to use the class I got this error
the error is described here https://www.sparxsystems.com/enterprise_architect_user_guide/15.0/modeling/toolbox_profiles.html
but I can't deal with it
in summary, if on a working example from the tutorial I take the generated file by the tutorail author everything works
if I try to create such a file myself, I have the problem described - I do something wrong, but after a few hours of looking, I have no idea what.

I am asking for help because I need to do MDG model and this problem stops me very much.

greetings Piotr

my mts file looks like this:
<MDG.Selections model = "C: \ Users \ piotr \ Desktop \ prc \ Metamodel Quicklink Defintions Demo MDG.eapx">
<Technology id = "prc" name = "prc" version = "1" notes = "prc" filename = "C: \ Users \ piotr \ Desktop \ prc \ prc.xml" />
<Profiles directory = "C: \ Users \ piotr \ Desktop \ prc" files = "PRCMDG-Profile.xml, PRCMDG-Stereotyped Relationships.xml" />
<TagVals tags = "CauseDetails, DateIdentified" />
<DiagramProfile directory = "C: \ Users \ piotr \ Desktop \ prc" files = "PRCMDG.xml" />
<UIToolboxes directory = "C: \ Users \ piotr \ Desktop \ prc \ toolbox" files = "PRCMDG.xml" />
</MDG.Selections>

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: problem with generate MDG file
« Reply #1 on: January 27, 2020, 03:34:04 pm »
Piotr,

Start with a clean model (from the wizard) with a single stereotype.
Then generate an MDG from that and see if that works.

Only then start expanding step by step, and make sure you test the results intermediatly.

There could be any number of things wrong with your profile, but we wouldn't be able to guess, even if you included all the files.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: problem with generate MDG file
« Reply #2 on: January 27, 2020, 05:37:07 pm »
You have spaces in you path (around the "\") which should not be there.

q.

PiotrS24

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: problem with generate MDG file
« Reply #3 on: January 30, 2020, 06:07:56 pm »
Hi

hm
I don't know how it happened, but the day before yesterday I tried to regenerate an example from the wizard contained in EA and it worked
I will say that I was surprised why it worked, I checked several times before.

However, if I try to add it manually, it doesn't work
there are two problems
1) when I open the diagram, the toolbox associated with the diagram does not appear by default
2) it is impossible to download the entity from the toolbox named "toolbox" because the error is described
here is the link to download the compressed EA file
https://drive.google.com/file/d/1FVren52k1QpTIXtgNobBND-v7cdnVFqb/view?usp=sharing

If it could open and say what I kicked there, I would be grateful

Piotr

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: problem with generate MDG file
« Reply #4 on: January 30, 2020, 06:25:06 pm »
You really have to be very precise when doing UML profiles and MDG technologies.

All of the bits and pieces and tied together using strings, and if you have a single spelling error then it doesn't work.
You model is not exactly an example of precise spelling. I see you have a meatmodel (metamodel?) and a tooblox (toolbox?) ;D

Also use the option "Edit with profile helper" and don't start manually messing around with the attributes.

In your case you have set toolbox to "afToolbox" in your diagram metaclass, but there is no such thing as an "afToolbox" in your model.
Using the profile helper you have a dropdown for the toolbox, so it's harder to make mistakes.

Geert


PiotrS24

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: problem with generate MDG file
« Reply #5 on: January 31, 2020, 07:19:44 pm »
Yes,
I know, right :)

This problem was that I was exporting a diagram, not a package,
after reading the documentation more carefully, I made a mistake

At the moment I am trying to make a second toolbox, but now I will check everything if I fail, I will write again


PiotrS24

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: problem with generate MDG file
« Reply #6 on: February 06, 2020, 06:50:37 pm »
Hi
The problem was with the naming of the diagrams
now the name of the toolbox diagram, the name of the exported toolbox diagram (profile name) and the name of the toolbox in the diagram must be common
for me - topic is closed