121
General Board / Re: Add or delete an element from a diagram
« on: December 30, 2015, 03:55:03 am »
Hi,
Add element to diagram was resolved but the requested element for deletion is not deleted from diagram.
What I see is:
diagram.DiagramObjects.DeleteAt(index,true) does delete the element,
as mentioned above i can see the size of diagramObjects is reduced by 1.
I removed the diagram.DiagramObjects.Refresh().
and run it with and without diagram.Update() API call.
both cases element stays on the diagram.
I also run a test that add a new element to a diagram and it is shown when closing and opening the diagram.
(So diagramObjects are getting refreshed but without the deletion)
Any other ideas?
Add element to diagram was resolved but the requested element for deletion is not deleted from diagram.
What I see is:
diagram.DiagramObjects.DeleteAt(index,true) does delete the element,
as mentioned above i can see the size of diagramObjects is reduced by 1.
I removed the diagram.DiagramObjects.Refresh().
and run it with and without diagram.Update() API call.
both cases element stays on the diagram.
I also run a test that add a new element to a diagram and it is shown when closing and opening the diagram.
(So diagramObjects are getting refreshed but without the deletion)
Any other ideas?