Login Page - Create Account

Support Board


Date/Time: Fri, 03 May 2024 10:32:41 +0000



Post From: DeleteUserDrawnACSDrawing

[2017-02-26 21:02:12]
User53601 - Posts: 105
Hello,

Can you please help with this:

I draw a Text drawing by s_UseTool. Later, I want to delete it by this code:

if (sc.ChartDrawingExists(sc.ChartNumber, 77111))
{ sc.DeleteUserDrawnACSDrawing(sc.ChartNumber, 77111); };

However the text Is not deleted.

But, when I use just this code, the text drawing is deleted:
sc.DeleteUserDrawnACSDrawing(sc.ChartNumber, 77111);


I can not understand it. I am afraid that without testing the existence of the text drawing, it could in some cases cause unpredictable behavior.