Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: sar2 on September 04, 2019, 08:37:42 pm
-
Hello,
I wrote a script, which has quite some long running time and does sometime need to delete out dated elements.
Sometimes when I use the Delete(short index) method on a element object, I get a "Delete or Keep the bound properties" pop-up in the background, which causes my script to pause until someone closes that window. This is quite bothersome.
I already tried deleting all connectors of the element in question first, but that didn't solve the problem.
Anyone have a workaround this?
-
I have never seen such a popup.
Could it be that you are deleting elements who have embedded elements?
In that case you might want to delete those first.
Geert
-
Also never saw that. Which EA version?
q.
-
Also never saw that. Which EA version?
q.
I'm using version 12.1
-
I have never seen such a popup.
Could it be that you are deleting elements who have embedded elements?
In that case you might want to delete those first.
Geert
I try deleting connectors, embedded elements and constraints before the element and get the pop-ups during connector deletion all the time.
-
I have never seen such a popup.
Could it be that you are deleting elements who have embedded elements?
In that case you might want to delete those first.
Geert
I try deleting connectors, embedded elements and constraints before the element and get the pop-ups during connector deletion all the time.
Ah, is it during a connector delete, or an element delete.
I think the bound properties are those things you set to link your association to an attribute.
I've never used those.
I would check if any of the collection on the connector (such as CustomProperties) has elements and make sure to delete these before deleting the connector.
Geert
PS. You should also report a bug (https://www.sparxsystems.com/support/forms/bug_report.html). An API is not supposed to show message boxes when deleting stuff.
-
I have never seen such a popup.
Could it be that you are deleting elements who have embedded elements?
In that case you might want to delete those first.
Geert
I try deleting connectors, embedded elements and constraints before the element and get the pop-ups during connector deletion all the time.
Ah, is it during a connector delete, or an element delete.
I think the bound properties are those things you set to link your association to an attribute.
I've never used those.
I would check if any of the collection on the connector (such as CustomProperties) has elements and make sure to delete these before deleting the connector.
Geert
PS. You should also report a bug (https://www.sparxsystems.com/support/forms/bug_report.html). An API is not supposed to show message boxes when deleting stuff.
Ok so I tried deleting CustomProperties, but I get an Internal Application error.
I tried deleting all other collections as well, but it didn't help.