Support Board
Date/Time: Sun, 12 Jan 2025 13:49:58 +0000
DeleteUserDrawnACSDrawing
View Count: 855
[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. |
[2017-02-26 22:11:54] |
Sierra Chart Engineering - Posts: 104368 |
You need to use this function to determine if the drawing exists: Using Drawing Tools From an Advanced Custom Study: sc.UserDrawnChartDrawingExists() Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
To post a message in this thread, you need to log in with your Sierra Chart account: