I am starting to use Python for automating Enterprise Architect. I am unable to change the sequencing of an element with the code below. What am I doing wrong? What is the good way of using DiagramObjects.Sequence?
TestDiagEl=diagram.DiagramObjects.AddNew(<validlocation>,"ArchiMate_Capability")
TestDiagEl.Sequence="99"
TestDiagEl.Update()
TestDiagEl.ElementID=element1.ElementID
TestDiagEl.Update()
eaRep.ReloadDiagram(diagram.DiagramID)