I'm adding nodes dynamically (within the transaction) to the diagram. After adding the nodes I update the position of the nodes (arrange it).
The problem is the “Location” value is updated to the value that I’ve set. But, in the diagram, the nodes are positioned @ the location “0, 0”.
Since, the application has multiple diagrams using tabs; if I switch to another diagram & come back, the nodes are displayed @ the right location. So, I used diagram_object.LayoutDiagram() to update the diagram after adding the nodes & specifying the location for the same. Still I’ve the same problem.
For debugging purpose, the node tooltip shows the location information; which is correct. But on the diagram it is placed at (0,0) point
Please help me in this regard.
After Switching to another tab & switch back:
I missed this one:Thanks, Sunil Kumar
When node is added to the model, node’s location is (0,0). After node is added to the model, I parse all the nodes & change their location value. What do I need to do in order to update the diagram after the location value has changed? As mentioned before I tried using LayoutDiagram but didn’t work.