You need to use the string template (STRTMP) command in your example to
combine�the literal characters with variables into a text string.
MERGE[FN=STRTMP("w:\\360\\FLATS\\flat %VAR1"), FT=2, XS=0, YS=0, ZS=0]� //
need help on this line

The variables can be numbers or strings, but all are preceded by the %
character in place of the # character.
�
The following is from pages 65 & 66 of the V11 customization guide, but the
information is far from complete and is not 100% accurate for v11:
If you want to display the contents of a variable along with some literal
text, use STRTMP, as in the following example commands:

#VARIABLE="Machining"
PAUSE[TX=STRTMP ("The argument #VARIABLE = %#VARIABLE.")]

Using the above commands, the message in the PAUSE dialog box becomes: The
argument

#VARIABLE = Machining. The %# syntax allows the variable value to be
displayed in quotation marks, but only inside STRTMP.

�


============================================= 
�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]
======================================================================

Reply via email to