The modifications to the macro you provided should give you exactly what you described as a result. The default PROMPT[] displays no buttons but will recognize the ESC key and stop the macro.
// Advanced_Wedm 11.5 Windows 10/16/98 16:48:10 Macro File // w:\mcl\TAP.mcl // CREATED: 02/26/01 // // VAR_REMOVE_ALL[] PROMPT[TX="Enter the value for #Z1", VN="Z1"] PROMPT[TX="Enter the value for #Z2", VN="Z2"] PROMPT[TX="Enter the value for #HOLEDIA", VN="HOLEDIA"] PROMPT[TX="Enter the value for #TAPDIA", VN="TAPDIA"] PROMPT[TX="Enter the value for #TAPDEPTH", VN="TAPDEPTH"] #TAPDEPTH=ABS(#TAPDEPTH) ELMT_SEQ[BA=1, EL="TOTEL()", ME=1] COLOR_CHG[CO=5, TY=1, TL=13, ST=0]// hole layer with solid lines ON_LAYER[LY=13, WP="XY_PLANE", LV=#Z2, PT=#Z1] ARC[DR=0, XC=0, YC=0, RA=#HOLEDIA/2, AS=0, AE=0, SE=2, SS=2, SI=2, SC=2, LV=#Z2] COLOR_CHG[CO=5, TY=1, TL=12, ST=1]// tap layer with broken lines ON_LAYER[LY=12, WP="XY_PLANE", LV=#Z2, PT=#Z1] ARC[DR=0, XC=0, YC=0, RA=#TAPDIA/2, AS=0, AE=0, SE=2, SS=2, SI=2, SC=2, LV=-#TAPDEPTH] MAC_EXE[FN="w:\\mcl\\u.mcl"] BOX_GRP[AR=0, X1=-0.16829803, Y1=-0.00715354, X2=-0.05904404, Y2=-0.08909403, PC=0] AUTO_ANSWER[AA="OK"] SAVE[FN="w:\\JOB\\tap", FT=3, GS=0, WP="XY_PLANE"] AUTO_ANSWER[AA="OFF"] GRP_DELETE[] ELMT_SEQ[BA=1, EL="totel()", ME=1] PROMPT[TX="Enter the value for #X1", VN="X1"] PROMPT[TX="Enter the value for #Y1", VN="Y1"] MERGE[FN="w:\\JOB\\tap", FT=2, XS=#X1, YS=#Y1, ZS=#Z1] ELMT_SEQ[BA=1, EL="totel()", ME=1] PROMPT[TX="Enter the value for #X2", VN="X2"] PROMPT[TX="Enter the value for #Y2", VN="Y2"] MERGE[FN="w:\\JOB\\tap", FT=2, XS=#X2, YS=#Y2, ZS=#Z1] ELMT_SEQ[BA=1, EL="totel()", ME=1] PROMPT[TX="Enter the value for #X3", VN="X3"] PROMPT[TX="Enter the value for #Y3", VN="Y3"] MERGE[FN="w:\\JOB\\tap", FT=2, XS=#X3, YS=#Y3, ZS=#Z1] ELMT_SEQ[BA=1, EL="totel()", ME=1] PROMPT[TX="Enter the value for #X4", VN="X4"] PROMPT[TX="Enter the value for #Y4", VN="Y4"] MERGE[FN="w:\\JOB\\tap", FT=2, XS=#X4, YS=#Y4, ZS=#Z1] ============================================= Fred Lauzus, CAM Programming Coordinator High Steel Structures, Incorporated mailto:[EMAIL PROTECTED] http://www.highsteel.com ============================================= -----Original Message----- From: Michael Senack [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 27, 2001 11:51 AM To: 'Lauzus, Frederick'; Dave Hayden Cc: [EMAIL PROTECTED] Subject: RE: [mfg-smartcam] RE: Use GOTO to Exit a mcl ? That is right. The reason why I use this method of entering X & Y co-ordinates is because I get alot of manually drawn prints where holes are dimension from the previous hole. It is very easy to type #X1+4.356 and press enter and then type #Y1-3.4421 and press enter. You can even type -#X1 if you have a mirror dimension of #X1. Then you can do something like #X1+#X2+3 Anyhow to make a long macro short, I tried entering a wrong value as per suggested below and it bombs! It's pretty but I'll use that method. Thanks again for the support. -----Original Message----- From: Lauzus, Frederick [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 27, 2001 11:08 AM To: Dave Hayden Cc: [EMAIL PROTECTED] Subject: [mfg-smartcam] RE: Use GOTO to Exit a mcl ? Having some exposure to v4.51, I believe Michael was referring to a method to abort the macro execution during the input of the variable values in the default prompts. With the later versions you can't get rid of the default prompt until you enter a valid value. A typical example would be if you realized you just entered the wrong value at the previous prompt and you know the macro will fail. You want to abort but instead are forced to enter in additional values until the macro errors. In the older DOS version you could simply hit ESC and the macro would terminate. ============================================= Fred Lauzus, CAM Programming Coordinator High Steel Structures, Incorporated mailto:[EMAIL PROTECTED] http://www.highsteel.com ============================================= -----Original Message----- From: Dave Hayden [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 27, 2001 10:58 AM To: Lauzus, Frederick Cc: [EMAIL PROTECTED] Subject: Use GOTO to Exit a mcl ? To exit with out any additional prompts. Create a label at the end of your macro @endmac or something like that then use a goto(endmac) inside the if test. That will take you to the end of the macro. David Working on converting my SC 4.5 macros to SC 11.5 mcl files. So far so good... The problem I'm having with this mcl file is at the end, where I prompt for the XS= and YS= co-ordinates. In the SC 4.5 mac file all I had to do to end the macro was hit the Esc key. How do I accomplish this in the above mcl without adding any extra prompts to carry on or exiting? Regards, Michael Senack, X354 Your local friendly neighborhood CNC Programmer ====================================================================== To find out more about this mailing list including how to unsubscribe, send the message "info mfg-smartcam" to [EMAIL PROTECTED] ====================================================================== ====================================================================== To find out more about this mailing list including how to unsubscribe, send the message "info mfg-smartcam" to [EMAIL PROTECTED] ====================================================================== ====================================================================== To find out more about this mailing list including how to unsubscribe, send the message "info mfg-smartcam" to [EMAIL PROTECTED] ====================================================================== ====================================================================== To find out more about this mailing list including how to unsubscribe, send the message "info mfg-smartcam" to [EMAIL PROTECTED] ======================================================================
TAP.mcl
Description: Binary data
