Your right. All I did was rearrange the sequence of events and everything works fine.
I've attached the mcl file. It does everything I want for four holes. Now what I need is some way to make a loop with a counter for the number of selected holes that the user needs to skim. The counter being the number of selected holes. The loop being a WHILE/ENDW loop using the counter which starts at 1 and gets incremented by 1 each time the loop is executed, until the counter is greater then the number of selected holes, at which point the loop is done. Sounds simple enough... So basically if the user selects 10 holes to skimmed and runs the macro, the loop will be executed 10 times. Any help is greatly appreciated. -----Original Message----- From: Lauzus, Frederick [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 30, 2001 7:28 AM To: Michael Senack; '[EMAIL PROTECTED]' Subject: RE: [mfg-smartcam] Macro Help Michael, When I ran your macro it initially failed to set the insertion point the first time. I could not determine the cause due to the fact the macro ran successfully every attempt afterwards, even after restarting the application. I believe this may be the bug where the current settings in the Insert bar will sporadically supercede the macro commands. I have encountered similar occurrences in the past but due to their fleeting nature could not develop a work around. ============================================= 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, May 29, 2001 5:19 PM To: '[EMAIL PROTECTED]' Subject: [mfg-smartcam] Macro Help <<hs4421.pm4>> <<HS.jof>> 1) Attached is the .pm4 file that I load into AWEDM V11.5 2) I then select any number of holes in any random pattern 3) Then I run this mcl... // Advanced_Wedm 11.5 Windows 10/16/98 16:48:10 Macro File // w:\mcl\1.mcl // CREATED: 05/29/01 // // VAR_REMOVE_ALL[] JOBPLN[FN="w:\\job\\hs", JT=1]// loads the Job Plan ELMT_SEQ[BA=1, EL="0", ME=1]// insert after 0 SEQ_MOVE[SC=1]// move selection set in the order that you picked them after 0 PAUSE[TX="The so far so good macro pause!", LR=10, LC=5, SR=2, SC=40, PT=1] My problem is I'm trying to get the mcl to sequence the hole(s) that I have just picked after element 0. The above mcl does not seem to do this. However, when I do the steps manually inside SC it works. Why? Regards, Michael Senack, CNC Programmer Blount Canada Ltd 505 Edinburgh Road North Guelph Ontario N1H 6L4 519 822 6870 X354 FAX 519 822 1450 http://www.blount.com/
CUTHOLES.MCL
Description: Binary data
