Support Board
Date/Time: Mon, 10 Mar 2025 19:11:24 +0000
Issue with sc.GetUserDrawnChartDrawing(sc.ChartNumber, DRAWING_TEXT, ChartDrawing, -1)
View Count: 486
[2022-04-09 07:29:45] |
User99735 - Posts: 234 |
sc.GetUserDrawnChartDrawing(sc.ChartNumber, DRAWING_TEXT, ChartDrawing, -1) As per the manual "Also you can give a negative index to specify drawings from the last drawing that was added to the chart. For example, if DrawingIndex is -1, the function will return the last drawing matching the drawing type that was added to the chart." However whenever any drawing text is selected, the above function returns the selected drawing instead of the last user drawn text. |
[2022-04-09 09:27:20] |
|
There definitely is not any problem with this function. We do not see how that can possibly be the case. And we do not know the specific details of what you are doing. Also when a Chart Drawing is modified, it is put at the end of the list. So in this case if you modify a Text drawing, it is going to be put at the end of the list, and be the one that is considered last drawn. 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 |
[2022-04-09 09:42:50] |
User99735 - Posts: 234 |
"Also when a Chart Drawing is modified, it is put at the end of the list." During / after modification, the line number of the drawing does not change. So what is the idea behind putting a modified drawing at the end of list? |
To post a message in this thread, you need to log in with your Sierra Chart account: