<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開發