I think you need to use a macro to strip the extension, then assign the
string to an #S variable, and put it in the job notes section of the
jobfile.  Then use the #INCLUDE template word in your tmp file to output the
variable.
 

-----Original Message-----
From: Bill Payter [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 14, 2003 7:04 AM
To: SmartCAM Users
Subject: [mfg-smartcam] Code gen problem

Hi guys,

I'm sure I must have done this before but....

When generating code for a machine the file name is, for instance,
C:\TAPES\1234.NC the .NC is required for DNC software.

In the second line of the template file :#FILE therefore outputs :1234.NC

How do I 'strip' the .NC off so that :1234 is output in the code whilst the
file name remains 1234.NC?

Regards,

Bill in the UK.

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

Reply via email to