Login Page - Create Account

Support Board


Date/Time: Tue, 13 May 2025 16:22:15 +0000



Post From: Problems adjusting ChartDrawing that was added as User Drawn Drawing

[2024-08-30 08:58:34]
StanThompson94 - Posts: 6
Dear Support Team,

many thanks for the quick response.
You helped me with this too and I found the problem. The origin of the error is still a bug on your site that probably crept in in one of the last updates:

The StartDateTime and EndDateTime that was set for the Tool is not the same that you get after using sc.GetUserDrawnDrawingByLineNumber()

Simplified code:

  s_UseTool Tool;
//Set Tool parameters
  Tool.BeginDateTime = 1;
  Tool.EndDateTime = 150;

  sc.UseTool(Tool);

  //Tool.BeginDateTime is 1899-12-31 00:00:00.0
  //Tool.EndDateTime is 1900-05-29 00:00:00.0

  s_UseTool Tool2;
  sc.GetUserDrawnDrawingByLineNumber(sc.ChartNumber, Tool.LineNumber, Tool2);

  //Tool2.BeginDateTime is 1899-12-31 01:00:00.0
  //Tool2.EndDateTime is 1900-05-29 02:00:00.0

If you continue to work with the reference (Tool2) without re-setting the EndDateTime, this will lead to the error.

I think that your developers should take a look at this because I don't think that's the behavior what you want.

Thank you and best regards
Thomas
Date Time Of Last Edit: 2024-08-30 09:00:05