創建時間戳
出自 ArcoWiki
This is used to create a unique timestamp inside a part program. Typically can be used to identify each execution/report with a unique file name.
$$Begin Example
DECL/CHAR,100, time_stampDECL/CHAR,200, STR3DECL/CHAR,200, STR2
$$Assign the time_stamp
time_stamp = ASSIGN/ STIMESTAMP()
$$ Read the report folder of ARCO
STR2=ASSIGN/GETENV('ARCOREPORTFOLDER')
$$Create a Unique file name with time stamp at the end of the name
STR3=ASSIGN/CONCAT(str2,'output_',time_stamp,'.mea')
$$Create Dummy Point and Tolerances
F(q)=FEAT/POINT,CART,00,0,0,0,0,1FA(q)=FEAT/POINT,CART,00,0,0,0,0,1T(CORTOL_1)=TOL/CORTOL,XAXIS,-0.1000,0.1000T(CORTOL_2)=TOL/CORTOL,YAXIS,-0.1000,0.1000T(CORTOL_3)=TOL/CORTOL,ZAXIS,-0.1000,0.1000
$$Build the output
DID(OUT_FILE)=DEVICE/STOR,STR3OPEN/DID(OUT_FILE),FDATA,V(TEXT),OUTPUT,OVERWROUTPUT/FA(Q),TA(CORTOL_1),TA(CORTOL_2),TA(CORTOL_3)
CLOSE/DID(OUT_FILE)