Login Page - Create Account

Support Board


Date/Time: Thu, 06 Feb 2025 20:06:24 +0000



Post From: Modify Drawing Configuration With ACSIL

[2020-05-06 08:58:05]
User462086 - Posts: 196
I'm trying to change the configuration of vertical lines that were added manually using the following:



#include "sierrachart.h"

SCDLLName("Test_ChangeVerticalLineConfig")

SCSFExport scsf_Test_ChangeVerticalLineConfig(SCStudyInterfaceRef sc){
  
  SCInputRef Config = sc.Input[0];
  
  if (sc.SetDefaults){
  
    sc.GraphName = "Test_ChangeVerticalLineConfig";
    sc.GraphRegion = 0;
    sc.AutoLoop = 0;
    
    Config.Name = "Configuration To Use (1-8)";
    Config.SetInt(1);
    
    return;
  }
  
  s_UseTool drawing;
  
  int drawingIndex = 0;
  
  while (sc.GetUserDrawnChartDrawing(sc.ChartNumber, DRAWING_VERTICALLINE, drawing, drawingIndex)){
    
    drawingIndex++;
    
    if (drawing.Region == 0){
      
      drawing.UseToolConfigNum = Config.GetInt();
    }
  }
}



This locates the vertical lines but doesn't modify their configuration. Are manually added chart drawings read-only? Thanks
Date Time Of Last Edit: 2020-05-06 10:31:54