Login Page - Create Account

Support Board


Date/Time: Fri, 26 Apr 2024 03:20:48 +0000



Post From: possible bugs? 2 things - sc.GetLineNumberOfSelectedUserDrawnDrawing - @ usetool issue

[2022-05-19 21:13:49]
JohnR - User831573 - Posts: 300
First, thank you for your time to reply. There are 2 things I have problems with.

1 - The most important is Tool.FourthIndex, does not cut/move visual ending of the drawing when I changed its value before calling sc.UseTool(Tool). I am trying to change this property, as I determined it is used for "CUT" value on a pitchfork. After the successful call of UseTool, to verify the issue, I call Tool.Clear then sc.GetUserDrawnDrawingByLineNumber(sc.ChartNumber, JOR_LineNum, Tool) The property FourthIndex still equals it's original value before any of my code. In testing, I can successfully change any of the first 3 indexes / selection points. Also, I do set AddAsUserDrawnDrawing variable to 1.

2- Docs state to only modify properties you want to change. Why do I need to use these 2 statements? SC support provided them as a solution to another in the forums who had issues moving a line. After adding them to my code, I am able to modify a user drawn object. I am using bar #, not using points relative to visual chart, so I see no need for them. To better understand - What conditions must I use these statements?
  Tool.BeginDateTime.Clear();
  Tool.EndDateTime.Clear();

Thanks for your time to look into this.

JohnR