Book a Demo

Author Topic: Override Default Toolboxes by MDG Toolbox  (Read 8804 times)

wzr

  • EA User
  • **
  • Posts: 29
  • Karma: +0/-0
    • View Profile
Override Default Toolboxes by MDG Toolbox
« on: December 11, 2021, 08:08:37 pm »
Hello,
i'm trying to override the default toolbox of some diagrams by a toolbox from our own MDG tech.
As stated in the UserGuide, I added this to the notes of the Toolbox Class Diagram in the MDG tech:
Code: [Select]
RedefinedToolbox=Extended::Requirements;
Unfortunately this information is totaly ignored when I publish this diagram as UML Profile. There is no effect in the xml.

I found some more Information about the expected result in this old topic:
https://sparxsystems.com/forums/smf/index.php?topic=18469.0

So I tried adding this to the Toolbox UML Profile between </Content> and </UMLProfile>, generated the MDG tech and imported it to our model.
Code: [Select]
<Options>
   <Option name="RedefinedToolbox" value="Extended::Requirements"/>
</Options>

Result: It works perfectly like expected  8)
BUT: Since I dont want to add this part to the UMLProfile manually after any change in the Toolbox, I would love to know why the Information in the Notes-Field is ignored.

Any ideas?

Thank you!

wzr

Jayson

  • EA User
  • **
  • Posts: 363
  • Karma: +1/-0
    • View Profile
Re: Override Default Toolboxes by MDG Toolbox
« Reply #1 on: December 12, 2021, 06:40:21 am »
Iirc, the problem is you need to add this to the notes of the profile as you save it rather than the profile diagram.

wzr

  • EA User
  • **
  • Posts: 29
  • Karma: +0/-0
    • View Profile
Re: Override Default Toolboxes by MDG Toolbox
« Reply #2 on: December 12, 2021, 07:10:45 pm »
Thank you Jayson.
I tried this way but it doesn'n work for me either.

The Userguide says quite clear to put it to the notes of the diagram:
Quote
To replace a system default Toolbox with one of your own:
Use one of the methods outlined here to display the 'Properties' dialog for your Toolbox Profile diagram, and display the 'General' tab.
Then, in the 'Notes' field type a RedefinedToolbox clause.
https://sparxsystems.com/enterprise_architect_user_guide/15.2/modeling/overriding_default_toolboxes.html

I'm using EA 15.1. Maybe its a bug in that version?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Override Default Toolboxes by MDG Toolbox
« Reply #3 on: December 12, 2021, 09:20:29 pm »
Uhm, IIRC I tried this some time ago by myself (after reading a post here on the forum). It seemed to work when you have a concrete diagram and placed this in the notes of that. I thought by myself that this is odd, to be polite. Brushed it out of my mind right afterwards...

q.