Here is a snippet from a macro I use to generate code. It contains the info you need.

//
STRING:#MAIN
#MAIN=BODY // ASSIGN "BODY" TO VARIABLE -> "MAIN"
//
STRING:#FULLPATH
#FULLPATH=SHPFILE() // ASSIGN FILE PATH,NAME, AND EXTENSION TO VARIABLE -> "FULLPATH"
//
//
STRING:#NAMETEMP
#NAMETEMP=GET_NAME(#FULLPATH)// GET FILE NAME AND EXTENSION
//
STRING:#FILENAME
#FILENAME=STRIP_EXT(#NAMETEMP)// STRIP EXTENSION FROM FILE NAME
//
STRING:#PATH
#PATH=GET_PATH(#FULLPATH) // "PATH ONLY" IS ASSIGNED TO #PATH VARIABLE
//



From: Tom Cox <[EMAIL PROTECTED]>
To: "Smartcam Tech (E-mail)" <[EMAIL PROTECTED]>
Subject: [mfg-smartcam] Strip Pm4 file extention
Date: Wed, 29 Oct 2003 10:44:19 -0500


Can someone help me with this macro. I need to set a variable to the current
pm4 file with the file extension stripped.


For example set the variable to equal "myfile" when the smartcam file is
"myfile.pm4.
I have seen it before but I can not remember the syntax.

Thanks
Thomas Cox
American Tool & Mold Inc.

======================================================================
To find out more about this mailing list including how to unsubscribe,
send the message "info mfg-smartcam" to [EMAIL PROTECTED]
======================================================================


Bob Looney
CNC Machine and Design LLC
P.O. Box 1405
250 SE Timber Ave.
Redmond, OR. 97756
541-350-7809
503-296-2544 FAX

_________________________________________________________________
Surf and talk on the phone at the same time with broadband Internet access. Get high-speed for as low as $29.95/month (depending on the local service providers in your area). https://broadband.msn.com


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