<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />你好先生,
我正在下载JMP12并测试自动化功能。我从\ SAS \ JMPSW \ 12 \ Samples \ Automation \ Visual C#Sample复制C#JMPStarter项目。
我可以将结果保存为Basic \ Distribution和Graph \ Control Chart的jpeg但是Model \ Fit Model失败了。
有没有人尝试过,可以分享你的实验?
这是适合模型的代码
private void fitModelButton_Click(object sender,System.EventArgs e)
{
startJMP();
fmDoc = myJMP.OpenDocument(jmpSampleDataDir +“tiretread.jmp”);
fm = fmDoc.CreateFitModel();
fm.LaunchAddY( “磨耗”);
fm.LaunchAddY( “模量”);
fm.LaunchAddY( “e龙”);
fm.LaunchAddY( “硬度”);
fm.LaunchAddToEffectList( “硅石”);
fm.LaunchAddToEffectList( “硅烷”);
fm.LaunchAddToEffectList( “硫”);
fm.LaunchAddMacroEffect(JMP.fitModelMacroEffectConstants.fitModelEffectResponseSurface);
fm.LaunchSpecifyIntercept(真);
fm.LaunchSpecifyEmphasis(JMP.fitModelEmphasisConstants.fitModelEmphasisScreening);
fm.LaunchSpecifyPersonality(JMP.fitModelPersonalityConstants.fitModelPerLS);
fls =(JMP.FitLeastSquares)fm.Launch();
fls.ContourProfiler(真);
resp = fls.GetResponse(“磨损”);
resp.SaveColumns(JMP.fitModelSaveColumnConstants.fitModelSavePredFormula);
resp.RowDiagnostics(JMP.fitModelRowDiagConstants.fitModelRDPress,true);
resp = fls.GetResponse(“模数”);
resp.SaveColumns(JMP.fitModelSaveColumnConstants.fitModelSavePredFormula);
resp = fls.GetResponse(“elong”);
resp.SaveColumns(JMP.fitModelSaveColumnConstants.fitModelSavePredFormula);
resp = fls.GetResponse(“硬度”);
resp.SaveColumns(JMP.fitModelSaveColumnConstants.fitModelSavePredFormula);
//尝试保存图形输出
int h = fls.GetGraphicItemByType(“picture box”,1);
fls.CopyGraphicItem(H);
fls.SaveGraphicOutputAs(@“D:\ FM.JPG”,JMP.jmpGraphicsFormats.jmpJPEG);
}
谢谢。
坦率
嗨弗兰克,
通常你会使用GetGraphicItemByType生成的句柄并调用SaveGraphicItem,传递句柄。 不幸的是,Fit Response类型输出似乎存在错误,其中采用图形句柄的自动化方法将失败。 我为此创建了一个跟踪缺陷,它将在JMP 13.0中得到修复。 不过我很遗憾地说,我现在还不知道任何其他的解决方法。
Brian Corcoran
JMP开发