Put a variation of this into the FXD sections of your tmp. It re-evaluates the #ZCHK variable. You can change the #TLTYPE options for whatever types of tools you want to test for. See page 152 of the Smartcam Code Generator Guide on your cd for the various options (#TLTYPE=1 is for spot drills, and -1 is for centerdrills.)
#IF(#TLTYPE=1, #OR#TLTYPE=-1)<#EVAL(#ZCHK=#LEVEL)>
I tried that using #IF(#TLTYPE<=4, #AND #TLTYPE>=9, #AND #TLTYPE<>=14)<#EVAL(#ZCHK=0.0)>
and this didn't work, probably I had too many things in it to look for.
This seems to work just fine.
#EVAL(#ZCHK=#ZCHK-#CHKD)
#EVAL(#ZDPTH=#ZDPTH+#CHKD)
Thanks again for the help!
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] ======================================================================
