dim l, r, t, b
l = "10"
r = ""
t = "20"
b = ""
dim messageRootObject as EA.DiagramObject
set messageRootObject = messageDiagram.DiagramObjects.AddNew("l="&l&";r="&r&";t="&t&";b="&b, "")
messageRootObject.ElementID = element.ElementID
messageRootObject.Update()
messageDiagram.DiagramObjects.Refresh()
Repository.SaveDiagram(messageDiagram.DiagramID)
Repository.ReloadDiagram(messageDiagram.DiagramID)
Session.Output messageRootObject.right
Session.Output messageRootObject.bottom
The output stays '0', but if you take a look on the diagram, the left and bottom aren't 0 so I don't get it why it always return '0'