Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom Drawing Tool freezing on workspace opening

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Custom Drawing Tool freezing on workspace opening

    Hello,

    I have created my own Drawing tool and everything is fine, working perfect !

    It looks like Fibonacci lines.
    My only problem comes when I close and reopen a workspace with the Drawing Tool applied to a chart.

    On reopening the chart is transparent and shows nothing not even the instrument.
    I was wondering if that was related to the partial class Draw.
    Anyway is there a way to remove the Drawing Tool on workspace closing ? ( that would be a kind of solution )

    Thank you very much for your help !


    #2
    Hello blar58,

    What you described sounds like something is having an error when reloading. Are you seeing any errors in the log tab of the control center? It wouldn't be expected to have the object removed unless it was being drawn by a script, it would be removed if the script that drew it was removed. Manually drawn objects should not affect the chart or be removed if they had been saved with the workspace.

    I look forward to being of further assistance.

    Comment


      #3
      Jess
      No I am not seeing any errors from the Control center Log Tab.
      Furthermore I am not seeing any errors from the Log and Trace files as well.

      Comment


        #4
        Hello blar58,

        I would suggest trying some tests here to see what contributes to the problem. Reducing the variables is going to be important with a complex type like a drawing object.

        The first step would be to gather the steps to see this happen so we know what contributes to it. Was this manually drawn or from code? You mentioned the Draw partial class but that is only relevant if your using the tool from another script. If you manually drew it that's not likely playing a part here so you could try to just completely remove that by commenting it out and see if the error still happens.

        The next item you may try would be to comment out the OnRender logic for the tool or copy in one of the most simple tools logic like a line so something to make it visible. Then try reproducing the error situation, if the chart is not invisible that will help to let you know the problem is in OnRender.

        You also may want to try a new empty workspace with just your item to make sure nothing else is affecting the tool.



        I look forward to being of further assistance.

        Comment


          #5
          I tried everything with no success.
          Could you please just elaborate on the following comment you made :

          " If you manually drew it that's not likely playing a part here so you could try to just completely remove that by commenting it out and see if the error still happens. "

          What should I comment it out ?

          Comment


            #6
            Hello blar58,

            That comment was geared toward the partial draw class, you could try commenting that out as one debugging step.

            Please let me know if i may be of additional assistance.

            Comment


              #7
              OK I understand

              I tried everything but I still get the same problem

              Comment


                #8
                Hello blar58,

                If the problem is not happening with any other script in that use case and is just when using the tool you made then the problem is somewhere within the scripts code. Unfortunately that may require backtracking to locate what part of the script is leading to that. I would suggest to try and reduce what the script is doing, a good place to do that is OnRender. You can try doing something more simple or copying existing drawing code to test if something else that does not call your code changes works.

                If you are able to reduce the code and make a simple example of what general area is failing we can try to look at that to see if anything specific sticks out.

                I look forward to being of further assistance.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                571 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                331 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                101 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                549 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                549 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X