#INCLUDE()

Description: Incorporate an external file into code output and automatically number the

blocks if #ONBLK is on. May be a name or a string word such as #S1 or #SNAME.

Type Options Related .smf Questions

Control

You could try the #include() template word in your  TF="O:\\2000-jof\\Eng_SM11.Tmp", file.

Have it read the "C:\\SM11\\MILL\\MDATA\\Coded_files\\TOOLLIST" file at

the beginning of your TF="O:\\2000-jof\\Eng_SM11.Tmp".

I've played with this command in the past but have not had a reason to use it...yet.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 03, 2001 3:49 PM
To: [EMAIL PROTECTED]
Subject: [mfg-smartcam] Merge Programs

Is there a way to merge two coded programs together and then open up Editplus
to that same directory . All automatically inside a macro?
 
Here is a macro that runs a tool list.tmp and a codes a file named TOOLLIST and also codes a file of a given name
and then opens up Editplus.
But it doesn't open it to the same directory the file was coded too.
It would be a real time saver if the two coded file could be merged together into a new
file and then open.
 
 
// Macro File
STRING:#FILEN
PROMPT[TX="CODE FOR FANUC CONTROL.         
    WHAT IS THE NAME OF THE OUTPUT FILE FOR THE NC CODE?",VN="FILEN"]
 

CODE[FN="C:\\SM11\\MILL\\MDATA\\Coded_files\\TOOLLIST", MF="O:\\2000-jof\\Eng_SM11.Smf",
 TF="O:\\2000-jof\\TOOL_LIS.Tmp", SH=0, DC=1, RP=0, ST=0,
    DT=0, SP=9]
 

CODE[FN=STRTMP("C:\\SM11\\MILL\\MDATA\\Coded_files\\%#FILEN"),
   MF="O:\\2000-jof\\Eng_SM11.Smf",
  TF="O:\\2000-jof\\Eng_SM11.Tmp", SH=1, DC=1, RP=0, ST=0,
    DT=0, SP=9]
 

#FILEN=""
PAUSE[TX="END OF CODE MACRO.      
    NEW FILE IS IN DIRECTORY C: \SM11\MILL\MDATA\Coded_files\.",
    SR=3,SC=40,PT=3]
 
     STRING:#PATH
     STRING:#FILENAME
     #PATH=c:\sm11\shared\
     #FILENAME=wedplus.exe
     SHELL[CMD_LN=STRTMP("%PATH%FILENAME"), WA=1, DP=0]
Any help on this would be appreciated
 
Brock Shimon

Reply via email to