Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Jeff Hegedus on May 01, 2016, 10:11:58 am
-
Hi all, I've created an MDG with a base profile with my element stereotypes, a diagram profile and a toolbox profile. Everything is working as I expected. I would also like to have the built in "Class" and "Class Relationships" toolbox pages show up for my diagram. I thought I remembered reading about how to do this once upon a time but I can't remember the details and I can't find any reference to it on the help, here or through Google. Does anyone know if it is possible and where I might find a little guidance?
-
I'm not sure about adding existing built-in toolbox pages to your toolbox, but you can pretty easily recreate them from scratch.
The user wouldn't know the difference.
Geert
-
I concur. To my knowledge, there's no way to include built-in toolbox pages in your toolbox.
But you can easily recreate them by creating your own toolbox pages with the appropriate names, and populating them with the standard elements (http://sparxsystems.com/enterprise_architect_user_guide/12.1/building_models/elements_used_in_toolboxes.html) and connectors (http://sparxsystems.com/enterprise_architect_user_guide/12.1/building_models/connectors_used_in_toolboxes.html).
/Uffe
-
Ah, good call. Thanks gents.
-
I was able to get all of the elements in the Class tool page easily.
I had a bit more trouble with a few of the connectors. I used the profile helper to create the toolbox and abstraction, substitution and usage didn't show up in the built in types for connectors. I was able to add them using the attributes dialog and using UML::Abstraction, etc. as the name.
There are some visual differences between the pages I built and the ones provided by default.
First, my elements are in alphabetical order.
- Is there any way set the order?
Second, my connectors show up with the name next to the icon in a list,
like so
https://onedrive.live.com/redir?resid=1737A31617426660!78058&authkey=!AAxhFiTZCCVHIHI&v=3&ithint=photo%2cJPG (https://onedrive.live.com/redir?resid=1737A31617426660!78058&authkey=!AAxhFiTZCCVHIHI&v=3&ithint=photo%2cJPG)
instead of the way the default toolbox page displays like so
https://onedrive.live.com/redir?resid=1737A31617426660!78058&authkey=!AAxhFiTZCCVHIHI&v=3&ithint=photo%2cJPG (https://onedrive.live.com/redir?resid=1737A31617426660!78058&authkey=!AAxhFiTZCCVHIHI&v=3&ithint=photo%2cJPG)
Do you know of any way to change the display format?
-
When using the profile helpers there's a checkbox that you can use to show only icons.
The order of the elements is controlled using the standard attribute order (using Ctrl-UP or Ctrl-down) in the attributes dialog.
Geert
-
Hi, I found this thread because I was looking for a solution for the same issue. The helpers still do not support this. "But you can easily recreate them by creating your own toolbox pages with the appropriate names, and populating them with the standard elements and connectors." That is correct, but not for QuickLinker, at least from my point of view.
That's why my question is: is there a solution available in the meantime? V.
-
Hello,
If you want to use the QuickLinker, you must connect your elements in your MDG with your stereotyped connectors or with the standard connectors. The connectors will then also appear in the QuickLinker. However, this then no longer has anything to do with simple recreation ;D
In order to have my own toolboxes and some standard toolboxes, I have created a personal perspective.
Click on Perspective selection -> Settings -> Personal Sets -> New
Now you can add toolboxes and then simply switch between the toolboxes. Of course, the toolboxes do not open automatically when you open a diagram, but it saves a lot of time if you have to switch back and forth between a few toolboxes.
Hope that helps someone.