Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: adama on March 18, 2017, 12:22:52 am

Title: Profile: Inheritance of Base shape is unpredictable
Post by: adama on March 18, 2017, 12:22:52 am
Given:

What I want:
- Inherit cube shape from UML::Node or ZF::Location

What It get:
- Inherit shape from Archimate

What I've tried:

The more I think about this, I believe we have a design flaw in the inheritance chain.  My Location also inherits from ZF:Location, so there should be no preference between the two parent stereotypes.  I get the feeling that Sparx simply picks alphabetically from the inheritance chain, which is why we get the Archimate shape.  More reasonably, the stereotype should inherit from its base metaclass (UML::Node), not the other stereotypes that it specializes. Agree?

Thanks.