Book a Demo

Author Topic: Custom toolbox is not opening for diagram  (Read 4428 times)

Kristofer

  • EA User
  • **
  • Posts: 52
  • Karma: +0/-0
    • View Profile
Custom toolbox is not opening for diagram
« on: March 08, 2018, 11:13:10 pm »
Hi!

I have created an MDG Technology including custom stereotypes, diagram and toolbox, and imported this technology in a project. When creating a new diagram, I can select my custom diagram type, but when I open the diagram, the custom toolbox is not opened. I have to select it manually (so it is there and working).

I checked the xml file for the MDG:
Code: [Select]
<DiagramProfile>
...
<Property name="toolbox" value="NNN"/>
...
</DiagramProfile>
<UIToolboxes>
...
<Documentation id="3F040576-9" name="NNN" version="1.0" notes="My custom diagram"/>
...
</UIToolboxes>

It seems to be correct, but it is not working. Any ideas why?

Arshad

  • EA User
  • **
  • Posts: 291
  • Karma: +21/-1
    • View Profile
Re: Custom toolbox is not opening for diagram
« Reply #1 on: March 08, 2018, 11:34:54 pm »
Hi Kristofer

Change the name of diagram profile stereotyped package with same name as toolbox and regenerate MDG .

or

A dirty fix is try changing the name property of documentation under DiagramProfile to NNN and check.

Code: [Select]
<DiagramProfile>
<Documentation   [b]name="NNN" [/b]version="1.0" notes=""/>   Give the tool box name here in diagram
...
<Property name="toolbox" value="NNN"/>
...
</DiagramProfile>
<UIToolboxes>
...
<Documentation id="3F040576-9" name="NNN" version="1.0" notes="My custom diagram"/>
...
</UIToolboxes>


Arshad
« Last Edit: March 08, 2018, 11:38:28 pm by Arshad »

Kristofer

  • EA User
  • **
  • Posts: 52
  • Karma: +0/-0
    • View Profile
Re: Custom toolbox is not opening for diagram
« Reply #2 on: March 08, 2018, 11:52:48 pm »
I started to play around with this and it seems that the problem is when you have a a profile element with the same name as the toolbox.

Code: [Select]
<UMLProfile>
...
<Stereotype name="NNN">
...
</UMLProfile>

<DiagramProfile>
...
<Property name="toolbox" value="NNN"/>
...
</DiagramProfile>

<UIToolboxes>
...
<Documentation id="3F040576-9" name="NNN" version="1.0" notes="My custom diagram"/>
...
</UIToolboxes>

It also worked to change the name property as you said.