Login Page - Create Account

Support Board


Date/Time: Thu, 16 Jan 2025 13:17:45 +0000



Clearing Tool Text using ACSIL

View Count: 1067

[2017-11-08 11:23:23]
kas64h - Posts: 87
Hello,

For some time I've been clearing text in drawings using either Tool.Text.Clear(); or Tool.Text = ""; within ACSIL.

I think (although I can't be certain), that Tool.Text.Clear(); stopped working some time ago, although Tool.Text = ""; was fine.

However, in the current version (1635), neither Tool.Text = ""; nor Tool.Text.Clear(); seems to clear text in a drawing (Tool.Text = ""; worked up until at least version 1621).

Any help much appreciated.

Many thanks
[2017-11-09 04:36:38]
Sierra Chart Engineering - Posts: 104368
We think we know why this happens. But it is an odd concept to clear text in this way. We probably need to add a separate variable to accomplish this. We will see about that.
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
[2017-11-09 09:42:52]
kas64h - Posts: 87
Thank you for your reply.

Not sure why it is an odd concept to clear text in this way (please let me know if I'm doing something incorrectly).

I have multpile drawings on some charts, and it's useful to be able to clear text on all of them in one go from within code.

It's been working fine for over a year now and not sure why it's suddenly stopped working.

So for example, I might have a Horizontal Ray, or a Line or whatever, and any of the following...

Tool.Text.Clear();
Tool.Text = "";
Tool.Text = '\0';

... all suceesfully clear the drawings text in code, but the change now fails to render through to the drawing when the adjustment is made (using the AddMethod 'UTAM_ADD_OR_ADJUST')

In fact it's similar to another ticket I've raised ('s_UseTool LineStyle, LineWidth and Color not adjusting Price Retracement ACSIL Drawings'), in so much as changes are succeeding in code but failing to render through to the drawing when the adjustment is enacted.

Hopefully this helps further your investigations.

Many thanks.
[2017-11-09 10:06:13]
Sierra Chart Engineering - Posts: 104368
There is going to be a new s_UseTool::ClearExistingText flag in the next release to do this.

Text can no longer be cleared in the way you are doing it.
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
[2017-11-09 10:17:45]
kas64h - Posts: 87
ok, thank you.

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

Login

Login Page - Create Account