Hello community,
I created an Add-In, that can sort and structure ports and labels.
It is all working perfectly fine if I use the scripts on a class. But as soon as I use it on an instance there are errors.
I just found out that when initializing an instances there is lots of information lost.
For example the Style property of the DiagramObject of the class looks like this in the class:
Style: "HideIcon=0;DUID=B70E5936;LBL=CX=67:CY=13:OX=20:OY=1:HDN=0:BLD=0:ITA=0:UND=0:CLR=-1:ALN=0:ALT=0:ROT=0;"
In the instance it contains just this information:
Style: " DUID=D944900E;"
Furthermore, non of the ports on an instance have a name anymore, what is really annoying! Therefore, they have a prefix of the <<Stereotype>> in the label.
And if I add a port to the instance via "Rightclick" -> "Structural Elements.." EA does not recognize its Stereotype automatically, but I have to change it manually every single time.
I know its a lot of questions, but somehow I think they are all related to each other.
Does someone of you know, why there is all the infomation lost when creating an instance of a class?
Or maybe someone can even suggest a workaround?
I would be really glad for help, thanks very much in previous!
