Oops, a typo! The PROMPT function would work if I had spelled it correctly. Sorry for any confusion.
//� check HEIGHT variable // WHILE(#HEIGHT<=0)// check HEIGHT to see if it is bigger then zero // the \n acts a c/r page 66 Automating SmartCAM with Macros �PROMPT[TX="ERROR: The HEIGHT of the dimension must\n ����������������� be greater then zero!",�VN="HEIGHT"] ENDW //� ============================================= Fred Lauzus, CAM Programming Coordinator High Steel Structures, Incorporated mailto:[EMAIL PROTECTED] http://www.highsteel.com ============================================= -----Original Message----- From: Lauzus, Frederick [mailto:[EMAIL PROTECTED]] Sent: Monday, March 20, 2000 10:02 AM To: 'Mike Senack'; SmartCAM User Group Subject: RE: [mfg-smartcam] V11.5 macro help For your operator input with an error checking loop, use the prompt function. � //� check HEIGHT variable // WHILE(#HEIGHT<=0)// check HEIGHT to see if it is bigger then zero // the \n acts a c/r page 66 Automating SmartCAM with Macros �PROMOTP[TX="ERROR: The HEIGHT of the dimension must\n ����������������� be greater then zero!",�VN="HEIGHT"] // Includes�the box cancel option ENDW // ============================================= �Fred Lauzus, CAM Programming Coordinator �High Steel Structures, Incorporated � mailto:[EMAIL PROTECTED]� http://www.highsteel.com ============================================= � �-----Original Message----- From: Mike Senack [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 19, 2000 12:36 AM To: SmartCAM User Group Subject: [mfg-smartcam] V11.5 macro help � Could anybody out there show me a way to get a string variable into the ending part of a file name. Below is my attempt. What I would like is for this macro to prompt me to enter a two digit number like 052 and place it on the drive path & partial file name in the MERGE command. So the file name would go from this "w:\\360\\FLATS\\flat???" (where the ??? would be the string variable) to this "w:\\360\\FLATS\\flat052" � // Advanced_Wedm 11.5 Windows 10/16/98 16:48:10 Macro File // w:\mcl\mf.mcl // CREATED: 03/18/00 //� // STRING: #VAR1 //� MERGE[FN="w:\\360\\FLATS\\flat #VAR1", FT=2, XS=0, YS=0, ZS=0]� // need help on this line // VIEW_ANGLE[A1=0, A2=0, VA=2, VP=0, RS=1, WP=0] VIEW_ANGLE[A1=0, A2=0, VA=2, VP=0, RS=1, WP=0] � Below is a sample from another macro that I've made using the Pause box to appear to enter a numeric value. This would be what I would like happen for a string variable input without any checking. � //� check HEIGHT variable // WHILE(#HEIGHT<=0)// check HEIGHT to see if it is bigger then zero // the \n acts a c/r page 66 Automating SmartCAM with Macros �PAUSE[TX="ERROR: The HEIGHT of the dimension must\n ����������������� be greater then zero!", PT=1] // Include box cancel option ��� #HEIGHT=1000000� // this resets HEIGHT variable to an unknown value ENDW // Thanks for any help. � � Michael Senack, 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] ======================================================================
