>From page 115 of the SmartCAM Customization Guide AUTO ANSWER AUTO_ANSWER[AA=$$] + Auto Answer is not a recordable macro command at this time. AA = "OFF", "OK", "YES", "CANCEL", or "NO" (required) Values: "OFF" = Notice will be displayed as it would normally (interactive with user and interrupt macro processing) "OK" or "YES" = Answers with "Ok" or "Yes" where applicable. "CANCEL" = Answers with "Cancel" when applicable; if not, then like "OK" "NO" = Answers with "No" when applicable; if not, then like "Cancel" when applicable; if not, then like "OK" + If one of the above parameter values is not given, the following error will occur: "Invalid parameter value in macro command." The auto-answer mode will stay on until macro playback completes or until it is explicitly turned off by AUTO_ANSWER [AA="OFF"]. Whenever a non-error message is displayed, the current value of the answer command will be applied to that message and the macro will continue without stopping. Errors will not be ignored (they will halt the macro). Auto Answer cannot be used to trigger or accept nonmessage dialog boxes (such as Save or Display Modes). To keep the Save dialog box from appearing when using a command like OPEN, NEW, or MAC_EXE, include the SAVE command in the macro before that command. ================================================== Fred Lauzus, CAM Programming Coordinator High Steel Structures, Incorporated mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> http://www.highsteel.com <http://www.highsteel.com/> ================================================== -----Original Message----- From: Angelucci [mailto:[EMAIL PROTECTED] Sent: Friday, November 07, 2003 11:58 AM To: smartcam user group(e-mail) Subject: [mfg-smartcam] Macro help Importance: Low Hi...] I've written a macro to post my codes to 8 different machines at same time. But I have a little problem. How can I ignore the errors when the macro is running. Example: Filename: 8a168-a3.nc If this file exists on my target folder, SC shows a warning message. Can I deactivate or ignore this kind of erros? Macro body text: STRING:#POSMZKC #POSMZKC="-" IF(#VFH880=1) #POSMZKC="FH880" ENDIF STRING:#POSMZKB #POSMZKB="-" IF(#VAJV6080=1) #POSMZKB="AJV6080" ENDIF STRING:#POSMZKI #POSMZKI="-" IF(#VMTV515=1) #POSMZKI="MTV515" ENDIF STRING:#POSPFV #POSPFV="-" IF(#VHELLER=1) #POSPFV="HELLER" ENDIF STRING:#POSROC #POSROC="-" IF(#VROCCO=1) #POSROC="20VB" ENDIF STRING:#POSCINC #POSCINC="-" IF(#VCINC=1) #POSCINC="CINC" ENDIF ///////////////////////////////////// STRING:#POSMCP #POSMCP="-" IF(#VMCP=1) #POSMCP="MCP" ENDIF STRING:#POSMFZ #POSMFZ="-" IF(#VMFZ=1) #POSMFZ="MFZ" ENDIF ////////////////////////////////// IF(#VFH880=1) MAC_EXE[FN=C:\PROGRAMACAO\MACRO\POSPROC\DEFCICLOFH880] STRING: #SETUPFIL #SETUPFIL=STRTMP("S:\TRA\MAZAK\FH880\%#ARQUIVO") MAC_EXE[FN=C:\PROGRAMACAO\MACRO\POSPROC\CODFH880] ENDIF IF(#VAJV6080=1) MAC_EXE[FN=C:\PROGRAMACAO\MACRO\POSPROC\DEFCICLOAJV] STRING: #SETUPFIL #SETUPFIL=STRTMP("S:\TRA\MAZAK\AJV60_80\%#ARQUIVO") MAC_EXE[FN=C:\PROGRAMACAO\MACRO\POSPROC\CODFH880] ENDIF IF(#VMTV515=1) MAC_EXE[FN=C:\PROGRAMACAO\MACRO\POSPROC\DEFCICLOMTV] STRING: #SETUPFIL #SETUPFIL=STRTMP("S:\TRA\MAZAK\V515\%#ARQUIVO") MAC_EXE[FN=C:\PROGRAMACAO\MACRO\POSPROC\CODMTV515] ENDIF IF(#VHELLER=1) MAC_EXE[FN=C:\PROGRAMACAO\MACRO\POSPROC\DEFCICLOHELLER] STRING: #SETUPFIL #SETUPFIL=STRTMP("S:\TRA\PFV\%#ARQUIVO") MAC_EXE[FN=C:\PROGRAMACAO\MACRO\POSPROC\CODHELER] ENDIF IF(#VROCCO=1) MAC_EXE[FN=C:\PROGRAMACAO\MACRO\POSPROC\DEFCICLOROCCO] STRING: #SETUPFIL #SETUPFIL=STRTMP("S:\TRA\DIADUR\%#ARQUIVO") MAC_EXE[FN=C:\PROGRAMACAO\MACRO\POSPROC\CODROC] ENDIF IF(#VCINC=1) MAC_EXE[FN=C:\PROGRAMACAO\MACRO\POSPROC\DEFCICLOCINC] STRING: #SETUPFIL #SETUPFIL=STRTMP("S:\TRA\CINC\%#ARQUIVO") MAC_EXE[FN=C:\PROGRAMACAO\MACRO\POSPROC\CODCINC] ENDIF ////////////////////////////////////////////////////////////////////// IF(#VMCP=1) MAC_EXE[FN=C:\PROGRAMACAO\MACRO\POSPROC\DEFCICLOMCP] STRING: #SETUPFIL #SETUPFIL=STRTMP("S:\TRA\MCP\%#ARQUIVO") MAC_EXE[FN=C:\PROGRAMACAO\MACRO\POSPROC\CODMCP] ENDIF IF(#VMFZ=1) MAC_EXE[FN=C:\PROGRAMACAO\MACRO\POSPROC\DEFCICLOMFZ] STRING: #SETUPFIL #SETUPFIL=STRTMP("S:\TRA\MFZ\%#ARQUIVO") MAC_EXE[FN=C:\PROGRAMACAO\MACRO\POSPROC\CODMFZ] ENDIF ///////////////////////////////////////////////////////////////////// Anderson Fraga Angelucci Depto. T�cnico POLIMOLD INDUSTRIAL S/A www.polimold.com.br <http://www.polimold.com.br> Tel.:(55)(11)43587333 - Ramal 284 Fax:(55)(11)43587303
<<attachment: t�cn.gif>>
