Thank you to everyone that responded, it was a great help.  I have it
working the way I want it to.

In case anyone is interested here is what I came up with.

C:\SM11\MILL\CUSTOMER\ 01665 cylinder.PM4
01665 cylinder.PM4
01665 cylinder
01665 cylinder.txt


The macro takes the full path, extracts the PM4 file name, strips the PM4
extension and processes a report file, naming the report the same as the PM4
file name.

 
STRING:#SHAPE
#SHAPE=SHPFILE()     //Process model file path plus process model file name
STRING:#PM
#PM=GET_NAME(#SHAPE)  //Returns the name and extension of the filename.
STRING:#NAME
#NAME=STRIP_EXT(#PM) //Returns string without file extension.


REPORT_STEP[SS=0, SB=1, IJ=0, FF="C:\\SM11\\MILL\\JOSRPT\\excel export
files\\esteprpt.fmt", 
    OF=STRTMP("C:\\SM11\\MILL\\JOSRPT\\excel export files\\%NAME.txt"),
OD=1]


Bob Looney,  I can't wait to start implementing some of your code generator
logic into my own files.  I wonder how many times I coded with the wrong
TMP.  It will be great to select the TMP file every time.  That is a great
way to choose between TMP files.:-)


It never ceases to amaze me how powerful SmartCAM is and how the people on
this list utilize it, I am sure that anything I could ever complain about
SmartCam, someone has a fix or work around.

Thanks again to everyone that responded.

John

CBR Industries, Inc.
CNC Milling & Turning
www.cbrcnc.com

<<attachment: winmail.dat>>

Reply via email to