1
Automation Interface, Add-Ins and Tools / Updating Diagram Appearance After Deletion from Model
« on: December 30, 2016, 04:52:00 am »
Hey,
I was wondering: is there a way to update the diagram after deleting things from the model? For examlpe it's really easy to delete some selected connectors:
But even though -- in this case -- the relationship is removed, the connector still meaninglessly appears in the diagram.
I was wondering: is there a way to update the diagram after deleting things from the model? For examlpe it's really easy to delete some selected connectors:
Code: [Select]
dim i
dim element as EA.Element
dim diagramObject as EA.DiagramObject
for i = 0 to (selectedObjects.Count - 1)
set diagramObject = selectedObjects.GetAt(i)
set element = getElementByID(diagramObject.ElementID)
dim allConnectors : allConnectors = element.Connectors.Count-1
element.Connectors.Delete(allConnectors)
element.Update
'can't seem to update diagram appearance...
currentDiagram.Update
currentDiagram.DiagramLinks.Refresh
next
But even though -- in this case -- the relationship is removed, the connector still meaninglessly appears in the diagram.