Book a Demo

Author Topic: Adding A State To A Region in a State Machine  (Read 2946 times)

Brian Wilkinson

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Adding A State To A Region in a State Machine
« 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