CNC\CAD programmer
Midwest Precision Tool & Die
-----Original Message-----
From: Wepking, Bill W. [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 07, 2002 7:10 AM
To: 'lee'; Mfg-Smartcam (E-mail)
Subject: RE: [mfg-smartcam] change path macroLee,Try the following lines in place of #var2= and #var3=. This will prompt you with the current drive and dir that you can change. Note this will not check that the drive and dir are valid if you make a change. If you have specific rules as to what the drive and directory are going to be you can use the STRSUB() command to make the changes. Hope this helps.#var2=GET_NAME(STRIP_EXT(#var1))#var3=GET_PATH(#var1)PROMPT[TX="Is this the correct Drive Dir?", VN="var3", LR=15,LC=15]
#var3=STRTMP("%#var3%#var2.FAD")Bill Wepking
CAM Programming Mgr
Landis Gardner-----Original Message-----
From: lee [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 03, 2002 5:19 PM
To: Smartcam Mailing List (E-mail)
Subject: [mfg-smartcam] change path macrothis macro runs just fine, it creates a code file at the same location (on our network) as the current model file. I would like to output the code file into another drive and folder on our network. What would be the best way to control the new file location (path).
I spent some time adding a PROMPT to the macro with a request for a user variable that defined the new path but had no luck.
I am new at working with macro's so please be patient and very descriptive.
STRING: #var1
STRING: #var2
STRING: #var3
STRING: #var4
STRING: #var5
STRING: #var6//FADAL
#var1=JOB FILE()
#var2=STRIP_EXT(#VAR1)
#var3=STRTMP("%#var2.FAD")
CODE[FN=#var3, MF="v:\msmf\v5_FADAL.SMF", TF="v:\msmf\v5_FADAL.TMP",
SH=0, DC=0, ST=0, DT=0, SP=9]Lee Greer
CNC\CAD programmer
Midwest Precision Tool & Die
