At 12:37 PM 12/5/01 -0600, Brock Shimon wrote:
I have been working on this Macro and is there away to have the Edit-Plus
open up the file that I have named?

This Marco is used to run two *.tmp files and then open up Edit Plus.
I type in the Job number witch is the same as the File name that is saved in the
SmartCam mdate directory.
Type in a Program number for the coded file.

Is there away to have the Shell open the named file?

// Macro File
STRING:#FILEN
STRING:#JOB

PROMPT[TX="What is the name of the Job Files?",VN="JOB"]

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\\ENGLISH-TOOLLIST", MF="O:\\2000-jof\\Eng_SM11.Smf",
TF="O:\\2000-jof\\LIST_ENG.Tmp", SH=0, DC=1, RP=0, ST=0,
DT=0, SP=9]

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

#FILEN=""
PAUSE[TX="The Coded File is in the Job Folder.
EDIT PLUS WILL OPEN AUTOMATICLY. ",
SR=3,SC=30,PT=3]

STRING:#PATH
STRING:#FILENAME
#PATH=c:\sm11\shared\
#FILENAME=wedplus.exe
SHELL[CMD_LN=STRTMP("%PATH%FILENAME"), WA=0, DP=0]
Thanks

Brock
Brock,
Here's the macro I use.

STRING:#CODFILE
STRING:#LASTCHAR
STRING:#SLASH
#SLASH = "\\"
#CODFILE = CODFILE() // returns path & filename of current Code file. !! if no file, just path
#LASTCHAR = STRSUB(#CODFILE,STRLEN(#CODFILE),1)
IF(STREQUAL(#LASTCHAR,#SLASH)<>1)
SHELL[CMD_LN=STRTMP("C:\SM9\SHARED\WEDPLUS.EXE %CODFILE"), WA=0, DP=0]
ELSE
PAUSE[TX=STRTMP("No code file")]
ENDIF
VAR_REMOVE[VN="CODFILE"]
VAR_REMOVE[VN="LASTCHAR"]
VAR_REMOVE[VN="SLASH"]

Just replace the portion you have listed below, but change "C:\SM9\SHARED\ with c:\sm11\shared\
I am using version 11 but it was placed in the SM9 folder by the person before me.

     STRING:#PATH
     STRING:#FILENAME
     #PATH=c:\sm11\shared\
     #FILENAME=wedplus.exe
     SHELL[CMD_LN=STRTMP("%PATH%FILENAME"), WA=0, DP=0]
I hope this helps.

Kevin Clark
Programmer
Abbott Workholding Inc.

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