Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net
 SPC Control Chart Tools for .Net
 Custom Line in Contol Chart
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mrart

6 Posts

Posted - 17 May 2010 :  23:51:23  Show Profile  Reply with Quote
How can I add custom line to control chart ?
Customized the color and line type (dashes).

mrart

6 Posts

Posted - 18 May 2010 :  04:03:14  Show Profile  Reply with Quote
More than 2 custom line with difference color and dashes.
Go to Top of Page

quinncurtis

1586 Posts

Posted - 18 May 2010 :  09:11:01  Show Profile  Reply with Quote
Do you want to add fixed limit lines, like specification limits, to the chart; or are you looking to add a variable line, like the x-bar line of the primary chart? You can do the former, but not the latter.
Go to Top of Page

mrart

6 Posts

Posted - 18 May 2010 :  11:54:37  Show Profile  Reply with Quote
I am looking to add
- Upper and Lower Specification line
- +/-3 Sigma line
to the existing Control Chart during loading.
Go to Top of Page

quinncurtis

1586 Posts

Posted - 18 May 2010 :  12:12:20  Show Profile  Reply with Quote
You can set the +- 3-sigma limits using code similar to

// Setup upper and lower 3-sigma limits values
this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_LOWER_CONTROL_LIMIT).LimitValue = 20;
this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT).LimitValue = 34;


You can add spec limits using code similar to:
// You must add a reference (using xxxx) System.Drawing.Drawing2D at the top of your module to resolve the DashStyle.Dash constant.

// Adding a Specification limit in addition to regular SPC control limits
SPCControlLimitRecord lcl2 = new SPCControlLimitRecord(this.ChartData,
SPCControlLimitRecord.SPC_LOWERTHAN_LIMIT, 0, "L SPEC", "L SPEC");
this.PrimaryChart.AddAdditionalControlLimit(lcl2, SPCChartObjects.SPC_MEASURED_VARIABLE, 1);
lcl2.ControlLimitValue = 26;
this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_LOWER_CONTROL_LIMIT_2).LinePlot.LineColor = Color.Green;
this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_LOWER_CONTROL_LIMIT_2).LinePlot.LineStyle = DashStyle.Dash;

SPCControlLimitRecord ucl2 = new SPCControlLimitRecord(this.ChartData,
SPCControlLimitRecord.SPC_GREATERTHAN_LIMIT, 0, "H SPEC", "H SPEC");
this.PrimaryChart.AddAdditionalControlLimit(ucl2, SPCChartObjects.SPC_MEASURED_VARIABLE, 1);
ucl2.ControlLimitValue = 32;
this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT_2).LinePlot.LineColor = Color.Yellow;
this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT_2).LinePlot.LineStyle = DashStyle.Dash;
Go to Top of Page

mrart

6 Posts

Posted - 18 May 2010 :  22:18:52  Show Profile  Reply with Quote
thanks
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07