Hello again,
  So far very little luck, but I seem to be making progress.  See my
comments after the macro..
  Thanks a bunch.  After this, I will be a little bit more familiar with
macro's.

//THIS MACRO GENERATES CODE FOR THE STAR VNC-20
//WITH A FANUC 6T CONTROL

STRING:#FILE_NAME
STRING:#EXTN
STRING:#YESNO
#EXTN=.DTM
PAUSE[TX="PRODUCE CODE FOR THE STAR ?    OK TO CONTINUE  
CANCEL TO EXIT",PT=1]
PROMPT[TX="ENTER PGM NUMBER With .cod FILE EXT.",
VN="FILE_NAME", DV=0]
PROMPT[TX="DO YOU WANT TO OPEN THE FILE AFTER POSTING IT?
       ENTER 1 FOR YES AND 0 FOR NO!",
VN="YESNO", DV=0]
AUTO_ANSWER[AA="OK"]
CODE[FN=STRTMP("C:\\sm9\\turn\\star\\%#FILE_NAME"),
MS1="C:\\sm9\\turn\\atsmf\\star.smf", 
MT1="C:\\sm9\\turn\\atsmf\\star.tmp", SH=0, DC=0, ST=0, DT=0,SP=9]
IF(#YESNO=0)
GOTO(LABEL)
ENDIF
//SHELL[CMD_LN=STRTMP(C:\\sm9\\turn\\star\\%#FILE_NAME), WA=0, DP=0]
//ORIGINAL
//SHELL[CMD_LN=STRTMP("C:\\sm9\\turn\\star\\%FILE_NAME"), WA=0, DP=0] //NEXT
TRY
//SHELL[CMD_LN=STRTMP("%FILE_NAME"), WA=1, DP=1] //TRYING IT EXACTLY AS FRED
L. SUGGESTED
SHELL[CMD_LN=STRTMP("C:\windows\notepad.exe %FILE_NAME"), WA=1, DP=1] //AS
KEVIN C. SUGGESTED
@LABEL
#YESNO=""
#FILE_NAME=""
#EXTN=""

Everything looks like it works fine until the SHELL command, then that is
where it doesn't work correctly.

The first and second shell, it calls up a DOS box and says "bad command or
file name".
The third shell, the same thing.
The fourth shell, I get the notpad to come up, but it looks for my
  file on the "c" drive, not in the directory like I called out for in the
first shell.
    If no file exists, then it asks me if I would like to create one.

  Thanks, Rick
    

-----Original Message-----
From: Lauzus, Frederick [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 09, 2001 10:32 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [mfg-smartcam] starting edit plus in smartcam


The shell command will work as expected in Win95. Check for proper use of
quotation marks within the STRTMP syntax. They were absent in the previous
example.

SHELL[CMD_LN=STRTMP("%LASTFILE"),  DP=1, WA=1]

=============================================
 Fred Lauzus, CAM Programming Coordinator
 High Steel Structures, Incorporated
 mailto:[EMAIL PROTECTED] http://www.highsteel.com
=============================================
 




-----Original Message-----
From: Stannard, Rick [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 09, 2001 12:11 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: RE: [mfg-smartcam] starting edit plus in smartcam


ok, I have tried everything to get the shell command to work for me.  Now it
is Monday, and I am thinking that possibly it is my os that is the problem.
I am running win95, would that be a problem with the shell command to open
up my text file??  Any words of advice or encouragement??
   Thanks, Rick

-----Original Message-----
From: Pete Ruehle [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 06, 2001 10:48 AM
To: '[EMAIL PROTECTED]'; 'smartcam user group'
Subject: RE: [mfg-smartcam] starting edit plus in smartcam


Ok, here is what I've got.  It's derived from Andy's and Dan's posts:
There are two macros; one codes the file and the other opens it.
Assign each to it's own button.

The first one (need to insert your machine and template files in the CODE
command):

STRING:#SHAPE
#SHAPE=SHPFILE()
STRING:#CODEFILE
#CODEFILE=STRIP_EXT(#SHAPE)
CODE[FN=STRTMP("%CODEFILE.NC"), MS1="<your machine file.smf>", 
    MT1="<your template file.tmp>", SH=1, DC=0, ST=1, DT=1, SP=9]
STRING:#LASTFILE
#LASTFILE=STRTMP("%CODEFILE.NC")  //this variable is used by the second mcl


and the second:

SHELL[CMD_LN=STRTMP(%#LASTFILE),  DP=1, WA=1]


Obviously, the second macro is dependant on the first.  It will not run
without a value for #LASTFILE.

If the two are combined, then the file will automatically open after coding
as in Andy's example but without the yes-no prompt.

Enjoy the weekend
Pete



-----Original Message-----
From: Andy Beardmore [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 02, 2001 3:28 AM
To: 'smartcam user group'
Subject: FW: [mfg-smartcam] starting edit plus in smartcam


This is an example of the macros i use to post code:-
This macro will open the code file in an editor after posting it.

//THIS MACRO GENERATES CODE FOR THE CINCINNATTI SABRE 2000 VERTICAL M/C
//WITH AN ACRAMATIC 2300 CONTROL.

STRING:#FILE_NAME
STRING:#EXTN
STRING:#YESNO
#EXTN=.DTM
PAUSE[TX="PRODUCE CODE FOR THE SABRE ?    OK TO CONTINUE  
CANCEL TO EXIT",PT=1]
PROMPT[TX="ENTER PGM NO. INCLUDING  .M09  FILE EXTENSION",
VN="FILE_NAME", DV=0]
PROMPT[TX="DO YOU WANT TO OPEN THE FILE AFTER POSTING IT?
       ENTER 1 FOR YES AND 0 FOR NO!",
VN="YESNO", DV=0]
AUTO_ANSWER[AA="OK"]
CODE[FN=STRTMP("M:\\NCOUT\\%#FILE_NAME"),
MS1="L:\\SmartCam\\Smf-tmp\\Sabre.smf", 
MT1="L:\\SmartCam\\Smf-tmp\\Sabre.tmp", SH=0, DC=0, ST=0, DT=0,SP=9]
IF(#YESNO=0)
GOTO(LABEL)
ENDIF
SHELL[CMD_LN=STRTMP(M:\\NCOUT\\%#FILE_NAME), WA=0, DP=0]
@LABEL
#YESNO=""
#FILE_NAME=""
#EXTN=""

If you setup file associations in explorer the code file will automatically
open in the application it is associated with if you answer yes to:- 

PROMPT[TX="DO YOU WANT TO OPEN THE FILE AFTER POSTING IT?ENTER 1 FOR YES AND
0 FOR NO!".

Cool hey.

Not bad for a Limey.


> Andy Beardmore
> CadCam Technician 
> SPS Aerostructures Ltd., UK
> Machining Facility, Mansfield
> Tel : +44 (0) 1159 880  500  ext.1586
> Fax : +44 (0) 1159 880 501
> E~Mail : [EMAIL PROTECTED]
> 
> ----------
> From:         Pete Ruehle[SMTP:[EMAIL PROTECTED]]
> Reply To:     [EMAIL PROTECTED]
> Sent:         Friday, March 30, 2001 4:08 PM
> To:   'SmartCam Forum'
> Subject:      [mfg-smartcam] starting edit plus in smartcam 
> 
> Good Morning:
> 
> I have a toolbar button that starts edit plus without having to leave
> smartcam.
> I'd like to go one step further (farther?) and have edit plus open the
> last
> coded file.
> 
> Yes? No?
> 
> Thanks
> Pete 
> ======================================================================
> 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]
======================================================================
======================================================================
To find out more about this mailing list including how to unsubscribe,
send the message "info mfg-smartcam" to [EMAIL PROTECTED]
======================================================================
Title: RE: [mfg-smartcam] starting edit plus in smartcam

Hello again,
  So far very little luck, but I seem to be making progress.  See my comments after the macro..
  Thanks a bunch.  After this, I will be a little bit more familiar with macro's.

//THIS MACRO GENERATES CODE FOR THE STAR VNC-20
//WITH A FANUC 6T CONTROL

STRING:#FILE_NAME
STRING:#EXTN
STRING:#YESNO
#EXTN=.DTM
PAUSE[TX="PRODUCE CODE FOR THE STAR ?    OK TO CONTINUE 
CANCEL TO EXIT",PT=1]
PROMPT[TX="ENTER PGM NUMBER With .cod FILE EXT.",
VN="FILE_NAME", DV=0]
PROMPT[TX="DO YOU WANT TO OPEN THE FILE AFTER POSTING IT?
       ENTER 1 FOR YES AND 0 FOR NO!",
VN="YESNO", DV=0]
AUTO_ANSWER[AA="OK"]
CODE[FN=STRTMP("C:\\sm9\\turn\\star\\%#FILE_NAME"),
MS1="C:\\sm9\\turn\\atsmf\\star.smf",
MT1="C:\\sm9\\turn\\atsmf\\star.tmp", SH=0, DC=0, ST=0, DT=0,SP=9]
IF(#YESNO=0)
GOTO(LABEL)
ENDIF
//SHELL[CMD_LN=STRTMP(C:\\sm9\\turn\\star\\%#FILE_NAME), WA=0, DP=0] //ORIGINAL
//SHELL[CMD_LN=STRTMP("C:\\sm9\\turn\\star\\%FILE_NAME"), WA=0, DP=0] //NEXT TRY
//SHELL[CMD_LN=STRTMP("%FILE_NAME"), WA=1, DP=1] //TRYING IT EXACTLY AS FRED L. SUGGESTED
SHELL[CMD_LN=STRTMP("C:\windows\notepad.exe %FILE_NAME"), WA=1, DP=1] //AS KEVIN C. SUGGESTED
@LABEL
#YESNO=""
#FILE_NAME=""
#EXTN=""

Everything looks like it works fine until the SHELL command, then that is where it doesn't work correctly.

The first and second shell, it calls up a DOS box and says "bad command or file name".
The third shell, the same thing.
The fourth shell, I get the notpad to come up, but it looks for my
  file on the "c" drive, not in the directory like I called out for in the first shell.
    If no file exists, then it asks me if I would like to create one.

  Thanks, Rick
   

-----Original Message-----
From: Lauzus, Frederick [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 09, 2001 10:32 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [mfg-smartcam] starting edit plus in smartcam


The shell command will work as expected in Win95. Check for proper use of
quotation marks within the STRTMP syntax. They were absent in the previous
example.

SHELL[CMD_LN=STRTMP("%LASTFILE"),  DP=1, WA=1]

=============================================
 Fred Lauzus, CAM Programming Coordinator
 High Steel Structures, Incorporated
 mailto:[EMAIL PROTECTED] http://www.highsteel.com
=============================================
 




-----Original Message-----
From: Stannard, Rick [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 09, 2001 12:11 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: RE: [mfg-smartcam] starting edit plus in smartcam


ok, I have tried everything to get the shell command to work for me.  Now it
is Monday, and I am thinking that possibly it is my os that is the problem.
I am running win95, would that be a problem with the shell command to open
up my text file??  Any words of advice or encouragement??
   Thanks, Rick

-----Original Message-----
From: Pete Ruehle [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 06, 2001 10:48 AM
To: '[EMAIL PROTECTED]'; 'smartcam user group'
Subject: RE: [mfg-smartcam] starting edit plus in smartcam


Ok, here is what I've got.  It's derived from Andy's and Dan's posts:
There are two macros; one codes the file and the other opens it.
Assign each to it's own button.

The first one (need to insert your machine and template files in the CODE
command):

STRING:#SHAPE
#SHAPE=SHPFILE()
STRING:#CODEFILE
#CODEFILE=STRIP_EXT(#SHAPE)
CODE[FN=STRTMP("%CODEFILE.NC"), MS1="<your machine file.smf>",
    MT1="<your template file.tmp>", SH=1, DC=0, ST=1, DT=1, SP=9]
STRING:#LASTFILE
#LASTFILE=STRTMP("%CODEFILE.NC")  //this variable is used by the second mcl


and the second:

SHELL[CMD_LN=STRTMP(%#LASTFILE),  DP=1, WA=1]


Obviously, the second macro is dependant on the first.  It will not run
without a value for #LASTFILE.

If the two are combined, then the file will automatically open after coding
as in Andy's example but without the yes-no prompt.

Enjoy the weekend
Pete



-----Original Message-----
From: Andy Beardmore [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 02, 2001 3:28 AM
To: 'smartcam user group'
Subject: FW: [mfg-smartcam] starting edit plus in smartcam


This is an example of the macros i use to post code:-
This macro will open the code file in an editor after posting it.

//THIS MACRO GENERATES CODE FOR THE CINCINNATTI SABRE 2000 VERTICAL M/C
//WITH AN ACRAMATIC 2300 CONTROL.

STRING:#FILE_NAME
STRING:#EXTN
STRING:#YESNO
#EXTN=.DTM
PAUSE[TX="PRODUCE CODE FOR THE SABRE ?    OK TO CONTINUE 
CANCEL TO EXIT",PT=1]
PROMPT[TX="ENTER PGM NO. INCLUDING  .M09  FILE EXTENSION",
VN="FILE_NAME", DV=0]
PROMPT[TX="DO YOU WANT TO OPEN THE FILE AFTER POSTING IT?
       ENTER 1 FOR YES AND 0 FOR NO!",
VN="YESNO", DV=0]
AUTO_ANSWER[AA="OK"]
CODE[FN=STRTMP("M:\\NCOUT\\%#FILE_NAME"),
MS1="L:\\SmartCam\\Smf-tmp\\Sabre.smf",
MT1="L:\\SmartCam\\Smf-tmp\\Sabre.tmp", SH=0, DC=0, ST=0, DT=0,SP=9]
IF(#YESNO=0)
GOTO(LABEL)
ENDIF
SHELL[CMD_LN=STRTMP(M:\\NCOUT\\%#FILE_NAME), WA=0, DP=0]
@LABEL
#YESNO=""
#FILE_NAME=""
#EXTN=""

If you setup file associations in explorer the code file will automatically
open in the application it is associated with if you answer yes to:-

PROMPT[TX="DO YOU WANT TO OPEN THE FILE AFTER POSTING IT?ENTER 1 FOR YES AND
0 FOR NO!".

Cool hey.

Not bad for a Limey.


> Andy Beardmore
> CadCam Technician
> SPS Aerostructures Ltd., UK
> Machining Facility, Mansfield
> Tel : +44 (0) 1159 880  500  ext.1586
> Fax : +44 (0) 1159 880 501
> E~Mail : [EMAIL PROTECTED]
>
> ----------
> From:         Pete Ruehle[SMTP:[EMAIL PROTECTED]]
> Reply To:     [EMAIL PROTECTED]
> Sent:         Friday, March 30, 2001 4:08 PM
> To:   'SmartCam Forum'
> Subject:      [mfg-smartcam] starting edit plus in smartcam
>
> Good Morning:
>
> I have a toolbar button that starts edit plus without having to leave
> smartcam.
> I'd like to go one step further (farther?) and have edit plus open the
> last
> coded file.
>
> Yes? No?
>
> Thanks
> Pete
> ======================================================================
> 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]
======================================================================
======================================================================
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