Login Page - Create Account

Support Board


Date/Time: Thu, 26 Dec 2024 20:03:05 +0000



Need to call sc.UseTool twice before userdrawn drawing can be found.

View Count: 886

[2015-11-16 13:06:34]
jesslinn - Posts: 108
With tool values set to AddAsUserDrawnDrawing=1 and LineNumber=-1 (the undefined value from Clear()), the first call to sc.UseTool draws the line and fills in the LineNumber with a unique negative number. A call to sc.UserDrawnChartDrawingExists using the returned line number returns TRUE, but a call to
sc.GetUserDrawingByLineNumber returns failure. However if one calls sc.UseTool twice, once with the
LineNumber=-1 and again with the LineNumber set to the returned unique LineNumber, subsequent calls to sc.GetUserDrawingByLineNumber will succeed.

This is a low priority problem since there is an easy workaround (call UseTool twice before checking for user changes).

With issues of this kind do you prefer to receive an attached source code file demonstrating the problem?
[2015-11-16 22:49:10]
Sierra Chart Engineering - Posts: 104368
This problem has been identified and resolved. A new release will be out in about a day.
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
[2015-12-08 16:54:59]
jesslinn - Posts: 108
This problem, or one with the same symptoms, appears to have come back at least as of 1329.
Date Time Of Last Edit: 2015-12-08 16:56:53
[2015-12-08 19:00:55]
Sierra Chart Engineering - Posts: 104368
Use the latest version 1336.

We examined the code and determined there should not be a problem with this.

Try again.
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
[2015-12-09 02:05:17]
jesslinn - Posts: 108
I have attached a file that demonstrates the phenomenon with the new build.

Draw a line with line number -1.
See that it exists.
Try to get the line and fail
Draw the line with the returned line number.
See that it exists
Get the line.

From the log:
Software version: 1336 | 2015-12-08 18:55:32
...
Chart: SI-201603-NYMEX-USD-5000 [M] 10 Min #1 | Study: Test::UserLine | 1st: drawing exists | 2015-12-08 18:56:01
Chart: SI-201603-NYMEX-USD-5000 [M] 10 Min #1 | Study: Test::UserLine | 1st: Could not get user drawing | 2015-12-08 18:56:01
Chart: SI-201603-NYMEX-USD-5000 [M] 10 Min #1 | Study: Test::UserLine | 2nd: drawing exists | 2015-12-08 18:56:01
Chart: SI-201603-NYMEX-USD-5000 [M] 10 Min #1 | Study: Test::UserLine | 2nd: got user drawing | 2015-12-08 18:56:01

attachmenttest_userline.cpp - Attached On 2015-12-09 02:04:46 UTC - Size: 2.11 KB - 390 views
[2015-12-09 05:22:14]
Al SC Developer - Posts: 434
There was an issue in the UseTool function, where a DRAWING_HORIZONTALLINE drawing was being mistakenly transformed into a DRAWING_HORIZONTAL_RAY. Because the type is wrong, you can not find the drawing. When you redrew the drawing, it was adjusted to the correct type and then you are able to find it. A work around is to specify a type of DRAWING_UNKNOWN when searching for the drawing.

This is addressed in the next release.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account