Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Brian Wilkinson on October 03, 2008, 11:46:28 pm
-
When I add a state to a region using the following code,
EA.Element element = regionElement.Elements.AddNew("state1", "State") as EA.Element
I get the com exception "Invalid parent for State (Region)"
I've also tried adding it to the package and then setting the parentID to the regionElements ID but I get the exception
UML rules do now allow this relationship.
Can anyone help.
Brian