Book a Demo

Author Topic: RelatedElement - configuration instead of compartment shapes script  (Read 3427 times)

Mats Gejnevall

  • EA User
  • **
  • Posts: 98
  • Karma: +1/-0
    • View Profile
Add a feature to configure (instead of shape script) to show what elements one element have relations with in a compartment

E.g. this shape script could be configurable (or automatically generated)
Code: [Select]
if(HasProperty("Connector.StereoType", "decomposeInto"))
 {
   // Source of decomposition arrow
   if(HasProperty("Element.IsTarget"))
  {
      SetCompartmentName("Decomposes into");
  }
 //Target of decomposition arrow
  else
 {
SetCompartmentName("Is part of");
 }
AppendCompartmentText("#Element.Name#");
}