Login Page - Create Account

Support Board


Date/Time: Mon, 29 Dec 2025 09:26:07 +0000



Post From: How to get live drawing position during drag in ACSIL?

[2025-12-29 02:14:40]
User966246 - Posts: 3
I'm developing an ACSIL study that needs to read the position of a user-drawn horizontal line in real-time while the user is dragging it.

What I've tried:

sc.GetUserDrawnDrawingByLineNumber() - Returns position only after mouse release
sc.GetSelectedUserDrawnDrawingFromChart() - Returns position only after mouse release
sc.ActiveToolYValue - Doesn't update during Sierra Chart's internal drag handling
sc.GetLineNumberOfSelectedUserDrawnDrawing() - Correctly identifies which drawing is selected, but can't get live position

Also tried
sc.UpdateAlways = 1
sc.ReceivePointerEvents = ACS_RECEIVE_POINTER_EVENTS_ALWAYS
Drawing created with AddAsUserDrawnDrawing = 1

Observation: Sierra Chart's own price label on the drawing updates correctly during drag, so the position IS known internally, but I can't find a way to get it into the study while it's being edited.

Question: Is there an ACSIL function to get the real-time position of a user-drawn drawing while it's being dragged, before the mouse button is released?

Thank you!