다시 : 현재 보고서를 버튼 클릭으로 트리거 된 .ppt로 저장하는 스크립트<< SavePresentation () 메시지는 표시 상자 객체에 유효하므로 작성한 플랫폼에서 보고서를 가져 오려면 다음과 같은 내용이 필요합니다.
(obj << Report) << Save Presentation( "$DOCUMENTS/report.pptx" )
또는 Current Report ()를 사용할 수도 있지만 보고서를 작성하고 Powerpoint를 내보내기 전에 다른 작업을 수행하면 문제가 발생합니다. 보고서 작성에도 똑같이 적용됩니다. 다음과 같이 사용하는 것이 좋습니다.
obj = dt << Gaussian Process(...)
'dt'는 올바른 테이블이 사용되는지 확인하고 맨 위에 Default To Here (1)를 추가하여 생성 한 JSL 변수가 다른 테이블과 충돌하지 않도록 할 수 있습니다.
다시 : 현재 보고서를 버튼 클릭으로 트리거 된 .ppt로 저장하는 스크립트안녕하세요, 선명도에 대해 많은 감사드립니다. 제안한 변경 사항을 구현했지만 버튼을 클릭하여 보고서를 .pptx 형식으로 저장하는 것을 시작할 수는 없습니다. 버튼 클릭은 마이크로 초 동안로드되지만 데스크탑에는 아무 것도 저장되지 않습니다.
// "//!" placed at the first line of script results in auto-run rather than to open the script
// //!
Names Default To Here(1);
//opens a new window
w = New Window( "Load Your Data Table",
Text Box( "Choose an Excel file in which your data is linearized into
columns and transformed into Log10[x]." ),
//button to load data
Button Box( "1. Load data table", dt = Open( ) ),
//button to set column type
Button Box( "2. Set column type to Numeric/Continuous", dt = current data table();
for (i = 1, i <= ncols(dt), i++, column(dt, i) << data type(numeric);
column(dt, i) << set modeling type(continuous))),
//button to initiate Gaussian modeling
Button Box( "3. Gaussian modeling", obj = dt << Gaussian Process(Estimate Nugget(1),
Set Correlation Function("Cubic"), Profiler(1),
SendToReport( Dispatch( {}, "Model Report", OutlineBox, {Close( 1 )})),
//automatically saves the Gaussian analysis as a script to the data table
<< Save Script to Data Table(
"Gaussian modeling",
<<PROMPT></PROMPT>
현재 보고서를 버튼 클릭으로 트리거되는 .ppt로 저장하는 스크립트* 과거에 해결 된 몇 가지 유사한 게시물을 발견했지만 솔루션을 사용하지 못했습니다 .... 중복 된 게시물 인 것에 대해 유감스럽게 생각합니다.
버튼 클릭으로 트리거 된 스크립트를 추가하려고하는데, Gaussian 프로세스 모델링에서 생성 된 현재 열려있는 보고서를 .pptx 파일로 저장할 수 있습니다. << 관련 프리젠 테이션 저장 예제를 찾았습니다. )를 스크립팅 인덱스에 포함 할 수 있지만 Button Box ( "test", [여기])의 함수 인수로 배치 할 수 없습니다.
지금까지 내 스크립트는 다음과 같습니다.
// "//!" placed at the first line of script results in auto-run rather than to open the script
// //!
//opens a new window
w = New Window( "Load Your Data Table",
Text Box( "Choose an Excel file in which your data is linearized into
columns and transformed into Log10[x]." ),
//button to load data
Button Box( "1. Load data table", dt = Open( ) ),
//button to set column type
Button Box( "2. Set column type to Numeric/Continuous", dt = current data table();
for (i = 1, i <= ncols(dt), i++, column(dt, i) << data type(numeric);
column(dt, i) << set modeling type(continuous))),
//button to initiate Gaussian modeling
Button Box( "3. Gaussian modeling", obj = Gaussian Process(Estimate Nugget(1),
Set Correlation Function("Cubic"), Profiler(1),
SendToReport( Dispatch( {}, "Model Report", OutlineBox, {Close( 1 )})),
//automatically saves the Gaussian analysis as a script to the data table
<< Save Script to Data Table(
"Gaussian modeling",
<<PROMPT></PROMPT>