使用增量名称打开多个文件

来自ArcoWiki
Slia讨论 | 贡献2018年6月14日 (四) 07:48的版本 (创建页面,内容为“This example show how to create an series of different output files in a specific folder using incremental names.<br/> <code><span style="color: green; text-decorat…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航搜索

This example show how to create an series of different output files in a specific folder using incremental names.

$$ Creates a Dummy Point

F(q)=FEAT/POINT,CART,00,0,0,0,0,1
FA(q)=FEAT/POINT,CART,00,0,0,0,0,1

$$ Define some tolerance

T(CORTOL_1)=TOL/CORTOL,XAXIS,-0.1000,0.1000
T(CORTOL_2)=TOL/CORTOL,YAXIS,-0.1000,0.1000
T(CORTOL_3)=TOL/CORTOL,ZAXIS,-0.1000,0.1000

$$ Declare the files: ??? is the symbol for incremental files

DID(uno)=DEVICE/INCR,'C:\uno_???.MEA'
DID(due)=DEVICE/INCR,'C:\due_???.HTM'
DID(tre)=DEVICE/INCR,'C:\tre_???'

$$ Little loop to create multiple file

(III)
OPEN/DID(UNO),FDATA,V(TEXT),OUTPUT,OVERWR
OPEN/DID(due),FDATA,V(HTML),OUTPUT,APPEND
OPEN/DID(TRE),FDATA,V(SPCLIGHT),OUTPUT,OVERWR
OUTPUT/FA(Q),TA(CORTOL_1),TA(CORTOL_2),TA(CORTOL_3)
CLOSE/DD(UNO)
CLOSE/DID(DUE)
CLOSE/DID(TRE)
JUMPTO/(III)