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 & .Net Compact Framework
 SPC Control Chart Tools for .Net
 Hiding control limits
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

GlennD

2 Posts

Posted - 10 Mar 2009 :  16:26:14  Show Profile  Reply with Quote
I have a SPCBatchVariableControlChart chart. Is it possible to hide either the upper or lower control limits ?

quinncurtis

1164 Posts

Posted - 11 Mar 2009 :  09:47:50  Show Profile  Reply with Quote
Disable the control limit lines using code like:


this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT_3).LinePlot.ChartObjEnable = ChartObj.OBJECT_DISABLE;

this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_LOWER_CONTROL_LIMIT_3).LinePlot.ChartObjEnable = ChartObj.OBJECT_DISABLE;



Disable the control limit numeric values to the right using code like:


this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT_3).LabelLimit = false;

this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_LOWER_CONTROL_LIMIT_3).LabelLimit = false;


Go to Top of Page

GlennD

2 Posts

Posted - 11 Mar 2009 :  13:30:12  Show Profile  Reply with Quote
Thanks for the response.

I was able to get the line to disappear, however the label is still visible it just move from the right side of the graph to bottom of the graph.

This code hides the control line, is there a way to remove it's affect on the alarms in the table ? What I have is data that has a lower control limt but no upper control limit. I want to totally remove the calculations (alarms) for the control limit.

Thanks
Go to Top of Page

quinncurtis

1164 Posts

Posted - 11 Mar 2009 :  14:38:07  Show Profile  Reply with Quote
Try this:

this.PrimaryChart.EnableControlLimitItem(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT_3, false);
this.SecondaryChart.EnableControlLimitItem(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT_3, false);
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07