Login Page - Create Account

Support Board


Date/Time: Fri, 12 Dec 2025 12:35:36 +0000



Post From: Custom rectangle tool in ACSIL

[2025-12-12 08:06:09]
User266678 - Posts: 22
I am working on an ACSIL script that aims to compute calculations on a selected graph portion.

I understand that I cannot develop a custom tool but custom studies only. Please do correct me if I misunderstood.

Hence, what I resorted to do, was to scan for user drawings, filter for instances of DRAWING_RECTANGLE_HIGHLIGHT and when found, compute the values within the bounds of the rectangle and add the relevant text with the performed calculations close to it.

The main issue is that I would like to pick up only rectangles that have a specific tool configuration and not all rectangles, and then add a custom button to the tool bar with that specific rectangle configuration, along with the classic rectangle (or add a keyboard shortcut). This would allow me to have rectangles that do get this text overlay along with classic rectangles, but I can't figure out how to tag or pick up different rectangle configurations in ACSIL

Lastly, the study should recalculate upon user drawing creation, editing and deletion. I did not manage to find this hook in the docs, and I was trying to avoid `sc.UpdateAlways` due to performance. Any suggestions on a good hook to leverage?