Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Dave_Bullet on December 12, 2008, 01:48:52 pm
-
Here's what I want to do.
To improve model integrity, I want to prevent a user from adding an element to a diagram that doesn't belong to the default toolbox for the diagram.
I know how to inspect / check the type of element being added in the the SDK, but not about the toolbox linked to the diagram to check membership of the to be newly created element or connector.
Is there any support for:
1. Identifying the toolbox selected for the diagram
2. Identifying which toolbox belongs to the diagram
3. Checking the defined stereotypes (elements and connectors) of the toolbox that belongs to the diagram
The above 3 functions will allow me to compare the stereotype of the new element / connector with those defined on the default toolbox for the diagram - thereby allowing / disallowing the element create.
Thanks,
David.