Support Board
Date/Time: Wed, 12 Mar 2025 22:18:41 +0000
Post From: possible bugs? 2 things - sc.GetLineNumberOfSelectedUserDrawnDrawing - @ usetool issue
[2022-05-05 21:30:55] |
JohnR - User831573 - Posts: 319 |
So, I have modified my code to Always receive pointer events. Based on the entries in the message log, I am able to capture Pointer button Down, and correctly LineNum = 0 as long as the pointer is not over a drawn object. If I click on an object, my code never executes. I am not able to get the "Selected" user drawn object. if (sc.PointerEventType == SC_POINTER_BUTTON_DOWN) { JOR_MessageText.Format("JOR Pointer Down Event "); sc.AddMessageToLog(JOR_MessageText, 1); JOR_LineNum = sc.GetLineNumberOfSelectedUserDrawnDrawing(); JOR_MessageText.AppendFormat("Selected PitchFork >>> %i ", JOR_LineNum); sc.AddMessageToLog(JOR_MessageText, 1); return; } I still can not get sc.UseTool to move the pitchfork cut point. To try to further narrow down if it is my issue, Instead of changing the Tool.FourthIndex, I changed Tool.BeginIndex. This was successful, but only after I included the following logic, which I found as your answer to another user a while back trying to move a tool. If the doc states to 'not' change fields you do not want modified, why is it necessary to 'Clear' these two fields. I'm just trying to better understand. Tool.BeginDateTime.Clear(); Tool.EndDateTime.Clear(); There is no Clear for Tool.FourthIndex and including the 2 above lines still did not move the cut point. It seems to me, the UseTool even though it returns 1 indicating it was executed successfully, that is not the case. Please advise. JohnR Date Time Of Last Edit: 2022-05-06 12:28:41
|