Book a Demo

Author Topic: BUG (?) add connector to stereotyped DiagramFrame  (Read 3235 times)

Hermes

  • EA User
  • **
  • Posts: 41
  • Karma: +0/-0
    • View Profile
BUG (?) add connector to stereotyped DiagramFrame
« on: December 04, 2009, 06:56:45 am »
Dear Sparx Crew,

During my (happy) experience on EA Automation Framework I have encoutered a problem when adding via EA Add-id a connector from a stereotyped DiagramFrame...

I used that code:

-------------
Code: [Select]
           try
            {
                EA.Connector newconn = (EA.Connector)link_from.Connectors.AddNew("", "dependency");
                newconn.SupplierID = link_to.ElementID;

                 newconn.Stereotype = link_stereotype;

                newconn.Update();
                link_from.Connectors.Refresh();

            }
            catch (Exception e)
            {
                ...
            }
-------------------

Note that the same code seems to works with a non stereotyped DiagramFrame...

and when applied to a stereotyped frame it raises an unhandled exception that cause an EA crash.

I don't know if it is really a EA bug, but KP suggested me to send a report about this strange behaviour.

I hope this helps.

/H

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: BUG (?) add connector to stereotyped DiagramFr
« Reply #1 on: December 04, 2009, 09:50:06 am »
Hi Hermes,

Did you ALSO send a formal bug report using the links below?  If not, then this, unfortunately, doesn't count.

This is just to let the rest of us know what's been reported.

Paolo
« Last Edit: December 04, 2009, 09:50:31 am by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!