Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Geert Bellekens on August 29, 2025, 05:07:16 pm

Title: Setting view specification as default diagram type
Post by: Geert Bellekens on August 29, 2025, 05:07:16 pm
I'm made a view specification extending the BPMN2.0::Business Process diagram.
(mainly because I can't make my own diagram type as the quicklinkers in the BPMN MDG technology limit the relations to the BPMN2.0::Business Process diagram)

I also have a business process block stereotype. I want this stereotype to be composite, and the default diagram toolbox on that diagram should be the one I defined in the view specification.

Unfortunately I cannot put the name of the view specification in the _defaultDiagramType field as that result in a simple UML Activity Diagram.

I can put BPMN2.0::Business Process in there, but then the toolbox contains all items instead of only the ones I specificed in the view specification.

Does anyone know a solution for this? For now I guess my workaround will be to add an EA-Matic script to automatically apply my view specification on new diagrams, if they are owned by my stereotype.

Geert