Retaining Diagram position


If i draw a diagram in the center , save and load it again the whole diagram is shifted to top left corner. I have not specified any initial alignment. On load i want to show the diagram where it was drawn earlier. how can i achieve this? please help.

Your topic title is right: you want to retain the value of Diagram.position.

Take a look at the Draggable Link sample. It saves the Diagram.position in the Model.modelData property, and then restores it upon load.