Get location of a moved title

How can i get the location of the moved Title in this example to save it in a database?


If you have a reference to the Part (in the example’s case its just myTitle), you can look at its Part.position

How can i do this?

OK I’ve solved it like this now.

myDiagram.addDiagramListener(“SelectionMoved”, function(event) {
var selectedNode = event.diagram.selection.first();
if ( selectedNode.B.Da == ‘HeadLine’ ) {
document.cookie = "headlinePosX = " + selectedNode.location.x;
document.cookie = "headlinePosY = " + selectedNode.location.y;