Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: MeryemAdb on July 17, 2014, 12:24:03 am
-
Hello,
I have a UML profile with some elements that have a composite diagram. When those elements are created (in EA_OnPostNewElement), I apply a post-treatment to rename the composite diagram and to add the element at the center of the diagram.
This works well unless I am creating the element through the quick linker. In that case, when my treatment is called, the composite diagram has not been created yet (apparently). But after I create and rename the composite diagram a default composite diagram is created. I think it is created when I click OK on the Properties window.
Is there a way to either switch off the creation of the "default" composite diagram in my post-treatment or to postpone this treatment until after the diagram is created?
-
I guess you would need to take the muddy path and somehow synch in your code with OnPostNewDiagram. This is probably going to be a PITA.
q.
-
It occured to me that I have complete control over my profile, so I can define my classes as not composite in the profile and then make them composite and create the adequate diagrams in my post-treatment.
So, problem avoided !
Thanks a lot anyways.